diff --git a/COPYING b/COPYING index 3a807a52..30dc9978 100644 --- a/COPYING +++ b/COPYING @@ -1,342 +1,325 @@ -$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. + +GPL ѱ ˾ƵѰ. + +1. ѱ ش ϴ ȿ ٴ + ѰͿ Ѵ. + . + +2. Ǵ http://jsboard.kldp.org ϱ⸦ ٶ. + +3. OOPS administration center jsboardʹ License + . admin/License Ͽ Ҷ ϴ. + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + +۱ǰ 㰡 õǴ ,  ü + 糪 鵵 ȴ. , ÷ + ʴ´. + + ( ) + +Ʈ κ ̼ ش Ʈ + Ϸ Ѵ. ׷ GNU General Public License +(, "GPL"̶ Ѵ) Ʈ ȣ + ϱ ؼ Ǿ. Ʈ ϴ κ +Ʈ 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/COPYING.en b/COPYING.en new file mode 100644 index 00000000..45c5f0b9 --- /dev/null +++ b/COPYING.en @@ -0,0 +1,343 @@ +Attention : OOPS administration Center is not GPL. + See also admin/License ! + + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + 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/CREDIT b/CREDIT new file mode 100644 index 00000000..e9cd9247 --- /dev/null +++ b/CREDIT @@ -0,0 +1,89 @@ +***** JSBOARD + OOPS administration Center ********************************* + +Original Developer : 躴 + +JSBoard ¸ ֽ ̴. ѱ ڵ鿡Դ + г ˷ alzza linux packaging + application ѱ patch ֽ ̴. + +http://linux.sarang.net + + +Source Distribute : + +JSBoard v0.6 ڵ þ , JSBoard α׷ +OOPS administration Center JSBoard +ڵ ð ִ. + + Ȩ Daemon ¹ rpm package ϰ +ProFTPd korean user gruop ϰ ִ. + +http://www.oops.org + +CVS Server : 迵 + +JSBoard v0.5 ϼ JSBoard Open Project CVS +ֽŴ. + +http://network.uos.ac.kr + +Special Thanks : + +jsboard ׸ ֽð patch +÷ ֽŴ. patch ظϸ patch +Ϸ ϳ ȵǴ 찡 . + +http://kltp.kldp.org + +Special Thanks : Ǽ + +JSBoard ߰ ġ ֽø, JSBoard homepage + Ҽֵ ֽð ִ. + +Special Thanks : 湬 + +FreeBSD system JSBoard ۵Ҽ ֵ System ֽð +ִ. + +http://www.dimanche.net + +Special Thanks : â + +躴 Խ JSBoard ̸ open project +Ҽ ֵ Ѵ븦 Ž ̸ JSBoard v0.3 ϼ̴. Qmail + ѱ Ȩ ϰ Ŵ. + +http://kldp.org/~winchild + +Special Thansks : rOra + +rOra() Ǵ Ksecurity Ʈ ϸ JSBoard + exploit reporting ֽð Ŵ. + +http://ksecurity.iland.co.kr + +Special Thanks : mat + +hacksware Ʈ ϸ JSBoard ׹ exploit +reporting ֽð Ŵ. + +http://hacksware.com + + + + +ֱ v.1.2 +湬 v0.6, v0.7 + v0.6, v0.7, v0.8, v1.0 v1.1 v1.2 +迵 v0.5 + v0.4 +â v0.3, v0.5 + v0.2 +躴 v0.1, v0.8 + +* 0.9 version پ. + +׿ JSBoard ϰ ϰ reporting ֽô + ֽð Ŵ. + +****************************************************************************** diff --git a/Changelog b/Changelog new file mode 100644 index 00000000..4294d528 --- /dev/null +++ b/Changelog @@ -0,0 +1,767 @@ +***** JSBOARD + OOPS administartion Center ********************************* + +Original Developer : Byung Chan Kim +Source Disturibute : Joung Kyun Kim +Windog Version : Ki Soo Choi + +## Warning ## + +This package turned out to work in Redhat Debian FreeBSD systems. +Any one who wants install this package on any other platform +must revise it as needed for himeself/herself and must read +jsboard/README.OTHERS.OS file. + +Attention : OOPS administration Center is not GPL. + See also admin/License ! + +****************************************************************************** + + +ۼ : (admin@oops.org) +ۼ : 2001 3 4 + : jsboard-1.2.3 + +* +1. & & ȯ Ǿ ߸ ǥǴ° . +2. user admin security hole fix. +3. Installer ȯ üũ DirectoryIndex տ 鹮ڰ + üũ ȵǴ +4. ο  meta character üũ +5. ġ Ȱ ߰ +6. NS6 + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 12 20 + : jsboard-1.2.2 + +* +1. filename . ̿ Ȧ ġ +2. file upload Ȯ ˻翡 .ph .inc ߰ + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 11 30 + : jsboard-1.2.1 + +* +1. menu ̳ Ʒ single quote(') java + script error ° +2. file upload Ȧ ((jglee@netisus.co.kr) report) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 11 25 + : jsboard-1.2.0 + +* +1. ֽű (INSTALL ϴ ) +2. image Ͻ size table widthŬ ̺ þ + ʰ Ų ҵ image ̷ link +3.  ڸ ̿Ͽ · ° +4. б տ Ҷ ùٸ ʴ° +5. php3 Ȯڸ php +6. color themes ߰ +7. get_hostname Լ +8. basic themes +9. auto_link() Լ ftp linkÿ link httpd ɸ +10. user_admin html header κ ̻ϰ ° +11. auto_link() Լ ũ ų taget ȵǰ +12. sql time ӵ Ȯϰ ϱ +13. Lynx ۾ ȵǴ° +14. < Ư ڰ < ٲ ° +15. theme ҽ ȭ +16. embed link NS ȭ µ ʴ +17. listȭ鿡 2ٷ µǴ° +18. ó ũ ѱȯ Ư̹Ƿ ȯ + << >> +19. mid, wav, mp3 file upload б⿡ ٷ 뷡 µǰ +20. Ʈ CSS line-height=120% +21. mpeg, mpg, avi, asf, mov, swf file ̸ ߰ +22. ɿ Խ Ļ ߰ +23. tag +24. ۾ html ҽ html tag script tag + +25. HTML ȿ ϱ text_nl2br(), delete_tag() + Լ ϰ delete_tdbr() Լ +26. auto_link() Լ . (tag option κ ũ ó ӵ ) +27. 񿡼 & &amp; ȯǴ +28. file uploadÿ Ǵ 丮 ġ +29. Installer mysql ġ ϵ +30. ߼ ɿ ̸κп Ư ڰ + HTML charactor ǥ Ǵ +31. text_nl2br() Լ html ҽ ugly ѱ ߸Ȱ +32. htmlspecialchars Լ ߰ +33. preview title javascript +34. ϵ ǥø ֱ 12ð +35. BG color font color Ҽ ֵ +36. theme file ߰(form ) +37. cut_string() Լ ۼ (̴ ۼ - parse.ph) +38. admin/include/sample +39. form_wrap() Լ - Խǿ TEXTAREA WRAP + Ҽֵ +40. ̸ ɿ theme +41. ۼ 亯⿡ <! ڵ尡  NS ° +42. langauge mesage file +43. file uploadÿ ۵ źεǾ ε Ǵ +44. board width % Ǿ form mail â ʴ° +45. admin center as Խ ° +46. ȭ鿡 н Էâ cursor focus +47. ÷ Ǿ ִ ÷ ° +48. image icon ҽÿ edit, replay, write, delete ȭ鿡 + image icon Ҷ table size Ǵ° + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 11 3 + : jsboard-1.1.3 + +* +1. Install DirectoryIndex üũ DirectoryIndex ٷ + üũ ϴ +2. reply Խ ΰ ߸ +3. SPAM +4. auto_link Լ urlڿ dot ̸ ϴ + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 10 4 + : jsboard-1.1.2 + +* +1. cut_string() Լ +2. ۾ ּҰ JSBoard message + Ÿ +3. "' ڿ escape(\) ٴ +4. Ϻ ڵ Lang/ko.ph +5. vb script file upload Ȯ ȯ (vbs virus ) +6. email link id . Ҷ ũ ° +7. url̳ email link . ̸ ϴ° +8. embed link NS ȭ µ ʴ +9. file uploadÿ Ǵ 丮 ġ +10. &lt; Ư ڰ < ٲ ° + +* OOPS administration center update + +1. 迡 Syntax error + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 9 17 + : jsboard-1.1.1 + +* +1. auto_link() Լ flash link +2. html ٿ ص ʴ° +3. Ʈ back ȵǴ +4. ۾ html ϰ <pre> tag ũ 2ĭ Ư + ȯϴ <pre> tag θ Ŵ +5. Install script syntax error +6. &nbsp;ڸ ̿Ͽ · ° +7. б տ Ҷ ùٸ ʴ° +8. account.sh +9. move_page() Լ 鹮 밡ϰ + +* OOPS administration center update + +1. 迡 ְ ȸ ũ +2. 迡 0 ߻ϴ + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 9 5 + : jsboard-1.1.0 + +* + +1. download header ̿ security hole +2. fget() Լ fread() Լ ü +3. ÷ link ̸ ⿡ ޼ +4. if̳ ǹ include() Լ Ҷ +5. ۵Ͻ н尡 ־ ϵǴ ̸ email üũ + ϴ word 񱳿 ش纯 Ե parse 񱳷 +6. ۵Ͻ browser ǺϿ 㰡 θ ϰ +7. б⿡ text file ÷ Ǿ ̸ ɿ 1000 + ؼ ְ patch +8. Ϸ Ʈ java script ment undecode ó +9. б ۾ ٽ ȸ ø ʰ +10. θ ϵ + Ҽ ְ +11. б ñ ñ Ʈ ߰ +12. ۹̼ script (Debian, FreeBSD ) +13. tdbr() delete_tag() text_nl2nr() Լ (in parse.ph) +14. Permission check script Debian checked. (nobody www-data ) +15. Installer Debian checkϰ ϸ, httpd.conf file + ϰ (Installer/include/passwd.ph) +16. FreeBSD н ȣȭÿ $ڰ \$ Ŵ +17. QUICK_INSTALL Ÿ +18. ڵ table os н ʵ üũ (include/ostype.ph) +19. ޼ +20. BGimage ÿ table bgcolor ° +21. global.ph upload directory files ٸ ̸ Ͽ + ʴ +22. email ϵǾ mailto ũ Ǿ ִ form mail + ̿Ͽ óϵ +23. formmail Լ +24. html table tagտ <br> tag Ͽ Ʒ и + ° +25. install.php3 white.themes + +* OOPS administration center update + +1. jsboard ʴ table DB ޼ + ٷ Ǵ° fix. (jsboard ʴ table ư + "Not JSBoard table" message ) + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 8 14 + : jsboard-1.0.3 + +* + +1. download head ̿ security hole patch +2. б ۾ ٽ ȸ ø ʰ +3. ο Խ ׸ ʴ +4. white.themes ã +5. Install script permission script + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 7 17 + : jsboard-1.0.2 + +* + +1. admin ɿ ޼ Ǵ +2. auto_link() Լ comma üũǰ +3. Ϻ system - link ʴ +4. include/get.ph gethostbyaddr() Լ ޼ ½ ̸ + @ +5. fget() Լ fread() Լ +6. ο Խ Խ ̸ - ϰ + (MySQL table dash ) +7. browser ϵ鸸 header download ϰԲ . + Ȯ ܿ 50K ̸ ϵ header downloadǸ + 50K ̻ file direct link Ŵ +8. act.php3 article_check() Լ +9. CREDIT file email + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 7 3 + : jsboard-1.0.1 + +* + +1. list ȭ鿡 ÷ Ͽ file size ǥ +2. list ȭ鿡 ¥ +3. list name filed double quote ̸ ߸° fix +4. download ÿ file type ٿεǰ +5. image icon table width % table 迭 ̻ + ° fix +6. zip file icon unknown type ° +7. replyÿ θ ߼۵ ʴ +8. php +9. image menuÿ ʿ ִ ȭ ׷ ȭ鰣 + table  Ʋ +10. spam ˻ ȵǴ +11. url ˻ link κ +12. admin/include/config.ph ۹̼ (664) +13. Document ׹ Ÿ +14. KnownBug document ߰ +15. Խ ڸ Ҽ ִ ɿ . +16. Խ ɰ ü ڸ ɿ Ʈ +17. CREDIT ߰ + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 6 16 + : jsboard-1.0.0 + +1. ο ˰ (DB table ) +2. Image Theme ߰ +3, ߰ (txt, jpg, gif, php б⿡ ٷ ) +4. Agent з form Լ Win 2000 ߰ +5. table tag table tag(table,tr,td) nl2br() 鿩 + ʰ +6. ÿ tag ϴ . <html> <div> + <head> <meta> . <table> tag 밡. +7. autolink ǥ +8. php, phtml, cgi, pl file uploadÿ phps, cgis, pls file name Ŵ +9. Խ data include/data_name data/data_name +10. ̸ ̸Ͽ Ű ̸̳ ּҸ ϳ Ҽ ְ. +11. administration update (v1.6) +12. ɿ Spam, theme . (config/README.THEME ) +13. global 켱 (upload , mail . 㰡ǵ) +14. ǥ ˻ ߰ +15. ٷ ߰ +16. ٸ system porting ϰ ϱ Ͽ exec() Լ κ и + (jsbaord/include/exec.ph) +17. , script ߰ +18. Quick Install ߰ +19. read page command bar java script error +20. added remove_tbbr() function in parse.ph +21. GPL ѱ ߰ +22. MySQL query ߰ +23. admin center н ϸ ޼ µǰ +24. language file charactor set +25. COPYING, COPYING.en, CREDIT, Changelog, README ߰ + ( README, LICENSE file ) +26. textarea WRAP 뿩 Ҽ ְ. +27. upload file ̸ ɿ Ȯڰ 빮 + ̸ ۵ ʴ fix +28. modified get_hostname function in get.ph +29. $lang -> $langs +30. Խ ý ƮŸ Arial fix +31. IE Ͻ "c, " ugly ѱ fix +32. Installer JSBoard ϱ ȯ ׽Ʈ ߰ +33. include/tableratio.ph ߰. - table width input size и +34. write, reply, edit, delete page ϴ list link list ư + Դ list page Ŵ +35. table width % Ҽ ְ fix +36. NS upload file ڰ ã ϴ bug fix +37. script κ . +38. upload file ̸ Ư ($,#,%)  ź +39. ˻ AND ˻ ϰ (%% and ˻ ) +40. ˻ "' Ұϰ +41. whois ߰ +42. Խ ߰ +43. ۾ cookie double quote ҽ տ \\ ٴ° +44. auto_link() function ǥ +45. double quote &quot; ö ϳ cut + ϴ patch +46. upload file size ϱ Ѱ byte, kbyte, mbyte ǥ +47. jsboard cookie session +48. Source + + +----------------------------------------------------------------------------- +ۼ : (eunjea@kldp.org) (admin@oops.org) +ۼ : 2000 6 2 + : jsboard-0.7.9 + +1. ˻ ڿ ? (: ?) Ǵ ...  ڿ ° + ˻ , ǥ ѷ ˻ ׼. +2. ˻ ,̸, ˻Ҷ شϴ ( + ˻ô ) Ϻ б ڷ +3. ׸ ε Խù б⿡ ̹ , alt html + tag ߰ +4. INSTALL.txt Ÿ + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 5 27 + : jsboard-0.7.8 + +1. ˻ [ "  +2. " 徵 © +3. "  ˻ ˻ ã ϴ° +4. file name . +5. script upload file Ȯڸ filename_Ȯ.phps +6. reply 11° Re:^ ȣ ° +7. "  б ȭ鿡 ޴ ° +8. act.php3 Ÿ < dconnect($db_sever, ..); -> dconnect($db_server, ..); > + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 4 27 + : jsboard-0.7.7 + +1. preview ۳뿡 double quote list page + fix +2. preview IE ۵ϵ fix +3. Խ admin preview mode radio box +4. Խ admin preview õ hint ߰ +5. dos format ִ file unix format ȯ + +----------------------------------------------------------------------------- +ۼ : 湬 (dimanche@dimanche.co.kr) +ۼ : 2000 4 26 + : jsboard-0.7.6 + +1. Խù Ʈ Խù 콺 Ŀ ø + ش Խù ̸ ִ ߰ (IE ) + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 4 22 + : jsboard-0.7.5 + +1. б⿡ YN̶ ڰ fix +2. c, ʴ öڹ ǥ fix +3. Ʈ Ưڰ ѿ ɸ ڵ尪 ©ä + Ǵ° fix +4. Ư ڷ ˻ ߻ϴ fix + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 4 13 + : jsboard-0.7.4 + +1. first_regist.ph file ϴ charactor +2. PHP4 name resolving error patch + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 3 19 + : jsboard-0.7.3 + +1. read.php3 ǽ or ǥ ߸Ȱ +2. get_hostname() Լ (ip address resolving hostname + ǥǰ . +3. upload file .phtml Ȯ phps ȯϿ uploadǰ. +4. upload file ̸ ɿ Ȯڰ 빮 + ̸ ۵ ʴ fix + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 3 4 + : jsboard-0.7.2 + +1. cgi, sh, pl file uploadÿ file name ڿ file ̸ + Ǵ +2. read.php3 menu bar ߺ query ó +3. ڸ ǥǴ ǥø ڸ . +4. 2000 Y2K ǥ Ǵ ٽ 2000 +5. pn_listname() Լ + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 2 23 + : jsboard-0.7.1 + +1. script file uploadÿ Ҽ Ȯڸ Ŵ. + (php3,php -> phps , cgi -> cgis, pl -> pls, sh -> shs) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 31 + : jsboard-0.7.0 + +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. ޼ и. (ڸ κ) +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 üũ ϴ + + +----------------------------------------------------------------------------- +ۼ : (湬) (dimanche@dimanche.co.kr) +ۼ : 2000 1 28 + : jsboard-0.6.20 + +* + +1. Խ ̾ƿ (Netscape Series ׽Ʈ X) +2. Խ ̸/ ( ) +3. ȣ ˻ ߰ +4. Ӹ ̿ ߰ +5. (RE:) RE: [ñ]: +6. Խ ϴܿ . (publicity.ph ) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 25 + : jsboard-0.6.10 + +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 + +1. misc.ph auto_link() Լ ǥĿ system regex + php regex κ + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 20 + : jsboard-0.6.8 + +1. list name subject ڿ(ѱ ó) ڸ κ + ġ +2. html enable ÿ tag ϴ + <html> <div> <head> <meta> + <table> 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 + +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 + +1. Auto Link ǥ +2. Install/SQL/mysql.sql . + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 6 + : jsboard-0.6.5 + +1. Auto Link ǥ ( ξ + Ǿ) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 5 + : jsboard-0.6.4 + +1. Email, URL link Ҷ ̻ϰ Ǵ κ +2. Table color + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 4 + : jsboard-0.6.3 + +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 + +1. permission script . Install/Config account.sh + root.ph + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 1 + : jsboard-0.6.1 + +1. cookie (act.php3) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 1999 12 27 + : jsboard-0.6.0 + +* + +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 . + ׷ ̰ </form> ʾƼ tailκп form + ǻ ߻. patch +19. read.ph space &nbsp ȯ +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 + +1. Ե ﶧ ׸ ħ +2. Ե ۿ X ǥð Ǵ κ +3. ּҸ ֵ +4. , ڿ +5. , +6. , ̸ textarea ԽŴ + ԵǾ ־ ̸ ߰ +7. file ε ȭ̸ ־ ε .. + + +----------------------------------------------------------------------------- +ۼ : () jinoos@hanmail.net +ۼ : 19991130 + : jsboard-0.4 + +1. ϵ ߰ +2. ε ̵Ͻ "Ȧ" "X" ü +3. list.ph Լ߿ ִ ũȵǾ include ذ(global ) +4. read.php3 ǥ ( ƴ, ǥ + ̺귯 ) +5. ȸ IP / . ؼ + db.php3 ġ +6. ε ƾ filesystem function ü +7. ۼ file κ ÷ + + +----------------------------------------------------------------------------- +ۼ: â (ܿ) winchild@kldp.org +ۼ: 19991126 +: jsboard-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=<table> + Խǿ ̿ <޴>.php3 ̿Ͽ + ϵ Ͽ մϴ. + + + + <? + Header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 + Header("Location: list.php3?table=hn_faq"); + ?> + + test.sql ǵ manual.php3  ̰ + ҷָ directory н Ǿ $DOCUMENT_ROOT + ذ Ҽ ֽϴ. +5. ϵ ϵ κп act.php3 ϴ ϸ ϻ + ʱȭ ʾƼ DB Ͻÿ ߻ ֽϴ. (࿡ + 0 NULL õǸ ߻ .) ̺κ ʱȭ ׽ϴ. + + +----------------------------------------------------------------------------- + +ۼ : <taejun@taejun.pe.kr> +ۼ : 1999.11.17 +: jsboard-0.2 + + +1. ε ߰ +2. board/include/table̸/config.ph ε ȭ ų ʵ + + +----------------------------------------------------------------------------- + +ۼ : 躴 <redhands@linux.sarang.net> +ۼ: +: jsboard-0.1 + +----------------------------------------------------------------------------- diff --git a/INSTALL b/INSTALL new file mode 100644 index 00000000..9f20c8df --- /dev/null +++ b/INSTALL @@ -0,0 +1,605 @@ +##### JSBOARD + OOPS administartion Center ################################# +# +# Original Developer : 躴 <redhands@linux.sarang.net> +# Source Disturibute : <admin@oops.org> +# +# CVS Server : 迵 <blhole@hotmail.com> +# Homepage : Ǽ <http://www.kldp.org> +# Special Thanks : <eunjea@kldp.org> +# : 湬 <dimanche@dimanche.co.kr> +# : â <winchild@kldp.org> +# +############################################################################# +# +# Installation in JSBoard 1.1 v0.6 +# +############################################################################# + +ۼ : <admin@oops.org> +Ͻ : 2000.11.1 + + JSBoard 1.1 version ġ Ѵ. + س JSBoard ؿ ؼ +ƹ å ϰ Ǵϰ ġ õϵ +ϱ⸦ ٶ. + + + ## ڼ ⸦ ϰų Installer ƴ ## + ## ġ ϸ QUICK_INSTALL ϶ ## + + +******* ǻ *********************************************************** + +ϳ. +JSBoard 1.2 ʹ Ȯڰ .php3 .php ȴ. + +ϳ. +JSBoard 1.2 PHP4 Ͽ ۵ ϸ, compile Ҷ configure +ÿ --disable-session ɼ ȵȴ. + + +ϳ. + 0.7 upgrade ϴ QUICK_INSTALL + Ѵ. + +ϳ. +0.7 DB ü SQL query ǾǷ + ٶ. + +ϳ. +!!!!!!!!!!!!! +Linux, FreeBSD ̿ OS ġÿ jsboard/README.OTHERS.OS + о ġ ؾ Ѵ. + +**************************************************************************** + + +**** **** + + 1. ȯ + 1-1. exec() Լ test + 1-2. MySQL Լ test + 1-3. MySQL mysql database db table Ȯ + 1-4. web server + 2. JSBoard ġ + 3. JSBoard  + 4. JSBoard + 5. UPGRADE + 5-1. 0.8 ̻ version upgrade + 5-2. 0.7 version upgrade + 6. ֽű ϱ + 6-1. ֽű + 6-2. ֽű + 7. Bug report + +*************** + +1. ȯ + + apache 1.3.x ̻ + MySQL 3.22.30 ̻ (RPM ġ - ftp://ftp.oops.org) + PHP-4.0.0 ̻(RPM ġ - ftp://ftp.oops.org) + + * üũ * + + php exec() Լ MySQL Լ Ǵ ȮѴ. + + 1-1. exec() Լ test + + ϴ ϳ . test.php Īϰڴ. + + <?php + echo("## exec() Լ ׽Ʈ ##<p><br>\n\n"); + exec("echo \"exec()Լ ۵ մϴ\"", $test); + + echo $test[0]; + ?> + + 󿡼 ȣ + + ------------------------------------------------- + ## exec() Լ ׽Ʈ ## + + exec()Լ ۵ մϴ + ------------------------------------------------- + + Ǿ Ѵ. + + 1-2. MySQL Լ test + + info.php Ʒ Ѵ. + + <?php + phpinfo(); + ?> + + ׸ 󿡼 ȣ MySQL ִ ȮѴ. + Ұ MySQL ִ php ġÿ mysql θ + ذͰ MySQL ΰ Ʋ 쿡 ߻Ҽ + ִ. ǥ 찡 PHP rpm ġ ϰ MySQL source + compile ̴. PHP rpm ġ Ұ쿡 κ + /usr/lib/mysql ġϴ ̱ ̴. + + 1-3. MySQL mysql database db table Ȯ + + MySQL ó ġغ Quick_INSTALL MySQLκ + ϵ Ѵ. ߿ Installer ϱ ؼ DB ü + ̸ Ƽ ȵȴ. root password ϱ⸦ ٶ. + + ϴ MySQL root login mysql database db table + Ʒ Ȯ Ѵ. + + mysql> use mysql; + mysql> desc db; + + +-----------------+---------------+------+-----+---------+-------+ + | Field | Type | Null | Key | Default | Extra | + +-----------------+---------------+------+-----+---------+-------+ + | Host | char(60) | | PRI | | | + | Db | char(32) | | PRI | | | + | User | char(16) | | PRI | | | + | Select_priv | enum('N','Y') | | | N | | + | Insert_priv | enum('N','Y') | | | N | | + | Update_priv | enum('N','Y') | | | N | | + | Delete_priv | enum('N','Y') | | | N | | + | Create_priv | enum('N','Y') | | | N | | + | Drop_priv | enum('N','Y') | | | N | | + | Grant_priv | enum('N','Y') | | | N | | + | References_priv | enum('N','Y') | | | N | | + | Index_priv | enum('N','Y') | | | N | | + | Alter_priv | enum('N','Y') | | | N | | + +-----------------+---------------+------+-----+---------+-------+ + 13 rows in set (0.00 sec) + + mysql> + + ʴ´ٸ ( column Ȯ + ) jsboard/Installer/act.php 37° query ÷ + Ѵ. + + 1-4. web server + + jsboard index file index.php ̴ ׷Ƿ httpd.conf + DirectoryIndex ڿ index.php ߰ ֵ Ѵ. ph file + ؼ httpd.conf + + AddType application/x-httpd-php .php .php3 + + .ph ߰ ֵ Ѵ. + +2. JSBoard ġ + + ******* ǻ ********************************************************* + + ( ġ Ϸ ) Installer + ʴ´. QUICK_INSTALL ϱ ٶ. Root ִ + 鵵 Installer ġ ÿ QUICK_INSTALL Ͽ + ġ غ ϱ ٶ. + + ⼭ Root ִ 鸸 شѴٴ !! + + ************************************************************************** + + + ϴ ϵ ġ Ű ϵ ۹̼ ϵ Ѵ. + jsboard/Installer/script Ʒ Ѵ. + ۹̼ 755 ϱ ٶ. + + ٽ ѹ Ǹ ִµ, QUICK_INSTALL + ؾ Ѵ!!!!!!!!!!!! + + $ ./root.sh + =================================================== + Scripted By JoungKyun Kim <admin@oops.org> + JSBoard Permission Configurations v1.0 + =================================================== + + ## Operating System : Redhat + ## Httpd Group : nobody + + Is right follow information? [Y/N](default Y) : y <--Enter + + DONE!!!! + $ + + root.sh ϸ ȴ. HTTPD ׷ + nobody ƴ϶ (debian www-data Ǿ ִ) n Ǵ N + ְ ׷ ̸ ٽ ϸ ȴ. Ʒ ð̴. + + Input Ur httpd group : + + + ׸ ٽ jsboard/Installer/include/passwd.ph Ѵ. + + <?php + ###################################################### + # Specify MySQL Root Password + # mysql root password + + $passwd = ""; + + # apache (httpd.conf) θ + # redhat rpm package /etc/httpd/conf/httpd.conf + # debian package /etc/apache/httpd.conf + # ġ /usr/local/apache/etc/httpd.conf + # ġϴ 찡 . + + $apache_config_file = "/etc/httpd/conf/httpd.conf"; + + # MySQL socket file ġ . socket file + # 𸣰 localhost 127.0.0.1 + # . DB ܺο 쿡 ش DB ip + # address domain name ֵ ϸ, 쿡 + # DB mysql Ͽ + # Ѵ. + # + # socket file ġ ˰ ʹٸ + # netsatat -an | grep mysql + # ˼ ִ. + # + $mysql_sock = ":/var/lib/mysql/mysql.sock"; + ###################################################### + ?> + + passwd.ph ̸, "MySQL_ROOT_PASSWORD" κп MySQL + root password ־ ش. + + ׸ Ʒ apache web server + httpd.conf ִ θ ֵ Ѵ. + DirectoryIndex ڰ srm.conf Ǵ srm.conf + ġ ϱ ٶ. + + δ mysql sockfile θ ش. ̰ + netstat -an | grep mysql ִ. 𸣰ڴ + 127.0.0.1 ̳ localhost ֵ Ѵ. tcp/ip + ͺ unix socket ̿ϴ ӵ sock file + θ ˼ ִٸ ̸ ִ . + + Ұ unix socket 쿡 socket file + տ : پ մϴ. ( - :/var/lib/mysql/mysql.sock) + + http://domain.com/jsboard/Installer/ Ѵ. + + ------------------------------------------------------------------------- + JSBoard Installer + ------------------------------------------------------------------------- + + [ ] Korean [ ] English + + ------------------------------------------------------------------------- + [submit] + ------------------------------------------------------------------------- + + ȭ ̴. ⼭  ϵ Ѵ. + Ѵ. ϰ [submit] click ϵ Ѵ. + + + ------------------------------------------------------------------------- + JSBoard License + ------------------------------------------------------------------------- + + ........................................... + ........................................... + ........................................... + + ------------------------------------------------------------------------- + [AGREE] + ------------------------------------------------------------------------- + +  ϰ JSBoard ϱ License ´. о + Ǹ ϸ [AGREE] click Ѵ. + + + ------------------------------------------------------------------------- + JSBoard Installer + ------------------------------------------------------------------------- + + [ ] First Installation [ ] Upgrade + + ------------------------------------------------------------------------- + [submit] + ------------------------------------------------------------------------- + + ó ġ ϴ ׷̵带 ϴ ܿ츦 Ѵ. ٸ + Installer Upgrade ʴ´. QUICK_INSTALL + ϶ ޼ ̴. ׷ First Installation ϵ + Ѵ. + + + ------------------------------------------------------------------------- + JSBoard Environment Check + ------------------------------------------------------------------------- + + Jsboard ϱ ȯ ˻ϰ ֽϴ + 5 Ŀ Ǽ ֽϴ + + Linux Browser ϽŴٸ + ڵ Ѿ ֽϴ. + ̶ QUICK_INSTALL ϼż ġ Ͻʽÿ + + ------------------------------------------------------------------------- + [ 5ʰ ٷ ּ ] + ------------------------------------------------------------------------- + + ߰ κ̴. κп Ư Ұ 5ʰ ٸ⸸ + ϸ ȴ. κп OS Type, MySQL üũ, db table column ü + ũ, exec() Լ 뿩, httpd.conf index file , jsbaord + ϱ θ üũ Ѵ. + + * Ұ κ meta tag üũĿ Ѿ Ǿ + ִµ Linux Netscape Meta tag ۵ ϴ 찡 + . 쿡 windog install program ٽ ϴ Ǵ + QUICK_INSTALL ؼ ġ ϱ ٶ. + + ------------------------------------------------------------------------- + JSBoard Enviornment Check Reuslt + ------------------------------------------------------------------------- + + OS Type : Debian + MySQL check : Failed + + MySQL login и ߽ϴ. jsboard/Installer/include/passwd.ph + MySQL root password Ȯ Ȯ ֽð PHP ġÿ + --with-mysql ɼ  Ȯ ֽʽÿ + DB server Ǿ ִٸ QuickInstall Ͽ ġ Ͻ + ٶϴ + + exec() function check : OK + index file check : OK + Fermission check : OK + + + ------------------------------------------------------------------------- + + ------------------------------------------------------------------------- + + ȭ ȯ üũ ش. ϳ + ְ ִµ OK̸ ȭ Ѿ + ߻ϸ ٽ ó ȭ ȴ. ߻ 쿡 + ׵ ش. + + Ȥ MySQL login failed error ߻ϸ php file + ׽Ʈ ٶ. + + <?php + $c = mysql_connect("socket file ġ","user name","password"); + if ($c) echo "OK"; + else echo "Failed"; + ?> + +  OK ȴ. Ƹ Installer + failed ´ٸ ̰ failed ɰ̴. + + + ------------------------------------------------------------------------- + JSBoard Installer + ------------------------------------------------------------------------- + + MySQL password + [ ] + + Password ʱȭ [reset] + + ------------------------------------------------------------------------- + + ------------------------------------------------------------------------- + + ȭ鿡 MySQL root password ְ ͸ . Ʒ Password + ʱȭ [reset] Ŭϸ session ִ password + Ѵ. + + + ------------------------------------------------------------------------- + JSBoard Installer + ------------------------------------------------------------------------- + + DB name [ ] + DB user [ ] + DB pass [ ] + + [ E N T E R ] + ------------------------------------------------------------------------- + DB name DB user MySQL Ǿ ϼž մϴ. + ------------------------------------------------------------------------- + + JSBoard DB ԷѴ. Ұ Ʒ ҵ + MySQL ʴ ο DB naem, DB user ؾ Ѵ. + + ׸ Enter click ϸ, ٸ ٸ â + ̴. + + + Ϸ Ǿϴ. + Admin Page ̵ մϴ. + Admin Page ʱ Password + 0000 Դϴ. + + +3. JSBoard  + + ġ ÷ Ǿٸ Ѵ. 켱 ü + Ѵ. + + http://domain.com/jsboard/admin + + ϵ Ѵ. ׷ login â ̴. JSBoard ⺻ н + ʱⰪδ "0000" Ǿ н ϵ + Ѵ. (JSBoard ó ġ JSBoard 䱸ϴ н + "0000" ⺻ Ǿ ִ) + + OOPS Administration Center v1.6 ޶ ϴ + հ谡 Ż հ ߰ Ͽ. + ϴܿ ɼ ߰ Ǿ Խ ߰ + Ǿ. ׿ܿ ȭ Խ 缭 Բ ȭ + Ͽ, ׿ ޶ . :-) + ̴. Ű κ ִٸ Խ ÿ ѹ + conform ڿ ̷ ̴. + + +4. JSBoard + + CGI upload Ͽ ȹ ߻ ϰ ִ. + ܼ CGI ڵ常 Ͽ Ѵٴ + apache file õ ε file ؼ ʵ + ϴ Ҵ. kldp server + Ư ȣü ϴ 쿡 JSBoard + Ҽ ֱ Ѵ. + + Ҽ ִ. + + <DirectoryMatch "^/.*/jsboard/data"> + AddType application/x-httpd-php3-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins + AddType application/x-httpd-php-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins + + ErrorDocument 403 http://jsboard.kldp.org/ErrorMSG/error_msg.php?l=ko&c=403 + + <Files ~ ".*\.ph$"> + Order allow,deny + Deny from all + </Files> + </DirectoryMatch> + + ǹ̴ jsboard/data 丮 Ʒ ִ  data + ̸ 丮 .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs + .ins Ȯڸ source ϶ ǹ̸ Ұ ⿡ + н  ִ source ÷ ȵȴٴ ؾ Ѵ. + δ Խ 丮 ̸  ϴĿ Ѵ. + + data ̸ 丮 Ʒ .ph 쿡 + http://jsboard.kldp.org/ErrorMSG/error_msg.php?l=ko&c=403 ϶ + ǹ̴. + + root Ѹ ִ + ̶ ص ڿ ޶ ϴ° . + ؼ ϳ ״ Ƹ ̴. :-) + + ؿ  DZ⸦ ٶ鼭.. ׷.. + + +5. UPGRADE + + # QUICK_ISTALL ϵ Ѵ. + + 5-1. 0.8 ̻ version upgrade + + jsboard-1.2 ū ȭ Ȯ ȭ̴. 1.1.x + .php3 Ȯڸ jsbaord-1.2 ʹ .php ̸ + Ǿ. ׷ ҽ ϸ ȵȴ. + + ϴ 丮 jsabord-1.2 version Ǯ Ѵ. + Insatller/script/ ̵ Ͽ root.sh ϵ Ѵ. + ׸ data/ ִ 丮 1.2/data copy ϵ + ϰ, admin/include/config.ph 1.2/admin/include īǸ Ѵ. + + īǸ Ŀ ٽ Installer/script ̵ Ŀ root_p.sh + ϵ Ѵ. ( root.sh root_p.sh ƴ account.sh + account_p.sh ̿ؾ Ѵ.) + + config/global.ph 缳 ش. κ DB + κи ϰ 缳 ϵ Ѵ. ׸ + Խ ڷ Ͽ ѹ 缳 ֵ Ѵ. + + 5-2. 0.7 upgrade + + μ 0.6 0.7 upgrade ȴ. + ϴ user ּ 0.6 upgrade Ŀ + upgrade Ҽ ִ. ڼ QUICK_INSTALL ٷ絵 Ѵ + +6. ֽű ϱ + + 6-1. ֽű + + JSBoard ֽű ϴ ̴. include/prelist.ph + Ǹ Ͽ Ͽ Ҽ ִ.( php + ɼ ִ ̾ Ѵ) + + 6-2. ֽű + + ϴ jsboard/include/prelist.ph $prlist[path] $prlist[wpath] + ؾ Ѵ. $prlist[path] JSBoard ġ Ǿ ִ + θ ָ, $prlist[wpath] JSBoard µǴ θ + Ѵ. Ұ / ʵ Ѵ. + + ) + $prlist[path] = "/home/httpd/html/PHP/jsboard"; + $prlist[wpath] = "http://domain.com/PHP/jsboard"; + + ϴ ڸ 켱 ֽű ܿ + ڵ带 Ѵ. (߿ ų php + ɼ ִ ̾ Ѵ. Ȯڰ .php3 php νҼ + 쿡 .php3 file Ҽ ִ. + ̶ Ʈ κ ̸ ȴ.) + + <? + include "/prelist.ph"; + ?> + + Ʈ ϴ κп Լ ֵ Ѵ. + + <? prelist("a","b","c","d","e","f","g","h","i"); ?> + + prelist() Լ 鿡 ؼ Ʒ ϶. + + a ̺ ̸(Խ ̸) + b include file ( 1 - 0 - Ծ ) + κ ؾ Ѵ. ϳ ԽǸ ҷ + 1 Ѵ. Խ + ҷ 쿡 ֹ° Լ ʹ 0 Ǿ Ѵ. + c Ʈ + d ±ڼ + e ̸ ( 1 - 0 - ) + f ( 1 - 0 - ) + g ̸ ( 1 - 0 - ) + h ȸ ( 1 - 0 - ) + i ũ ɼ (: target onClick ) + + + Խ ϰ ʹٸ ڵ + Ѽ ָ ȴ. + + ) + + test Խ 3 ̸<br> + <? prelist("test",1,3,30,1,1,1,1,""); ?> + + <p> + test1 Խ 5 ̸<br> + <? prelist("test1",0,5,30,1,1,1,1,""); ?> + + ⼭ Ұ ι° Խ ѷ ٶ ι° ʵ 0 + ȴٴ Ѵ. ù° Խ ѷ ٶ 1 Ǿ ϰ, + ι° Խǿ 0 Ѵ. + + ϴ, ϸ μ ƹ پ + ѷְ ȴ. ϴ ϰ ʹٸ jsboard/include/prelist.ph + ߾ӿ ִ print_prlist() Լ echo ϸ ȴ. + + table tag 쿡 ؾ ִ. + ° ̴. + + > + + <table> + <? prelist(......) ?> + </table> + + ؾ ϸ prelist.ph print_prlist() Լ Ʒ + Ǿ Ѵ. + + function print_prlist($p) { + echo "<tr> + <td>$p[link]</td> + <td>$p[name]</td> + <td>$p[date]</td> + <td>$p[count]</td> + </tr>\n"; + } + + ̺ ϳ ϳ tr DZ for Ͽ + print_prlist() Լ ݺ Ǿ DZ Ǿ + ϴ ̴. ˾Ƽ ϱ ٶ. + +7. Bug report + + ׸ ߰ 쿡 http://jsboard.kldp.org/bbs/list.php?table=bbs_upgrade + ָ ϰڴ diff --git a/Installer/MySQL.txt b/Installer/MySQL.txt new file mode 100644 index 00000000..3eb02575 --- /dev/null +++ b/Installer/MySQL.txt @@ -0,0 +1,62 @@ + MySQL Queries + + SQLʺڵ JSBoard ġԿ ־ +MySQL ̴ query ҰѴ. +[] ѷ ׿ ִ ͵ ̴. + + +* MySQL login ϱ + + shell> mysql -u DB_user -p [DB_name] + +* DB ϱ + MySQL α Ҷ DB_name ʾ + 쿡 ϰų ٸ DB ۾ ű涧 + + mysql> use DB_name + +* DB + + mysql> create database DB_name; + mysql> drop database DB_name; + +* table + table mysql ڼ Ѵ. + + mysql> create table Table_name (field0,fiedl1,field2....); + mysql> drop table Table_name; + +* DB Table list + + mysql> show databases; + mysql> show tables; + +* Table Ӽ + + mysql> desc Table_name; + +* User ϱ + Ʒ value ִ DB_USER DB_PASS ش. + db ܺο ϰ Ϸ localhost ſ "%" + Ѵ. Ǵ 뿪 Ҽ ִ. + + mysql> insert into user (Host,User,Password) values('localhost','DB_USER',password('DB_PASS')); + +* DB ϱ + ߿ colum ڰ Ʋ desc db; colum + Ȯϰ Ѵ. + + mysql> insert into db values('localhost','DB_NAME','DB_USER','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); + +* MySQL user password ϱ + + mysql> use mysql + mysql> update from user set password('NEW_PASSWORD') where user = 'USER_NAME'; + +* MySQL reload ϱ + н带 ϰų ο ,DB ϰ reload + Ѵ. reload ΰ ִ. ϳ MySQL ϴ ̰ + ϳ shell󿡼 ϴ ̴. + + mysql> flush privileges; + shell> mysqladmin -u root --password=MySQL_PASSWORD reload diff --git a/Installer/SQL/mysql_freebsd.sql b/Installer/SQL/mysql_freebsd.sql new file mode 100644 index 00000000..94070516 --- /dev/null +++ b/Installer/SQL/mysql_freebsd.sql @@ -0,0 +1,33 @@ +# +# Table structure for table 'test' +# +CREATE TABLE test ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + 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, + moder int(1) 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), + PRIMARY KEY (no) +); diff --git a/Installer/SQL/mysql_linux.sql b/Installer/SQL/mysql_linux.sql new file mode 100644 index 00000000..5618ce49 --- /dev/null +++ b/Installer/SQL/mysql_linux.sql @@ -0,0 +1,33 @@ +# +# Table structure for table 'test' +# +CREATE TABLE test ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar(13), + 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, + moder int(1) 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), + PRIMARY KEY (no) +); diff --git a/Installer/SQL/sql.txt b/Installer/SQL/sql.txt new file mode 100644 index 00000000..45c0430f --- /dev/null +++ b/Installer/SQL/sql.txt @@ -0,0 +1,28 @@ ++--------+--------------+------+-----+---------+----------------+ +| Field | Type | Null | Key | Default | Extra | ++--------+--------------+------+-----+---------+----------------+ +| no | int(6) | | PRI | 0 | auto_increment | ȣ +| num | int(6) | | MUL | 0 | | Խ ȣ +| idx | int(6) | | MUL | 0 | | index ȣ +| date | int(11) | | MUL | 0 | | ¥ +| host | tinytext | YES | | NULL | | ۾ ּ +| name | tinytext | YES | | NULL | | ۾ ̸ +| passwd | varchar(13) | YES | | NULL | | ۾ ȣ +| email | tinytext | YES | | NULL | | ۾ +| url | tinytext | YES | | NULL | | ۾ Ȩ +| title | tinytext | YES | | NULL | | +| text | mediumtext | YES | | NULL | | +| refer | int(6) | | | 0 | | ȸ +| reyn | int(1) | | | 0 | | +| reno | int(6) | | MUL | 0 | | θ ȣ +| rede | int(6) | | | 0 | | +| reto | int(6) | | MUL | 0 | | ֻ θ +| html | int(1) | | | 1 | | HTML tag 뿩 +| moder | int(1) | | | 0 | | ? +| bofile | varchar(100) | YES | | NULL | | ε ̸ +| bcfile | varchar(100) | YES | | NULL | | ε 丮 +| bfsize | int(4) | YES | | NULL | | ++--------+--------------+------+-----+---------+----------------+ + +moder column ǹ̴ <redhand@linux.sarang.net> +ʽÿ ^^; \ No newline at end of file diff --git a/Installer/act.php b/Installer/act.php new file mode 100644 index 00000000..f0a883b9 --- /dev/null +++ b/Installer/act.php @@ -0,0 +1,112 @@ +<?php +session_start(); // session Ѵ. +$path[type] = "Install"; + +if ($langss == "ko") $langs[code] = "ko"; +else $langs[code] = "en"; + +include("../include/ostype.ph"); +require("../include/lang.ph"); +require("./include/passwd.ph"); +require("./include/check.ph"); + +// Password Checkk +inst_pwcheck($passwd,$mysqlpass,$langs[act_pw]); + +// MySQL login +$connect = mysql_connect("localhost","root",$passwd) or die("$langs[inst_sql_err]"); +$indb[lists] = mysql_list_dbs($connect); +$indb[num] = mysql_num_rows($indb[lists]); +mysql_select_db("mysql", $connect); + +// install.php Ѿ üũ +$indb[check] = inst_check(); + +// DB chek MySQL +if ($indb[check]) { + // MySQL DB + $create[dbname] = "create database $dbinst[name]"; + $result[dbname] = mysql_query($create[dbname],$connect); + + // User user table + $create[dbuser] = "insert into user (Host,User,Password) values('localhost','$dbinst[user]',password('$dbinst[pass]')) "; + $result[dbuser] = mysql_query($create[dbuser], $connect ); + + // DB User db table + $create[dbreg] = "insert into db values('localhost','$dbinst[name]','$dbinst[user]','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y') "; + $result[dbreg] = mysql_query($create[dbreg], $connect ); + + // test Խ + mysql_select_db($dbinst[name],$connect); + + $create[table] = "CREATE TABLE test ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar($ostypes[pfield]), + 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, + moder int(1) 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), + PRIMARY KEY (no))"; + + require("../admin/include/first_reg.ph"); + $passwd_ext = crypt($passwd_ext); + + $create[data] = "insert into test values ('',1,1,$date,'$host_ext','$name_ext','$passwd_ext', + '$email_ext','$url_ext','$subj_msg','$text_msg',0,0,0,0,0,0,0,'','','')"; + + $result[table] = mysql_query($create[table], $connect ); + $result[data] = mysql_query($create[data], $connect ); + + // ϵ user MySQL reload + $create[reload] = "flush privileges"; + $result[reload] = mysql_query($create[reload], $connect ); + + // Ͽ DB Է + $create[gfile] = "../config/global.ph"; + $fp[glo] = fopen($create[gfile],"r"); + $create[str] = fread($fp[glo], filesize($create[gfile])); + fclose($fp[glo]); + + $create[str] = ereg_replace("DBname",$dbinst[name],$create[str]); + $create[str] = ereg_replace("DBpass",$dbinst[pass],$create[str]); + $create[str] = ereg_replace("DBuser",$dbinst[user],$create[str]); + + $fp[glo] = fopen($create[gfile],"w"); + fwrite($fp[glo],$create[str]); + fclose($fp[glo]); + + // ʱȭ + $dbinst[name] = ""; + $dbinst[user] = ""; + $dbinst[pass] = ""; + +} else print_error("$langs[inst_error]"); + +mysql_close(); + +echo "<script>\n" . + " document.location='session.php?mode=first&langss=$langss'\n" . + "</script>"; + +?> diff --git a/Installer/ad_sample/FreeBSD/allow_browser.txt.orig b/Installer/ad_sample/FreeBSD/allow_browser.txt.orig new file mode 100644 index 00000000..14992886 --- /dev/null +++ b/Installer/ad_sample/FreeBSD/allow_browser.txt.orig @@ -0,0 +1,4 @@ +Mozilla +Lynx +Gulliver +HotJava \ No newline at end of file diff --git a/Installer/ad_sample/FreeBSD/config.ph.orig b/Installer/ad_sample/FreeBSD/config.ph.orig new file mode 100644 index 00000000..0574653b --- /dev/null +++ b/Installer/ad_sample/FreeBSD/config.ph.orig @@ -0,0 +1,10 @@ +<? +$sadmin[pern] = 10; # ü table +$sadmin[passwd] = "\$1\$Cx\$.2OyfWZCiPTc4sSw0vswc/"; # ü password + +# Copyright +$copy[name] = "JoungKyun Kim"; +$copy[email] = ""; +$copy[url] = "http://www.oops.org"; +$copy[version] = "1.9.1"; +?> diff --git a/Installer/ad_sample/FreeBSD/global.ph.orig b/Installer/ad_sample/FreeBSD/global.ph.orig new file mode 100644 index 00000000..b35e87c3 --- /dev/null +++ b/Installer/ad_sample/FreeBSD/global.ph.orig @@ -0,0 +1,220 @@ +<? + +############################################################################## +# Խ 㰡 , 0 - ڸ 㰡 +# 1 - 㰡 +# +# Ұ ⼭ 㸦 ϸ Խ ڵ ѵ 㰡 +############################################################################## +$enable[write] = 1; // ۾ 㰡 +$enable[reply] = 1; // 㰡 +$enable[edit] = 1; // 㰡 +$enable[delete] = 1; // 㰡 + + +############################################################################## +# û +############################################################################## +$enable[ore] = 0; // 0 - 1 - û + + +############################################################################## +# Ÿ̽ +############################################################################## +$db[server] = ":/var/local/mysql/mysql.sock"; // ּ +$db[user] = "DBuser"; // +$db[pass] = "DBpass"; // н +$db[name] = "DBname"; // ̸ + + +############################################################################## +# Խ ⺻ +############################################################################## +$board[title] = "Խ"; // Խ +$board[width] = 550; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) + +$board[moder] = 0; // Ƽ Խ +$board[date_fmt] = "Y.m.d"; // ¥ ǥ +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // +$board[uconf] = "yes"; // ϴ° 㰡 + +// Ѵܾ ̺ þ° . װ Ƿ +// . ׳ INSTALL.txt bug +$board[wrap] = "no"; + +// Ű Ⱓ () +$board[cookie] = 30; + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + +// ڿ style sheel +$board[css] = "style=\"line-height=120%\""; + +// Խ ̺ align. ʾ +// ⺻ align +$board[align] = "center"; + + +############################################################################## +# Խ ⺻ (Theme Ҷ ) +############################################################################## + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Background Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + +############################################################################## +# file upload . Խ ü 㰡 Ѵ. ⼭ no +# ϸ Խ ü file upload Ѵ. +############################################################################## +$upload[yesno] = "yes"; // upload +$upload[dir] = "files"; // upload file ġҰ +$upload[maxsize]= "2000000"; // upload max size + + +############################################################################## +# url,email +############################################################################## +$view[url] = "yes"; +$view[email] = "yes"; + + +############################################################################## +# mail ߼ +############################################################################## +$rmail[uses] = "yes"; +//jsboard ġǾ ִ +$rmail[bbshome] = "http://url.com/jsboard/"; + + +############################################################################## +# ( : en , : ko ) +############################################################################## +$langs[code] = "ko"; + + +############################################################################## +# ۳ ̸ +############################################################################## +$list[pre] = 0; // ̸ +$list[preren] = 100; // ̸ 㰡 + + +############################################################################## +# Ʒ Ͽ Ͻ superuser password 䱸 +############################################################################## +$compare[name] = ""; +$compare[email] = "user@localhost.com"; + + +############################################################################## +# ǵ Ѵ!!!!! +############################################################################## +if(file_exists("config/default.themes") && $color[theme]) + { include("config/default.themes"); } + +if(trim($table)) { + if (eregi("[^a-z0-9_\-]",$table)) { + echo "<SCRIPT>\n". + "alert('Can\'t use special characters except\\nalphabat, numberlic , _, - charcters')\n". + "</SCRIPT>\n"; + } + + if(@file_exists("data/$table/config.ph") && $board[uconf] == "yes") + { @include("data/$table/config.ph"); } + if(@file_exists("data/$table/default.themes") && $color[theme]) + { @include("data/$table/default.themes"); } +} + +$version = "1.2.3"; + +?> diff --git a/Installer/ad_sample/FreeBSD/spam_list.txt.orig b/Installer/ad_sample/FreeBSD/spam_list.txt.orig new file mode 100644 index 00000000..e69de29b diff --git a/Installer/ad_sample/Linux/allow_browser.txt.orig b/Installer/ad_sample/Linux/allow_browser.txt.orig new file mode 100644 index 00000000..14992886 --- /dev/null +++ b/Installer/ad_sample/Linux/allow_browser.txt.orig @@ -0,0 +1,4 @@ +Mozilla +Lynx +Gulliver +HotJava \ No newline at end of file diff --git a/Installer/ad_sample/Linux/config.ph.orig b/Installer/ad_sample/Linux/config.ph.orig new file mode 100644 index 00000000..f6a9b71e --- /dev/null +++ b/Installer/ad_sample/Linux/config.ph.orig @@ -0,0 +1,10 @@ +<? +$sadmin[pern] = 10; # ü table +$sadmin[passwd] = "lHJTjGW8VhHc."; # ü password + +# Copyright +$copy[name] = "JoungKyun Kim"; +$copy[email] = ""; +$copy[url] = "http://www.oops.org"; +$copy[version] = "1.9.1"; +?> diff --git a/Installer/ad_sample/Linux/global.ph.orig b/Installer/ad_sample/Linux/global.ph.orig new file mode 100644 index 00000000..07dba195 --- /dev/null +++ b/Installer/ad_sample/Linux/global.ph.orig @@ -0,0 +1,220 @@ +<? + +############################################################################## +# Խ 㰡 , 0 - ڸ 㰡 +# 1 - 㰡 +# +# Ұ ⼭ 㸦 ϸ Խ ڵ ѵ 㰡 +############################################################################## +$enable[write] = 1; // ۾ 㰡 +$enable[reply] = 1; // 㰡 +$enable[edit] = 1; // 㰡 +$enable[delete] = 1; // 㰡 + + +############################################################################## +# û +############################################################################## +$enable[ore] = 0; // 0 - 1 - û + + +############################################################################## +# Ÿ̽ +############################################################################## +# 쿡 $db[server] :/var/run/mysqld/mysqld.sock Ұ +$db[server] = ":/var/lib/mysql/mysql.sock"; // ּ +$db[user] = "DBuser"; // +$db[pass] = "DBpass"; // н +$db[name] = "DBname"; // ̸ + + +############################################################################## +# Խ ⺻ +############################################################################## +$board[title] = "Խ"; // Խ +$board[width] = 550; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) + +$board[moder] = 0; // Ƽ Խ +$board[date_fmt] = "Y.m.d"; // ¥ ǥ +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // +$board[uconf] = "yes"; // ϴ° 㰡 + +// Ѵܾ ̺ þ° . װ Ƿ +// . ׳ INSTALL.txt bug +$board[wrap] = "no"; + +// Ű Ⱓ () +$board[cookie] = 30; + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + +// ڿ style sheel +$board[css] = "style=\"line-height=120%\""; + +// Խ ̺ align. ʾ +// ⺻ align +$board[align] = "center"; + +############################################################################## +# Խ ⺻ (Theme Ҷ ) +############################################################################## + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Background Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + +############################################################################## +# file upload . Խ ü 㰡 Ѵ. ⼭ no +# ϸ Խ ü file upload Ѵ. +############################################################################## +$upload[yesno] = "yes"; // upload +$upload[dir] = "files"; // upload file ġҰ +$upload[maxsize]= "2000000"; // upload max size + + +############################################################################## +# url,email +############################################################################## +$view[url] = "yes"; +$view[email] = "yes"; + + +############################################################################## +# mail ߼ +############################################################################## +$rmail[uses] = "yes"; +//jsboard ġǾ ִ +$rmail[bbshome] = "http://url.com/jsboard/"; + + +############################################################################## +# ( : en , : ko ) +############################################################################## +$langs[code] = "ko"; + + +############################################################################## +# ۳ ̸ +############################################################################## +$list[pre] = 0; // ̸ +$list[preren] = 100; // ̸ 㰡 + + +############################################################################## +# Ʒ Ͽ Ͻ superuser password 䱸 +############################################################################## +$compare[name] = ""; +$compare[email] = "user@localhost.com"; + + +############################################################################## +# ǵ Ѵ!!!!! +############################################################################## +if(@file_exists("config/default.themes") && $color[theme]) + { include("config/default.themes"); } + +if(trim($table)) { + if (eregi("[^a-z0-9_\-]",$table)) { + echo "<SCRIPT>\n". + "alert('Can\'t use special characters except\\nalphabat, numberlic , _, - charcters')\n". + "</SCRIPT>\n"; + } + + if(@file_exists("data/$table/config.ph") && $board[uconf] == "yes") + { @include("data/$table/config.ph"); } + if(@file_exists("data/$table/default.themes") && $color[theme]) + { @include("data/$table/default.themes"); } +} + +$version = "1.2.3"; + +?> diff --git a/Installer/ad_sample/Linux/spam_list.txt.orig b/Installer/ad_sample/Linux/spam_list.txt.orig new file mode 100644 index 00000000..e69de29b diff --git a/Installer/ad_sample/Others/README b/Installer/ad_sample/Others/README new file mode 100644 index 00000000..62f798c9 --- /dev/null +++ b/Installer/ad_sample/Others/README @@ -0,0 +1,18 @@ +Linux, FreeBSD ýۿ crypt ȣ +׽Ʈ Ͽ config.ph.orig ּž մϴ. + +ϴ test.php ϰ + +<? +$a = crypt("0000"); +echo "+$a+"; +?> + + ְ test.php ȣϸ ++¼¼+ ϰ ˴ϴ. ׷ + ȣ +̿ ִ κ config.ph.orig $sadmin[pssswd] + ־ ֽø ˴ϴ. Ͻ +$ Ư ȣ \ڸ Ͽ ڿ ó + ּž մϴ. + + diff --git a/Installer/ad_sample/Others/allow_browser.txt.orig b/Installer/ad_sample/Others/allow_browser.txt.orig new file mode 100644 index 00000000..14992886 --- /dev/null +++ b/Installer/ad_sample/Others/allow_browser.txt.orig @@ -0,0 +1,4 @@ +Mozilla +Lynx +Gulliver +HotJava \ No newline at end of file diff --git a/Installer/ad_sample/Others/config.ph.orig b/Installer/ad_sample/Others/config.ph.orig new file mode 100644 index 00000000..f6a9b71e --- /dev/null +++ b/Installer/ad_sample/Others/config.ph.orig @@ -0,0 +1,10 @@ +<? +$sadmin[pern] = 10; # ü table +$sadmin[passwd] = "lHJTjGW8VhHc."; # ü password + +# Copyright +$copy[name] = "JoungKyun Kim"; +$copy[email] = ""; +$copy[url] = "http://www.oops.org"; +$copy[version] = "1.9.1"; +?> diff --git a/Installer/ad_sample/Others/global.ph.orig b/Installer/ad_sample/Others/global.ph.orig new file mode 100644 index 00000000..f44a8184 --- /dev/null +++ b/Installer/ad_sample/Others/global.ph.orig @@ -0,0 +1,219 @@ +<? + +############################################################################## +# Խ 㰡 , 0 - ڸ 㰡 +# 1 - 㰡 +# +# Ұ ⼭ 㸦 ϸ Խ ڵ ѵ 㰡 +############################################################################## +$enable[write] = 1; // ۾ 㰡 +$enable[reply] = 1; // 㰡 +$enable[edit] = 1; // 㰡 +$enable[delete] = 1; // 㰡 + + +############################################################################## +# û +############################################################################## +$enable[ore] = 0; // 0 - 1 - û + + +############################################################################## +# Ÿ̽ +############################################################################## +$db[server] = ":/var/lib/mysql/mysql.sock"; // ּ +$db[user] = "DBuser"; // +$db[pass] = "DBpass"; // н +$db[name] = "DBname"; // ̸ + + +############################################################################## +# Խ ⺻ +############################################################################## +$board[title] = "Խ"; // Խ +$board[width] = 550; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) + +$board[moder] = 0; // Ƽ Խ +$board[date_fmt] = "Y.m.d"; // ¥ ǥ +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // +$board[uconf] = "yes"; // ϴ° 㰡 + +// Ѵܾ ̺ þ° . װ Ƿ +// . ׳ INSTALL.txt bug +$board[wrap] = "no"; + +// Ű Ⱓ () +$board[cookie] = 30; + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + +// ڿ style sheel +$board[css] = "style=\"line-height=120%\""; + +// Խ ̺ align. ʾ +// ⺻ align +$board[align] = "center"; + +############################################################################## +# Խ ⺻ (Theme Ҷ ) +############################################################################## + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Background Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + +############################################################################## +# file upload . Խ ü 㰡 Ѵ. ⼭ no ϸ +# Խ ü file upload Ѵ. +############################################################################## +$upload[yesno] = "yes"; // upload +$upload[dir] = "files"; // upload file ġҰ +$upload[maxsize]= "2000000"; // upload max size + + +############################################################################## +# url,email +############################################################################## +$view[url] = "yes"; +$view[email] = "yes"; + + +############################################################################## +# mail ߼ +############################################################################## +$rmail[uses] = "yes"; +//jsboard ġǾ ִ +$rmail[bbshome] = "http://url.com/jsboard/"; + + +############################################################################## +# ( : en , : ko ) +############################################################################## +$langs[code] = "ko"; + + +############################################################################## +# ۳ ̸ +############################################################################## +$list[pre] = 0; // ̸ +$list[preren] = 100; // ̸ 㰡 + + +############################################################################## +# Ʒ Ͽ Ͻ superuser password 䱸 +############################################################################## +$compare[name] = ""; +$compare[email] = "user@localhost.com"; + + +############################################################################## +# ǵ Ѵ!!!!! +############################################################################## +if(file_exists("config/default.themes") && $color[theme]) + { include("config/default.themes"); } + +if(trim($table)) { + if (eregi("[^a-z0-9_\-]",$table)) { + echo "<SCRIPT>\n". + "alert('Can\'t use special characters except\\nalphabat, numberlic , _, - charcters')\n". + "</SCRIPT>\n"; + } + + if(@file_exists("data/$table/config.ph") && $board[uconf] == "yes") + { @include("data/$table/config.ph"); } + if(@file_exists("data/$table/default.themes") && $color[theme]) + { @include("data/$table/default.themes"); } +} + +$version = "1.2.3"; + +?> diff --git a/Installer/ad_sample/Others/spam_list.txt.orig b/Installer/ad_sample/Others/spam_list.txt.orig new file mode 100644 index 00000000..e69de29b diff --git a/Installer/auth.php b/Installer/auth.php new file mode 100644 index 00000000..098a768f --- /dev/null +++ b/Installer/auth.php @@ -0,0 +1,237 @@ +<?php + +$path[type] = "Install"; +$copydate = time(); +$copydate = date("Y",$copydate); + +require("../config/themes/basic.themes"); +require("./include/passwd.ph"); + +if ($langss == "ko") $langs[code] = "ko"; +else $langs[code] = "en"; + +include("../include/lang.ph"); +require("../include/get.ph"); +require("../include/print.ph"); +require("../html/head.ph"); + +$agent = get_agent(); + +echo "<table border=0 width=100% height=100%>\n" . + "<tr><td align=center valign=center>\n\n"; + +if (!$mode) { + echo "<form method=POST action=$PHP_SELF>\n\n" . + "<table width=400 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard Installer</font>\n" . + "</td></tr>\n<tr><td align=center>\n" . + "<font color=$color[text]>\n&nbsp;<br>\n" . + "<input type=radio name=langss checked value=\"ko\" id=radio>Korean\n" . + "<input type=radio name=langss value=\"en\" id=radio>English<br>\n" . + "<br>&nbsp;\n</font>\n</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<input type=hidden name=mode value=license>\n" . + "<input type=submit value=submit>\n" . + "</td></tr>\n</table>\n</form>\n"; +} elseif ($mode == "license") { + if ($langs[code] == "ko") $agreefile = "../COPYING"; + else $agreefile = "../COPYING.en"; + + $agree_ment = eregi_replace("(http://jsboard.kldp.org)","<a href=\\1 target=_blank>\\1</a>",$agree_ment); + + echo "<form name=auth method=POST action=auth.php>\n" . + "<table width=500 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard License</font>\n" . + "</td></tr>\n<tr><td>\n"; + + if ($agent[br] == "MSIE") { + echo "<iframe src=\"$agreefile\" width=600 height=200 frameborder=1>\n" . + "</iframe>\n"; + } else { + $fp = fopen($agreefile,"r"); + $agree_ment = fread($fp, filesize($agreefile)); + fclose($fp); + + if ($langs[code] == "en") $colsize = form_size(40); + else $colsize = form_size(35); + + echo "<textarea cols=$colsize rows=15 wrap=hard>$agree_ment</textarea>\n"; + } + + echo "</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<input type=hidden name=mode value=check_exec>\n" . + "<input type=hidden name=langss value=$langs[code]>\n" . + "<input type=submit value='AGREE'>\n" . + "</td></tr>\n</table>\n" . + "</form>\n"; +} elseif ($mode == "check_exec") { + echo "<table width=500 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard Environment Check</font>\n" . + "</td></tr>\n<tr><td align=center>\n<font color=white>\n"; + + $mcheck = @mysql_connect($mysql_sock, "root", "$passwd"); + + if ($mcheck) { + mysql_select_db("mysql"); + $query = "select * from db"; + $result = mysql_query($query,$mcheck); + $column = mysql_fetch_array($result); + $cnum = sizeof($column)/2; + $mcheck = 1; + } else { + $mcheck = 0; + $cnum = 0; + } + + if (exec("echo hellow")) { + $echeck = 1; + exec("cat $apache_config_file | grep ^DirectoryIndex",$array); + + for($i=0;$i<sizeof($array);$i++) { + if(eregi("index.(php |php$)+",$array[$i])) $cindex = 1; + } + } else { + $echeck = 0; + $cindex = 0; + $cconf = 0; + } + + if(@touch("../data/aaa.test")) { + $p1 = 1; + @unlink("../data/aaa.test"); + } + + if(@touch("../config/aaa.test")) { + $p2 = 1; + @unlink("../config/aaa.test"); + } + + if ($p1 && $p2) $pcheck = 1; + else $pcheck = 0; + + echo "</font>\n$langs[waitm]\n" . + "<meta http-equiv=\"refresh\" content=\"5;URL=$PHP_SELF?mode=check_conform&mcheck=$mcheck&cnum=$cnum&echeck=$echeck&cindex=$cindex&cconf=$cconf&pcheck=$pcheck&langss=$langs[code]\">" . + "</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>$langs[wait]</font>\n" . + "</td></tr>\n</table>\n"; +} elseif ($mode == "check_conform") { + + if ($mcheck) { + $m = "OK"; + if ($cnum == "13") $mc = "OK"; + else $mc = "Error"; + } else $m = "Failed"; + + if ($echeck) { + $e = "OK"; + if ($cindex) $ci = "OK"; + else $ci = "Failed"; + } else $e = "Failed"; + + if ($pcheck) $p = "OK"; + else $p = "Error"; + + if (!$mcheck || $cnum != "13" || !$echeck || !$cindex || $cconf || !$pcheck) $actlink = ""; + else $actlink = "choise"; + + if (eregi("linux",$OSTYPE)) { + if (file_exists("/etc/redhat-release")) $os_type = "Redhat"; + elseif (file_exists("/etc/debian_version")) $os_type = "Debian"; + } else $os_type = $OSTYPE; + + echo "<form method=POST action=$PHP_SELF>\n\n" . + "<table width=400 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard Enviornment Check Reuslt</font>\n" . + "</td></tr>\n<tr><td align=center>\n" . + "<font color=$color[text]>\n&nbsp;<br>\n\n" . + "<table>\n<tr>\n<td>OS Type</td>\n<td>:</td>\n<td>$os_type</td>\n</tr>\n\n"; + + if (!eregi("linux",$OSTYPE)) + echo "<tr>\n<td colspan=3>\n<font color=red>$lnags[os_check]</font>\n</td>\n</tr>\n\n"; + + echo "<tr>\n<td>MySQL check</td>\n<td>:</td>\n<td>$m</td>\n</tr>\n\n"; + + if (!$mcheck) + echo "<tr>\n<td colspan=3>\n<font color=red>$langs[mcheck]</font>\n</td>\n</tr>\n\n"; + if ($mcheck) + echo "<tr>\n<td>DB table column check</td>\n<td>:</td>\n<td>$mc</td>\n</tr>\n\n"; + if ($mc == "Error") + echo "<tr>\n<td colspan=3>\n<font color=red>$langs[ccheck]</font>\n</td>\n</tr>\n\n"; + + echo "<tr>\n<td>exec() function check</td>\n<td>:</td>\n<td>$e</td>\n</tr>\n\n"; + + if ($e == "Failed") + echo "<tr>\n<td colspan=3>\n<font color=red>$langs[echeck]</font>\n</td>\n</tr>\n\n"; + + if ($echeck) { + echo "<tr>\n<td>index file check</td>\n<td>:</td>\n<td>$ci</td>\n</tr>\n\n"; + if ($ci == "Failed") echo "<tr>\n<td colspan=3>\n<font color=red>$langs[icheck]</font>\n</td>\n</tr>\n\n"; + } + + echo "<tr>\n<td>Permission check</td>\n<td>:</td>\n<td>$p</td>\n</tr>\n\n"; + + if ($p == "Error") { + echo "<tr>\n<td colspan=3>\n<font color=red>$langs[pcheck]</font>\n</td>\n</tr>\n\n"; + } + + echo "</table>" . + "<br>&nbsp;\n</font>\n</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<input type=hidden name=mode value=$actlink>\n" . + "<input type=hidden name=langss value=$langs[code]>\n" . + "<input type=submit value=submit>\n" . + "</td></tr>\n</table>\n</form>\n"; +} elseif ($mode == "choise") { + echo "<form method=POST action=$PHP_SELF>\n\n" . + "<table width=400 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard Installer</font>\n" . + "</td></tr>\n<tr><td align=center>\n" . + "<font color=$color[text]>\n&nbsp;<br>\n" . + "<input type=radio name=mode checked value=\"first\" id=radio>First Installation\n" . + "<input type=radio name=mode value=\"upgrade\" id=radio>Upgrade<br>\n" . + "<br>&nbsp;\n</font>\n</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<input type=hidden name=langss value=$langs[code]>\n" . + "<input type=submit value=submit>\n" . + "</td></tr>\n</table>\n</form>\n"; +} elseif ($mode == "first") { + if ($agent[br] == "MOZL") $fsize = form_size(7); + else $fsize = form_size(9); + + echo "<form name=auth method=POST action=session.php>\n" . + "<table width=400 border=0 cellpadding=5>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>JSBoard Installer</font>\n" . + "</td></tr>\n<tr><td align=center>\n" . + "<font color=$color[text]>\nMySQL password<br>\n" . + "<input type=password name=mysqlpass size=$fsize>\n" . + "<input type=hidden name=mode value=login>\n" . + "<input type=hidden name=langss value=$langs[code]>\n" . + "</form>\n\n" . + "<form name=reset method=POST action=session.php>\n" . + "<input type=hidden name=mode value=logout>\n" . + "<input type=hidden name=langss value=$langs[code]>\n" . + "Password $langs[inst_r] <input type=submit name=reset value=reset>\n" . + "</font>\n</td></tr>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n" . + "<font color=$color[l0_fg]>$langs[auser]</font>\n" . + "</td></tr>\n</table>\n" . + "</form>\n"; +} elseif ($mode == "upgrade") + echo "<font size=+4><b> Comming Soon </b></font>\n\n"; +else + echo "<font size=+4><b> ^0^ </b></font>\n\n"; + +echo "\n<p>\nCopyleft 1999-$copydate by " . + "<a href=http://jsboard.kldp.org target=_blank>JSBoard Open Project<a/>\n" . + "\n</td></tr>\n</table>\n"; + +require("../html/tail.ph"); +?> diff --git a/Installer/include/check.ph b/Installer/include/check.ph new file mode 100644 index 00000000..3a53ba76 --- /dev/null +++ b/Installer/include/check.ph @@ -0,0 +1,58 @@ +<?php + +// error message +function print_error($msg) { + $msg = urlencode($msg); + echo "<script>\nalert('$msg')\nhistory.back() \n</script>"; + exit; +} + +// Password üũ κ +function inst_pwcheck($pass,$mypass,$msg) { + global $langs; + if ($pass != $mypass) { + echo "<script>\n" . + "alert('$msg')\n" . + "document.location='./session.php?mode=logout&langss=$langs[code]'\n" . + "</script>"; + exit; + } +} + +// DB üũ +function inst_chk_var($db,$msg) { + if (!$db) print_error($msg); +} + +function inst_chk_numberic($name,$msg) { + if (eregi("^[0-9]",$name)) print_error($msg); +} + +function inst_chk_dbname($name,$msg) { + global $indb; + for ($i=0; $i<$indb[num]; $i++) { + $dbname = mysql_dbname($indb[lists],$i); + if ($name == $dbname) print_error($msg); + } +} + +function inst_chk_dbuser($name,$msg) { + global $connect, $langs; + $check = "select user from user where user = '$name'"; + $result = mysql_query($check, $connect ); + $row = mysql_fetch_array($result); + if ($row) print_error($msg); +} + +function inst_check() { + global $dbinst, $langs; + inst_chk_var($dbinst[name],$langs[inst_chk_varn]); + inst_chk_var($dbinst[user],$langs[inst_chk_varu]); + inst_chk_var($dbinst[pass],$langs[inst_chk_varp]); + inst_chk_numberic($dbinst[name],$langs[inst_ndb]); + inst_chk_numberic($dbinst[user],$langs[inst_udb]); + inst_chk_dbname($dbinst[name],$langs[inst_adb]); + inst_chk_dbuser($dbinst[user],$langs[inst_cudb]); + return 1; +} +?> diff --git a/Installer/include/passwd.ph b/Installer/include/passwd.ph new file mode 100644 index 00000000..ca53212a --- /dev/null +++ b/Installer/include/passwd.ph @@ -0,0 +1,29 @@ +<?php +/****************************************************/ +# Specify MySQL Root Password +# mysql root password +# +$passwd = ""; + +# apache (httpd.conf) θ +# redhat rpm package /etc/httpd/conf/httpd.conf +# debian package /etc/apache/httpd.conf +# ġ /usr/local/apache/conf/httpd.conf +# ġϴ 찡 . +# +$apache_config_file = "/etc/httpd/conf/httpd.conf"; + +# MySQL socket file ġ . socket file +# 𸣰 localhost 127.0.0.1 +# . DB ܺο 쿡 ش DB ip +# address domain name ֵ ϸ, 쿡 +# DB mysql Ͽ +# Ѵ. +# +# socket file ġ ˰ ʹٸ +# netsatat -an | grep mysql +# ˼ ִ. +# +$mysql_sock = ":/var/lib/mysql/mysql.sock"; +/****************************************************/ +?> diff --git a/Installer/index.php b/Installer/index.php new file mode 100644 index 00000000..b037b8e9 --- /dev/null +++ b/Installer/index.php @@ -0,0 +1 @@ +<? header("location:auth.php"); ?> diff --git a/Installer/install.php b/Installer/install.php new file mode 100644 index 00000000..4c9b35fa --- /dev/null +++ b/Installer/install.php @@ -0,0 +1,62 @@ +<?php +session_start(); // session Ѵ. +$path[type] = "Install"; + +if ($langss == "ko") $langs[code] = "ko"; +else $langs[code] = "en"; + +//require("./ad_sample/global.ph.orig"); +require("../config/themes/basic.themes"); +require("../include/lang.ph"); +require("../include/get.ph"); +require("../html/head.ph"); +require("./include/passwd.ph"); +require("./include/check.ph"); + +// Password Check +inst_pwcheck($passwd,$mysqlpass,$langs[act_pw]); + +$dbname = "JSBoard-$version"; +$dbname = eregi_replace("(\-|\.|[ ]*)","",$dbname); +?> + +<table border=0 width=100% height=100%> +<tr><td align=center valign=center> + +<hr size=1 width='500' noshade> +Mysql User Registration Page +<hr size=1 width='500' noshade> + +<table border=0> +<form method='post' action='act.php'> +<tr><td colspan=2><br></td></tr> +<tr> +<td><B>&nbsp; DB name &nbsp;</B></td> +<td align=left><input type='text' name='dbinst[name]' size=20 value="<? echo $dbname ?>"></td> +</tr> + +<tr> +<td><B>&nbsp; DB user &nbsp;</B></td> +<td align=left><input type='text' name='dbinst[user]' size=20></td> +</tr> + +<tr> +<td><B>&nbsp; DB pass &nbsp;</B></td> +<td align=left><input type='password' name='dbinst[pass]' size=20></td> +</tr> + +<tr> +<td align=center colspan=2>&nbsp;</td> +</tr> +<tr><td colspan=2 align=center><input type='submit' value='E N T E R'></td></tr> +<input type=hidden name=langss value=<? echo $langs[code] ?>> +</form> +</table> + +<hr size=1 width='500' noshade> +<? echo $langs[regi_ment] ?> +<hr size=1 width='500' noshade> +</td></tr> +</table> + +<? require("../html/tail.ph") ?> diff --git a/Installer/sample/FreeBSD/config.ph b/Installer/sample/FreeBSD/config.ph new file mode 100644 index 00000000..ed399352 --- /dev/null +++ b/Installer/sample/FreeBSD/config.ph @@ -0,0 +1,188 @@ +<? +/****************************************************************************** + Խ н +******************************************************************************/ +$admin[passwd] = "\$1\$Cx\$.2OyfWZCiPTc4sSw0vswc/"; // password + + +/****************************************************************************** + Խ 㰡 , 0 - ڸ 㰡 + 1 - 㰡 +******************************************************************************/ +$cenable[write] = 1; // ۾ 㰡 +$cenable[reply] = 1; // 㰡 +$cenable[edit] = 1; // 㰡 +$cenable[delete] = 1; // 㰡 +$enable[pre] = 0; // ̸ 㰡 +$enable[preren] = 50; // ̸ 㰡 + + +/***************************************************************************** + û +*****************************************************************************/ +$enable[ore] = 0; // 0 - 1 - û + + +/***************************************************************************** + б⿡ ñ ñ Ʈ +*****************************************************************************/ +$enable[re_list] = 0; // 0 - 1 - + + +############################################################################### +# Խ ¸ +############################################################################### +$board[align] = "center"; // <DIV align=\"$board[align]\"> + + +/****************************************************************************** + Խ ⺻ +******************************************************************************/ +$board[title] = "Test Խ"; // Խ +$board[wrap] = "no"; // þ° +$board[width] = "550"; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // + +// Ű Ⱓ () +$board[cookie] = 30; + + +/****************************************************************************** + Խ ⺻ (Theme Ҷ ) +******************************************************************************/ + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Back Ground Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + + +/****************************************************************************** + file upload + + ü ڰ ⼭ yes ؼ Ҽ . +******************************************************************************/ +$cupload[yesno] = "no"; // upload + + +/****************************************************************************** + url,email +******************************************************************************/ +$view[url] = "no"; +$view[email] = "no"; + + +/****************************************************************************** + mail ߼ + + ü on Ҽ ִ +******************************************************************************/ +$rmail[admin] = "no"; +$rmail[user] = "no"; +$rmail[toadmin] = "user@localhost"; // Խ ּ + + +/****************************************************************************** + ( : en , : ko ) +******************************************************************************/ +$langs[code] = "ko"; + + +/****************************************************************************** + Ʒ Ͽ Ͻ password 䱸 +******************************************************************************/ +$ccompare[name] = "峪"; +$ccompare[email] = "cuser@localhost.com"; + +?> diff --git a/Installer/sample/FreeBSD/html_head.ph b/Installer/sample/FreeBSD/html_head.ph new file mode 100644 index 00000000..ce8678e4 --- /dev/null +++ b/Installer/sample/FreeBSD/html_head.ph @@ -0,0 +1,3 @@ +<!-- ======================= A foreword ======================= --> + +<!-- ======================= A foreword ======================= --> diff --git a/Installer/sample/FreeBSD/html_tail.ph b/Installer/sample/FreeBSD/html_tail.ph new file mode 100644 index 00000000..52b256d9 --- /dev/null +++ b/Installer/sample/FreeBSD/html_tail.ph @@ -0,0 +1,3 @@ +<!-- ========================= Tail ========================= --> + +<!-- ========================= Tail ========================= --> diff --git a/Installer/sample/Linux/config.ph b/Installer/sample/Linux/config.ph new file mode 100644 index 00000000..11c6bc13 --- /dev/null +++ b/Installer/sample/Linux/config.ph @@ -0,0 +1,188 @@ +<? +/****************************************************************************** + Խ н +******************************************************************************/ +$admin[passwd] = "67ZU8N0MN/rr."; // password + + +/****************************************************************************** + Խ 㰡 , 0 - ڸ 㰡 + 1 - 㰡 +******************************************************************************/ +$cenable[write] = 1; // ۾ 㰡 +$cenable[reply] = 1; // 㰡 +$cenable[edit] = 1; // 㰡 +$cenable[delete] = 1; // 㰡 +$enable[pre] = 0; // ̸ 㰡 +$enable[preren] = 50; // ̸ 㰡 + + +/***************************************************************************** + û +*****************************************************************************/ +$enable[ore] = 0; // 0 - 1 - û + + +/***************************************************************************** + б⿡ ñ ñ Ʈ +*****************************************************************************/ +$enable[re_list] = 0; // 0 - 1 - + + +############################################################################### +# Խ ¸ +############################################################################### +$board[align] = "center"; // <DIV align=\"$board[align]\"> + + +/****************************************************************************** + Խ ⺻ +******************************************************************************/ +$board[title] = "Test Խ"; // Խ +$board[wrap] = "no"; // þ° +$board[width] = "550"; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // + +// Ű Ⱓ () +$board[cookie] = 30; + + +/****************************************************************************** + Խ ⺻ (Theme Ҷ ) +******************************************************************************/ + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Back Ground Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + + +/****************************************************************************** + file upload + + ü ڰ ⼭ yes ؼ Ҽ . +******************************************************************************/ +$cupload[yesno] = "no"; // upload + + +/****************************************************************************** + url,email +******************************************************************************/ +$view[url] = "no"; +$view[email] = "no"; + + +/****************************************************************************** + mail ߼ + + ü on Ҽ ִ +******************************************************************************/ +$rmail[admin] = "no"; +$rmail[user] = "no"; +$rmail[toadmin] = "user@localhost"; // Խ ּ + + +/****************************************************************************** + ( : en , : ko ) +******************************************************************************/ +$langs[code] = "ko"; + + +/****************************************************************************** + Ʒ Ͽ Ͻ password 䱸 +******************************************************************************/ +$ccompare[name] = "峪"; +$ccompare[email] = "cuser@localhost.com"; + +?> diff --git a/Installer/sample/Linux/html_head.ph b/Installer/sample/Linux/html_head.ph new file mode 100644 index 00000000..ce8678e4 --- /dev/null +++ b/Installer/sample/Linux/html_head.ph @@ -0,0 +1,3 @@ +<!-- ======================= A foreword ======================= --> + +<!-- ======================= A foreword ======================= --> diff --git a/Installer/sample/Linux/html_tail.ph b/Installer/sample/Linux/html_tail.ph new file mode 100644 index 00000000..52b256d9 --- /dev/null +++ b/Installer/sample/Linux/html_tail.ph @@ -0,0 +1,3 @@ +<!-- ========================= Tail ========================= --> + +<!-- ========================= Tail ========================= --> diff --git a/Installer/sample/Others/config.ph b/Installer/sample/Others/config.ph new file mode 100644 index 00000000..11c6bc13 --- /dev/null +++ b/Installer/sample/Others/config.ph @@ -0,0 +1,188 @@ +<? +/****************************************************************************** + Խ н +******************************************************************************/ +$admin[passwd] = "67ZU8N0MN/rr."; // password + + +/****************************************************************************** + Խ 㰡 , 0 - ڸ 㰡 + 1 - 㰡 +******************************************************************************/ +$cenable[write] = 1; // ۾ 㰡 +$cenable[reply] = 1; // 㰡 +$cenable[edit] = 1; // 㰡 +$cenable[delete] = 1; // 㰡 +$enable[pre] = 0; // ̸ 㰡 +$enable[preren] = 50; // ̸ 㰡 + + +/***************************************************************************** + û +*****************************************************************************/ +$enable[ore] = 0; // 0 - 1 - û + + +/***************************************************************************** + б⿡ ñ ñ Ʈ +*****************************************************************************/ +$enable[re_list] = 0; // 0 - 1 - + + +############################################################################### +# Խ ¸ +############################################################################### +$board[align] = "center"; // <DIV align=\"$board[align]\"> + + +/****************************************************************************** + Խ ⺻ +******************************************************************************/ +$board[title] = "Test Խ"; // Խ +$board[wrap] = "no"; // þ° +$board[width] = "550"; // Խ ʺ +$board[tit_l] = 42; // ʵ ִ +$board[nam_l] = 8; // ۾ ʵ ִ +$board[perno] = 10; // Խù +$board[plist] = 2; // (x2+1) +$board[img] = "yes"; // Image ޴ +$board[cmd] = "no"; // + +// Ű Ⱓ () +$board[cookie] = 30; + + +/****************************************************************************** + Խ ⺻ (Theme Ҷ ) +******************************************************************************/ + +// Theme 뿩 +$color[theme] = 1; // "1" : 밡 "0" : + +// Back Ground Image +$color[image] = ""; + +// HTML ⺻ +$color[bgcol] = "#000000"; // BGCOLOR +$color[text] = "#ffffff"; // TEXT +$color[link] = "#555555"; // LINK +$color[vlink] = "#555555"; // VLINK +$color[alink] = "#555555"; // ALINK + +$color[n0_fg] = "#999999"; // Ϲ +$color[n0_bg] = "#ffffff"; // Ϲ +$color[n1_fg] = "#666666"; // Ұ +$color[n2_bg] = "#FFFFFF"; // +$color[n2_fg] = "#555555"; // + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +$board[hl] = "<FONT COLOR=#000000><B><U>STR</U></B></FONT>"; + + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +// +$color[l0_bg] = "#333333"; // ׵θ +$color[l0_fg] = "#ffffff"; // ׵θ +$color[l1_bg] = "#666666"; // +$color[l1_fg] = "#ffffff"; // +$color[l2_bg] = "#efefef"; // +$color[l2_fg] = "#000000"; // +$color[l3_bg] = "#dfdfdf"; // +$color[l3_fg] = "#000000"; // + +$color[td_co] = "#888888"; // ö ǥ +$color[cp_co] = "#ffaa00"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +$color[r0_bg] = "#333333"; // ׵θ +$color[r0_fg] = "#ffffff"; // ׵θ +$color[r1_bg] = "#666666"; // +$color[r1_fg] = "#ffffff"; // +$color[r2_bg] = "#dfdfdf"; // +$color[r2_fg] = "#000000"; // +$color[r3_bg] = "#efefef"; // ۳ +$color[r3_fg] = "#000000"; // ۳ +$color[r4_bg] = "#cacaca"; // +$color[r4_fg] = "#000000"; // + + +/****************************************************************************** + file upload + + ü ڰ ⼭ yes ؼ Ҽ . +******************************************************************************/ +$cupload[yesno] = "no"; // upload + + +/****************************************************************************** + url,email +******************************************************************************/ +$view[url] = "no"; +$view[email] = "no"; + + +/****************************************************************************** + mail ߼ + + ü on Ҽ ִ +******************************************************************************/ +$rmail[admin] = "no"; +$rmail[user] = "no"; +$rmail[toadmin] = "user@localhost"; // Խ ּ + + +/****************************************************************************** + ( : en , : ko ) +******************************************************************************/ +$langs[code] = "ko"; + + +/****************************************************************************** + Ʒ Ͽ Ͻ password 䱸 +******************************************************************************/ +$ccompare[name] = "峪"; +$ccompare[email] = "cuser@localhost.com"; + +?> diff --git a/Installer/sample/Others/html_head.ph b/Installer/sample/Others/html_head.ph new file mode 100644 index 00000000..ce8678e4 --- /dev/null +++ b/Installer/sample/Others/html_head.ph @@ -0,0 +1,3 @@ +<!-- ======================= A foreword ======================= --> + +<!-- ======================= A foreword ======================= --> diff --git a/Installer/sample/Others/html_tail.ph b/Installer/sample/Others/html_tail.ph new file mode 100644 index 00000000..52b256d9 --- /dev/null +++ b/Installer/sample/Others/html_tail.ph @@ -0,0 +1,3 @@ +<!-- ========================= Tail ========================= --> + +<!-- ========================= Tail ========================= --> diff --git a/Installer/script/account.sh b/Installer/script/account.sh new file mode 100755 index 00000000..ad2f623e --- /dev/null +++ b/Installer/script/account.sh @@ -0,0 +1,71 @@ +#!/bin/sh +echo "===================================================" +echo " Scripted By JoungKyun Kim <admin@oops.org>" +echo " JSBoard Permission Configurations v1.0" +echo "===================================================" +echo + +OS=`uname` + +if [ "$OS" = "Linux" ]; then + AD="Linux" +else + if [ "$OS" = "FreeBSD" ]; then + AD="FreeBSD" + else + AD="Others" + fi +fi + +if [ "$OS" = "Linux" ]; then + cp -af ../ad_sample/$AD/global.ph.orig ../../config/global.ph + cp -af ../ad_sample/$AD/spam_list.txt.orig ../../config/spam_list.txt + cp -af ../ad_sample/$AD/allow_browser.txt.orig ../../config/allow_browser.txt + cp -af ../ad_sample/$AD/config.ph.orig ../../admin/include/config.ph + if [ -d "../../data/test" ]; then + cp -a ../sample/$AD/* ../../data/test/ + else + cp -a ../sample/$AD ../../data/test + fi +else + cp -Rp ../ad_sample/$AD/global.ph.orig ../../config/global.ph + cp -Rp ../ad_sample/$AD/spam_list.txt.orig ../../config/spam_list.txt + cp -Rp ../ad_sample/$AD/allow_browser.txt.orig ../../config/allow_browser.txt + cp -Rp ../ad_sample/$AD/config.ph.orig ../../admin/include/config.ph + if [ -d "../../data/test" ]; then + cp -Rp ../sample/$AD/* ../../data/test/ + else + cp -Rp ../sample/$AD ../../data/test + fi +fi + +if [ ! -f ../../config/default.themes ]; then + ln -s ./themes/basic.themes ../../config/default.themes +fi + +# permission configuration +chmod 707 ../../config +chmod 707 ../../data +chmod 707 ../../data/test +chmod 707 ../../data/test/files +chmod 660 ../../config/global.ph +chmod 660 ../../config/spam_list.txt +chmod 606 ../../config/allow_browser.txt +chmod 660 ../../admin/include/config.ph +chmod 606 ../../data/test/config.ph +chmod 606 ../../data/test/html_head.ph +chmod 606 ../../data/test/html_tail.ph + +if [ "$LANG" = "ko" ]; then + echo "config/global.ph config/spam_list.txt admin/include/config.ph" + echo "file group nobody ־ մϴ. " + echo "ϵ ׷ Ҽ ٸ permission 606 " + echo "ֽʽÿ" +else + echo "Group Owner of \"config/global.ph config/spam_list.txt" + echo "admin/include/config.ph\" will set nobody that is operation" + echo "group of Web Server. If don't set nobody, you will set the" + echo "permission 606." +fi + +exit 0 diff --git a/Installer/script/account_p.sh b/Installer/script/account_p.sh new file mode 100755 index 00000000..f1e1e492 --- /dev/null +++ b/Installer/script/account_p.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# permission configuration +chmod 707 ../../config +chmod 707 ../../data +chmod 707 ../../data/test +chmod 707 ../../data/test/files +chmod 660 ../../config/global.ph +chmod 660 ../../config/spam_list.txt +chmod 606 ../../config/allow_browser.txt +chmod 660 ../../admin/include/config.ph +if [ -d "../../data/test" ]; then + chmod 606 ../../data/test/config.ph + chmod 606 ../../data/test/html_head.ph + chmod 606 ../../data/test/html_tail.ph +fi + +if [ "$LANG" = "ko" ]; then + echo "config/global.ph config/spam_list.txt admin/include/config.ph" + echo "file group nobody ־ մϴ. " + echo "ϵ ׷ Ҽ ٸ permission 606 " + echo "ֽʽÿ" +else + echo "Group Owner of \"config/global.ph config/spam_list.txt" + echo "admin/include/config.ph\" will set nobody that is operation" + echo "group of Web Server. If don't set nobody, you will set the" + echo "permission 606." +fi + +exit 0 diff --git a/Installer/script/root.sh b/Installer/script/root.sh new file mode 100755 index 00000000..482b11a8 --- /dev/null +++ b/Installer/script/root.sh @@ -0,0 +1,93 @@ +#!/bin/sh + +echo "===================================================" +echo " Scripted By JoungKyun Kim <admin@oops.org>" +echo " JSBoard Permission Configurations v1.0" +echo "===================================================" +echo + +OS=`uname` + +if [ "$OS" = "Linux" ]; then + if [ -f /etc/debian_version ]; then + DIST="Debian" + UGROUPS="www-data" + AD="Linux" + elif [ -f /etc/redhat-release ]; then + DIST="Redhat" + UGROUPS="nobody" + AD="Linux" + else + DIST="Unknown" + UGROUPS="nobody" + AD="Linux" + fi +else + DIST=$OS + UGROUPS="nobody" + if [ "$OS" = "FreeBSD" ]; then + AD="FreeBSD" + else + AD="Others" + fi +fi + +echo "## Operating System : ${DIST}" +echo -e "## Httpd Group : ${UGROUPS}\n\n" +echo -n "Is right follow information? [Y/N](default Y) : " +read INFO + +if [ "$INFO" = "N" ] || [ "$INFO" = "n" ]; then + echo -n "Input Ur httpd group : " + read UGROUPS +fi + +if [ "$OS" = "Linux" ]; then + cp -af ../ad_sample/$AD/global.ph.orig ../../config/global.ph + cp -af ../ad_sample/$AD/spam_list.txt.orig ../../config/spam_list.txt + cp -af ../ad_sample/$AD/allow_browser.txt.orig ../../config/allow_browser.txt + cp -af ../ad_sample/$AD/config.ph.orig ../../admin/include/config.ph + if [ -d "../../data/test" ]; then + cp -af ../sample/$AD/* ../../data/test/ + else + cp -af ../sample/$AD ../../data/test + fi +else + cp -Rp ../ad_sample/$AD/global.ph.orig ../../config/global.ph + cp -Rp ../ad_sample/$AD/spam_list.txt.orig ../../config/spam_list.txt + cp -Rp ../ad_sample/$AD/allow_browser.txt.orig ../../config/allow_browser.txt + cp -Rp ../ad_sample/$AD/config.ph.orig ../../admin/include/config.ph + if [ -d "../../data/test" ]; then + cp -Rp ../sample/$AD/* ../../data/test/ + else + cp -Rp ../sample/$AD ../../data/test + fi +fi + +if [ ! -f "../../config/default.themes" ] ; then + ln -sf ./themes/basic.themes ../../config/default.themes +fi + +# owner configuration +chgrp $UGROUPS ../../config +chgrp -R $UGROUPS ../../data/ +chgrp $UGROUPS ../../config/global.ph +chgrp $UGROUPS ../../config/spam_list.txt +chgrp $UGROUPS ../../config/allow_browser.txt +chgrp $UGROUPS ../../admin/include/config.ph + +# permission configuration +chmod 731 ../../config +chmod 775 ../../data +chmod 775 ../../data/test +chmod 775 ../../data/test/files +chmod 664 ../../config/spam_list.txt +chmod 664 ../../config/allow_browser.txt +chmod 660 ../../config/global.ph +chmod 664 ../../admin/include/config.ph +chmod 664 ../../data/test/config.ph +chmod 664 ../../data/test/html_head.ph +chmod 664 ../../data/test/html_tail.ph + +echo -e "\nDONE!!!!" +exit 0 diff --git a/Installer/script/root_p.sh b/Installer/script/root_p.sh new file mode 100755 index 00000000..fea365f5 --- /dev/null +++ b/Installer/script/root_p.sh @@ -0,0 +1,62 @@ +#!/bin/sh + +echo "===================================================" +echo " Scripted By JoungKyun Kim <admin@oops.org>" +echo " JSBoard Permission Configurations v1.0" +echo "===================================================" +echo + +OS=`uname` + +if [ "$OS" = "Linux" ]; then + if [ -f /etc/debian_version ]; then + DIST="Debian" + UGROUPS="www-data" + elif [ -f /etc/redhat-release ]; then + DIST="Redhat" + UGROUPS="nobody" + else + DIST="Unknown" + UGROUPS="nobody" + fi +else + DIST=$OS + UGROUPS="nobody" +fi + +echo "## Operating System : ${DIST}" +echo -e "## Httpd Group : ${UGROUPS}\n\n" +echo -n "Is right follow information? [Y/N](default Y) : " +read INFO + +if [ "$INFO" = "N" ] || [ "$INFO" = "n" ]; then + echo -n "Input Ur httpd group : " + read UGROUPS +fi + +# owner configuration +chgrp $UGROUPS ../../config +chgrp -R $UGROUPS ../../data/ +chgrp $UGROUPS ../../config/global.ph +chgrp $UGROUPS ../../config/spam_list.txt +chgrp $UGROUPS ../../config/allow_browser.txt +chgrp $UGROUPS ../../admin/include/config.ph + +# permission configuration +chmod 731 ../../config +chmod 775 ../../data +chmod 664 ../../config/spam_list.txt +chmod 664 ../../config/allow_browser.txt +chmod 660 ../../config/global.ph +chmod 664 ../../admin/include/config.ph +if [ -d "../../data/test" ]; then + chmod 775 ../../data/test + chmod 775 ../../data/test/files + chmod 664 ../../data/test/config.ph + chmod 664 ../../data/test/html_head.ph + chmod 664 ../../data/test/html_tail.ph +fi + +echo -e "\nDONE!!!!" + +exit 0 diff --git a/Installer/session.php b/Installer/session.php new file mode 100644 index 00000000..784de8c3 --- /dev/null +++ b/Installer/session.php @@ -0,0 +1,23 @@ +<? +session_start(); // session Ѵ. +if ($mode == "login") { + session_register("mysqlpass"); // Ѵ. + header("Location: install.php?langss=$langss"); +} elseif ($mode == "logout") { + session_destroy("mysqlpass"); // Ѵ + header("Location: auth.php?mode=first&langss=$langss"); +} elseif ($mode == "first") { + session_destroy("mysqlpass"); // Ѵ + + if ($langss == "ko") $langs[code] = "ko"; + else $langs[code] = "en"; + + $path[type] = "Install"; + include("../include/lang.ph"); + echo("<script>\n" . + " alert('$langs[first_acc]')\n" . + " document.location='../admin/index.php'\n" . + "</script> "); + exit; +} +?> diff --git a/KnownBug b/KnownBug new file mode 100644 index 00000000..a556670f --- /dev/null +++ b/KnownBug @@ -0,0 +1,24 @@ +˷ + +ۼ 2000.11.17 + +1. ۾, ñ ȭ鿡 <textarea> WRAP hard + ÿ html link 4 ̻ ũ . (3ٱ + ) + +2. ۾⿡ ' "  SQL error 쿡 php.ini + (PHP3 php3.ini) ġ ʾƼ ߻ϴ 쿡 + ߻Ҽ , Ǵ php.ini + + magic_quotes_gpc = On + + on ־ ʴ´. + +3. url ˻ Ұ link ũ ϳ hilighting + ʴ װ ִ. + +4. form mail local ݴ ִ. ڰ + ϴٸ act.php elseif ($o[at] == "sm") κ sm + ܾ ϱ ٶ. ̷ ϸ form mail + Ѵ. + diff --git a/QUICK_INSTALL b/QUICK_INSTALL new file mode 100644 index 00000000..688414c4 --- /dev/null +++ b/QUICK_INSTALL @@ -0,0 +1,641 @@ +##### JSBOARD + OOPS administartion Center ################################# +# +# Original Developer : 躴 <redhands@linux.sarang.net> +# Source Disturibute : <admin@oops.org> +# +# CVS Server : 迵 <blhole@hotmail.com> +# Homepage : Ǽ <http://www.kldp.org> +# Special Thanks : <eunjea@kldp.org> +# : 湬 <dimanche@dimanche.co.kr> +# : â <winchild@kldp.org> +# +############################################################################# +# +# Quick Installation in JSBoard 1.1 v0.9 +# +############################################################################# + + +ۼ : <admin@oops.org> +Ͻ : 2001.03.03 + + JSBoard 1.2 version ġ Ѵ. + س JSBoard ؿ ؼ +ƹ å ϰ Ǵϰ ġ õϵ +ϱ⸦ ٶ. + +======================== ======================== + +JSBoard 1.2 ʹ Ȯڰ .php3 .php ȴ. + +0.7 DB ü SQL query +ǾǷ ٶ. + +!!!!!!!!!!!!! +Linux, FreeBSD ̿ OS ġÿ +jsboard/README.OTHERS.OS о ġ +ؾ Ѵ. + +========================================================== + +**** **** + + 1. ȯ + 1-1. exec() Լ test + 1-2. MySQL Լ test + 1-3. web server + 2. JSBoard ġ + 2-1. MySQL setting + 2-2. ϱ + 3. JSBoard  + 4. JSBoard + 5. UPGRADE + 5-1. 0.8 ̻ version upgrade + 5-2. 0.7 version upgrade + 5-2-1. source ̿ϴ + 6. ֽű ϱ + 6-1. ֽű + 6-2. ֽű + 7. Bug report + +*************** + + +1. ȯ + + Linux(Redhat, Debian) Ǵ FreeBSD ġǾ ִ Server (ٸ NOS +  ߻ ˼ . DIY ٶ) + + apache 1.3.x ̻ + + MySQL 3.22.30 ̻ (RPM ġ - ftp://mirror.oops.org/ + (3.23.x alpha version ȣȯ ȹ ) + + PHP-4.0.0 ̻(RPM ġ - ftp://mirror.oops.org) + JSBoard 1.1 PHP4 Ͽ ۵ ϸ, compile ÿ Session + ȵȴ. + + * üũ * + + php exec() Լ MySQL Լ Ǵ ȮѴ. + + 1-1. exec() Լ test + + ϴ ϳ . test.php Īϰڴ. + linux󿡼 Ȯ ۵ Ѵ. ٸ Platform + ˾Ƽ ۵ ϴ Ȯ ٶ. + + <?php + echo("## exec() Լ ׽Ʈ ##<p><br>\n\n"); + exec("echo \"exec()Լ ۵ մϴ\"", $test); + + echo $test[0]; + ?> + + 󿡼 ȣ + + ------------------------------------------------- + ## exec() Լ ׽Ʈ ## + + exec()Լ ۵ մϴ + ------------------------------------------------- + + Ǿ Ѵ. + + 1-2. MySQL Լ test + + info.php Ʒ Ѵ. + + <?php + phpinfo(); + ?> + + ׸ 󿡼 ȣ MySQL ִ ȮѴ. + Ұ MySQL ִ php ġÿ mysql θ + ذͰ MySQL ΰ Ʋ 쿡 ߻Ҽ + ִ. ǥ 찡 PHP rpm ġ ϰ MySQL source + compile ̴. PHP rpm ġ Ұ쿡 κ + /usr/lib/mysql ġϴ ̱ ̴. + + 縦 ϴµ ߻Ѵٸ ϴ Ʒ + Ͽ mysql socket file ġ ˾Ƴ. + + [oops@oops include]$ netstat -an | grep mysql + unix 0 [ ACC ] STREAM LISTENING 589 /var/lib/mysql/mysql.sock + [oops@oops include]$ + + θ ̿Ͽ . + + <? + $mcheck = mysql_connect(":/var/lib/mysql/mysql.sock", "root", "$passwd"); + + if ($mcheck) echo "MySQL ӿ ߽ϴ."; + else echo "MySQL ӿ и ߽ϴ."; + ?> + + code  󿡼 mysql Ͽ ޼ + Ȯ Ѵ. + + 1-3. web server + + jsboard index file index.php ̴. php3 Ȯڸ ϱ⸦ Ѵٸ + DirectoryIndex ڿ index.php3 ߰ ֵ Ѵ. ph file + ؼ httpd.conf + + AddType application/x-httpd-php .php .php3 + + .ph ߰ ֵ Ѵ. + +2. JSBoard ġ + + JSBoard 󿡼 ϵ Ǿ ֱ ۵ϴ + nobody ־߸ Ѵٴ ؾ Ѵ. + permission Ǹ ؾ Ѵٴ ̴! + + 2-1 MySQL setting + + MySQL ó ϴ Ѵ. ̹ Ǿ + ִ ڽ ̹ Ǿ ִ κ پ ѵ Ѵ. + + ڵ 쿡 ϸ, ڿ MySQL + DBü ޶ û ϸ ȴ. DB user name, + DB name, DB password ˷ ޶ ؾ Ѵ. + + + . ϴ MySQL ġ ϵ Ѵ. MySQL RPM Űε Ҽ ִ. + + ftp://mirror.opos.org/pub/Linux/Redhat/RPMS + ftp://linux.sarang.net/pub/MySQL + + linux ϴ php rpm ϴ 쿡 php rpm + packagingҶ mysql ΰ ߴ³Ŀ ޶ Ƿ + ɼ A+P+M Ű¡ Ѱ . + + ҽ 쿡 Ѵ. + + . ġ root н带 Ѵ. + + [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.32-log + + Type 'help' for help. + mysql> use mysql; + 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) + + root password Ŀ JSBoard DB ü + ϵ Ѵ. Ϸ + + USER̸ "", + DB̸ "", + н带 "н" + + Ѵ. . ߿ + ̰͵ ѱ۷ . ⸦ Ѵٸ ѱ۷ + ص . ⼭ ϱ ؼ ѱ۷ ϴ + ̴. + + mysql> CREATE database ; + Query OK, 0 rows affected (0.00 sec) + + mysql> insert into user (Host,User,Password) + > values('localhost','',password('н')); + Query OK, 0 rows affected (0.00 sec) + + mysql> insert into db values + > ('localhost','','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); + Query OK, 0 rows affected (0.00 sec) + + ߻Ѵٸ db table ÷ Ʒ ٶ. + + mysql> desc db; + +-----------------+---------------+------+-----+---------+-------+ + | Field | Type | Null | Key | Default | Extra | + +-----------------+---------------+------+-----+---------+-------+ + | Host | char(60) | | PRI | | | + | Db | char(32) | | PRI | | | + | User | char(16) | | PRI | | | + | Select_priv | enum('N','Y') | | | N | | + | Insert_priv | enum('N','Y') | | | N | | + | Update_priv | enum('N','Y') | | | N | | + | Delete_priv | enum('N','Y') | | | N | | + | Create_priv | enum('N','Y') | | | N | | + | Drop_priv | enum('N','Y') | | | N | | + | Grant_priv | enum('N','Y') | | | N | | + | References_priv | enum('N','Y') | | | N | | + | Index_priv | enum('N','Y') | | | N | | + | Alter_priv | enum('N','Y') | | | N | | + +-----------------+---------------+------+-----+---------+-------+ + 13 rows in set (0.00 sec) + + Įrow 13 ƴ϶ Host, Db, User Į + mysql query "Y" Ѵ. δ MySQL + 3.23.x alpha version 3.22.25 Ʋ ̴. + + mysql> quit + Bye + + ̹ Ǿ ִ ܰ ׳ dz ٸ ȴ. + + 2-2 ϱ + + ٿε ġ ϴ 丮 + Ǯ Ѵ. + + $ tar xvfpz jsboard-version.tar.gz + + Ǯ jsboard-version ̶ 丮 ȴ. + + jsboard/Installer/SQL ̵ Ͽ Ͽ + jsboard table ü 鵵 Ѵ. MySQL + ˾ƾ Ѵ. + + $ cd jsboard-version/Installer/SQL + $ mysql -u -p < mysql_ostype.sql + Enter password: н + + Linux ڵ mysql_linux.sql ̿Ͽ FreeBSD + mysql_freebsd.sql ̿ϵ Ѵ. + + table ü ϵ ġ Ű ϵ + ۹̼ ϵ Ѵ. jsboard/Installer/script root + ġ Ҽ ִٸ + + $ ./root.sh + =================================================== + Scripted By JoungKyun Kim <admin@oops.org> + JSBoard Permission Configurations v1.0 + =================================================== + + ## Operating System : Redhat + ## Httpd Group : nobody + + Is right follow information? [Y/N](default Y) : y <--Enter + + DONE!!!! + $ + + root.sh ϸ ȴ. HTTPD ׷ + nobody ƴ϶ (debian www-data Ǿ ִ) n Ǵ N + ְ ׷ ̸ ٽ ϸ ȴ. Ʒ ð̴. + + Input Ur httpd group : + + + Ȥ ڶ + + $ ./account.sh + + ϵ Ѵ. account user ġ Ϸ + ִ. db password ִ ȣؾ + Ѵ. ̸ ؼ root ڿ ϴ Ź ؾ + ִ. ٷ + + jsbaord/config/global.ph, + jsboard/config/spma_list.ph, + jsboard/admin/include/config.ph + + group nobody ޶ ؾ Ѵ(debian + www-data ؾ Ұ̰ ٸ OS 𸣰ڴ). + + $ chgrp nobody jsboard/config/global.ph (root ؾ ϴ ) + $ chgrp nobody jsboard/config/spam_list.txt (root ؾ ϴ ) + $ chgrp nobody jsboard/admin/include/config.ph (root ؾ ϴ ) + + ޶ ؾ Ѵ. ̸ ϸ Ʒ + ȴ. ̰ account.sh Ŀ ϵ̴.(Debian + 쿡 nobody ƴ϶ www-data Ǿ Ѵ) + + -rx-rx---- accountname nobody config/global.ph + -rx-rx---- accountname nobody config/spam_list.txt + -rx-rx---- accountname nobody admin/include/config.ph + + root ̸ ʰų Ǵ Ҽ root + + chmod 606 config/global.ph + chmod 606 config/spam_list.txt + chmod 606 admin/include/config.ph + + Ͽ  ϳ Ȼ ʴ. + + ׸ Ұ account user ġÿ + ɼ home directory 711 ؾѴ. + + script file ϰ mv, chown, chmod shell ɾ + ̷   ǰ + ϵ ġؾ ϴ ľҼ ̴. + + ϸ ϵ ġ ڸ ȴ. + + jsboard/config/ ̵ Ͽ global.ph DB Ѵ. + + /*************************************************************************** + Ÿ̽ + ***************************************************************************/ + $db[server] = ":/var/lib/mysql/mysql.sock"; // ּ + $db[user] = ""; // + $db[pass] = ""; // н + $db[name] = ""; // ̸ + + κ ָ ȴ. DB ܺο 쿡 + ":/var/lib/mysql/mysql.sock" κ DB ip address ü ϸ + ɰ̴ ( test ô ^^;;). ׷ mysql source compile + 鵵 mysql.sock file θ ָ ȴ. + + socket file δ "netstat -an | grep mysql" ˼ ִ. + +3. JSBoard  + + JSBoard Ѵ. JSBoard ʹ ڵμ + admin/License о 쿡 ϴ. + + ġ Ϸ Ǿٸ Ѵ. 켱 ü + Ѵ. + + http://domain.com/jsboard/admin + + ϵ Ѵ. ׷ login â ̴. JSBoard ⺻ н + ʱⰪδ "0000" Ǿ н ϵ Ѵ. + + OOPS Administration Center v1.7 ޶ ϴ JSBoard + ϴ DB JSboard ʴ table ޼ + Ǵ ־ 1.7 JSBoard ʴ table + ư "Not JSBoard table" ̶ ޽ ϰ + Ǿ ִ. + +4. JSBoard + + CGI upload Ͽ ȹ ߻ ϰ ִ. + ܼ CGI ڵ常 Ͽ Ѵٴ + apache file õ ε file ؼ ʵ + ϴ Ҵ. kldp server + Ư ȣü ϴ 쿡 JSBoard + Ҽ ֱ Ѵ. + + Ҽ ִ. + + <DirectoryMatch "^/.*/jsboard/data"> + AddType application/x-httpd-php3-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins + AddType application/x-httpd-php-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins + + ErrorDocument 403 http://jsboard.kldp.org/ErrorMSG/error_msg.php?l=ko&c=403 + + <Files ~ ".*\.ph$"> + Order allow,deny + Deny from all + </Files> + </DirectoryMatch> + + ǹ̴ jsboard/data 丮 Ʒ ִ  data + ̸ 丮 .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs + .ins Ȯڸ source ϶ ǹ̸ Ұ ⿡ + н  ִ source ÷ ȵȴٴ ؾ Ѵ. + δ Խ 丮 ̸  ϴĿ Ѵ. + + data ̸ 丮 Ʒ .ph 쿡 + http://jsboard.kldp.org/ErrorMSG/error_msg.php?l=ko&c=403 ϶ + ǹ̴. + + root Ѹ ִ + ̶ ص ڿ ޶ ϴ° . + ؼ ϳ ״ Ƹ ̴. :-) + + ؿ  DZ⸦ ٶ鼭.. ׷.. + + +5. UPGRADE + + 5-1. 0.8 ̻ version upgrade + + jsboard-1.2 ū ȭ Ȯ ȭ̴. 1.1.x + .php3 Ȯڸ jsbaord-1.2 ʹ .php ̸ + Ǿ. ׷ ҽ ϸ ȵȴ. + + ϴ 丮 jsabord-1.2 version Ǯ Ѵ. + Insatller/script/ ̵ Ͽ root.sh ϵ Ѵ. + ׸ data/ ִ 丮 1.2/data copy ϵ + ϰ, admin/include/config.ph 1.2/admin/include īǸ Ѵ. + + īǸ Ŀ ٽ Installer/script ̵ Ŀ root_p.sh + ϵ Ѵ. ( root.sh root_p.sh ƴ account.sh + account_p.sh ̿ؾ Ѵ.) + + config/global.ph 缳 ش. κ DB + κи ϰ 缳 ϵ Ѵ. ׸ + Խ ڷ Ͽ ѹ 缳 ֵ Ѵ. + + 5-2. 0.7 upgrade + + μ 0.6 0.7 upgrade ȴ. + ϴ user ּ 0.6 upgrade Ŀ + upgrade Ҽ ִ. + + ϴ 0.7 upgrade ϱ ؼ â԰ + ÷ ֽ ҽ ̿Ͽ ۾ ־ Ѵ. + â ҽ װ ߰ Ǿ Ƿ + ÷ ֽ ũƮ jsboard ° ũƮ + ̿ϴ ϵ Ѵ. ũƮ http://jsboard.kldp.org + ڷǿ Ҽ ִ. + + Ұ upgrade ġ Խ б + ٴ ޼ ü ִ. ̴ Խ ʱȭ Ǿ + ̴ Խ ڷ  ٽ ָ ȴ. + + * ũƮ Ҷ timeout error ߻ 쵵 ִ. + * ̴ php.ini ð 30ʷ Ǿ ֱ ̴ + * ð ÷ ְ apache ٽ ѹ + * ٶ. ٰ ̸  ߺ ش + * ϱ ٶ. + + 5-2-1. ũƮ ̿ upgrade + + ڵ ۼ : 躴 + ڵ : + ۼ : + + http://jsboard.kldp.org/bbs/read.php?table=bbs_download&no=30&page=1 + convert.phps ٿ convert.php3 Ǵ + convert.php ϵ Ѵ. 󿡼 Ҽ + ִ 丮 ̵ Ѵ. convert.php ͷ 7° + $new_fiile = "../tmp/$table.sql"; κп ../tmp κ + nobody ִ Ȯ Ѵ. /tmp/$table.sql + ϴ ҵ ϴ. ׸ $new_file ٷ ܿ + user, pass, name ֵ Ѵ. + +  Ѵٸ ϴ web root /home/httpd/html + ̶ Ѵ. ׸ /home/httpd/html/convert 丮 + Ѵ. convert nobody ⸦ Ҽ ְ ϱ Ͽ + + chmod 777 convert + + Ѵ. ٿε ҽ ش ҽ convert + convert.php ̸ . convert.php + κ ϵ Ѵ. + + $db = array('server' => 'localhost', + 'user' => 'db user name ִ´', + 'pass' => 'db password ִ´', + 'name' => 'db ̸ ִ´' ); + + $new_file = "./$table.sql"; // 丮 Ѵ. + + ָ ȴ. + + ڽ MySQL 3.22.21 ̶ ҽ ϴܿ + Ʒ ش. + + ALTER TABLE $table MODIFY idx int(6) DEFAULT '0' NOT NULL; + ALTER TABLE $table MODIFY no int(6) DEFAULT '0' NOT NULL AUTO_INCREMENT;\n"); + + κ Ʒ ϴ ̴. + + ALTER TABLE $table CHANGE idx idx int(6) DEFAULT '0' NOT NULL; + ALTER TABLE $table CHANGE no no int(6) DEFAULT '0' NOT NULL AUTO_INCREMENT; + + 󿡼 ȯ Խ ̸ aaa Ѵٸ θ + ȣѴ. + + http://domain.com/convert/convert.php?table=aaa + + ũƮ Ϸ $new_file н aaa.sql ̶ + Ǿ ̴. + + db ϱ ¿ Ͽ DB + ϵ Ѵ. ̿Ѵ. + + mysqldump -u USER -p DBname > backup.sql + + ϸ backup.sql ̶ ̸ DB ȴ. + ߿ ϰ + + mysql -u USER -p DBname < backup.sql + + Ҽ ִ. ϴ $table.sql ϵ + ̿Ͽ DB ȯ ϵ Ѵ. Ʒ . (Ʒ aaa + Խ ȯϴ ̴. Խ ݺ + ֵ Ѵ) + + mysql -u USER -p DBname < aaa.sql + + ƹ ޼ ʰ prompt ȯ Ѱ̴. + DB۾ Ϸᰡ Ǿ Խ ۾ Ѵ. + + Խǰ ġ ʰ jsboard Ǯ + Խ ϴ include/Խ̸ jsboard-new/data + copy Ѵ. ׸ jsboard-new/Installer/script root.sh + account.sh ̿Ͽ ϵ ġ Ű ۹̼ + jsboard-new/config/global.ph DB ־ ش. + http://domain.com/jsboard-new/admin Ͽ ȣ + "0000" ̿Ͽ α ü Խ ָ + ȴ. + + +6. ֽű ϱ + + 6-1. ֽű + + JSBoard ֽű ϴ ̴. include/prelist.ph + Ǹ Ͽ Ͽ Ҽ ִ. + + 6-2. ֽű + + ϴ jsboard/include/prelist.ph $prlist[path] $prlist[wpath] + ؾ Ѵ. $prlist[path] JSBoard ġ Ǿ ִ + θ ָ, $prlist[wpath] JSBoard µǴ θ + Ѵ. Ұ / ʵ Ѵ. + + ) + $prlist[path] = "/home/httpd/html/PHP/jsboard"; + $prlist[wpath] = "http://domain.com/PHP/jsboard"; + + ϴ ڸ 켱 ֽű ܿ + ڵ带 Ѵ. (߿ ų php + ɼ ִ ̾ Ѵ. Ȯڰ .php3 php νҼ + 쿡 .php3 file Ҽ ִ. + ̶ Ʈ κ ̸ ȴ.) + + <? + include "/prelist.ph"; + ?> + + Ʈ ϴ κп Լ ֵ Ѵ. + + <? prelist("a","b","c","d","e","f","g","h","i"); ?> + + prelist() Լ 鿡 ؼ Ʒ ϶. + + a ̺ ̸(Խ ̸) + b include file ( 1 - 0 - Ծ ) + κ ؾ Ѵ. ϳ ԽǸ ҷ + 1 Ѵ. Խ + ҷ 쿡 ֹ° Լ ʹ 0 Ǿ Ѵ. + c Ʈ + d ±ڼ + e ̸ ( 1 - 0 - ) + f ( 1 - 0 - ) + g ̸ ( 1 - 0 - ) + h ȸ ( 1 - 0 - ) + i ũ ɼ (: target onClick ) + + + Խ ϰ ʹٸ ڵ + Ѽ ָ ȴ. + + ) + + test Խ 3 ̸<br> + <? prelist("test",1,3,30,1,1,1,1,""); ?> + + <p> + test1 Խ 5 ̸<br> + <? prelist("test1",0,5,30,1,1,1,1,""); ?> + + ⼭ Ұ ι° Խ ѷ ٶ ι° ʵ 0 + ȴٴ Ѵ. ù° Խ ѷ ٶ 1 Ǿ ϰ, + ι° Խǿ 0 Ѵ. + + ϴ, ϸ μ ƹ پ + ѷְ ȴ. ϴ ϰ ʹٸ jsboard/include/prelist.ph + ߾ӿ ִ print_prlist() Լ echo ϸ ȴ. + + table tag 쿡 ؾ ִ. + ° ̴. + + > + + <table> + <? prelist(......) ?> + </table> + + ؾ ϸ prelist.ph print_prlist() Լ Ʒ + Ǿ Ѵ. + + function print_prlist($p) { + echo "<tr> + <td>$p[link]</td> + <td>$p[name]</td> + <td>$p[date]</td> + <td>$p[count]</td> + </tr>\n"; + } + + ̺ ϳ ϳ tr DZ for Ͽ + print_prlist() Լ ݺ Ǿ DZ Ǿ + ϴ ̴. ˾Ƽ ϱ ٶ. + + +7. Bug report + + ׸ ߰ 쿡 http://jsboard.kldp.org/bbs/list.php?table=bbs_upgrade + ָ ϰڴ + + diff --git a/README b/README index 28f61e9f..17e684e5 100644 --- a/README +++ b/README @@ -1,7 +1,54 @@ -$Id: README,v 1.3 2009-11-16 21:52:45 oops Exp $ +JSBoard 1.0 README +------------------ -ENGLISH message -goto doc/en +Ұ -KOREAN message -goto doc/ko +JSBoard 躴<redhands@linux.sarang.net> Խ + Ͽ ڵ ڽŸ ߰ Ƽ ο + ߰ 󿡼 Ҽ ִ Խ̴. + +JSBoard ϱ ؼ linux box apache, mysql, php4 +䱸Ǹ ý ͵ ư +Ҽ ִ. + +Platform + + ڽ ġǾ ִ . ̿ OS + test Ǿ . ڵ Ҽִ +ȯ Linuxۿ ٸ OS ù + Ҽ ִ ȯ ƴϴ. ̴ ٸ ü Ŀ +̴ Ұ Ǵ Ǿ. + + Apache PHP4, MySQL ġǾ ִ +(NT ҵ ϴ) ణ  +ϸ Ǿ. κ ڵ ¿ +޷ ִٰ ȴ. ( ٸ OS ÿ + ּ ϰ ִ) + + + +JSBoard v1.0 PHP3 Ͽ Installer admin center +Ҽ . ̴ Installer admin center cookie PHP4 + ϴ session ٲ ̴. + +ġ + +Root ִ ڵ鿡Դ Installer ϰ ִ. + Installer ġ ڵ Ͽ +Quick_INSTALL ϰ ִ. ڽ ȯ濡 ˸ Install + ٶ. + + ǹ + +ڴ ġ ־ ʿ κ ϱ ϳ ̴ ǹ +ʴ´. ׷ ڸ ٶ. :-) + +̼ + +JSBoard code(OOPS Administration ) GPL . ڵ带 +Ͽ ȭ ÿ ȭ Ǵ ǰ ڵ ؾ Ѵ. +OOPS Administration code 쿡 Ҽ ְ +ص ȭ Ѵ. ( Ұ JSBoard  ִ +OOPS Administration code߿ Ϻ JSBoard code ) + +2000 6 16 <admin@oops.org> diff --git a/README.OTHERS.OS b/README.OTHERS.OS new file mode 100644 index 00000000..ca7e6e52 --- /dev/null +++ b/README.OTHERS.OS @@ -0,0 +1,11 @@ +$ Redhat, Debian, FreeBSD ̿ OS ġ + +Do It Yourself!!!!! ^.^ + +üũ + +1. include/exec.ph ش ɵ ɼ ش OS + Ǵ +2. Installer/ad_sample/Others ִ README file о + . +3. Ƹ Installer ۵ . diff --git a/SQL/mysql/board.sql b/SQL/mysql/board.sql deleted file mode 100644 index 883abf74..00000000 --- a/SQL/mysql/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) TYPE=MyISAM; diff --git a/SQL/mysql/comment.sql b/SQL/mysql/comment.sql deleted file mode 100644 index c0bcad85..00000000 --- a/SQL/mysql/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) TYPE=MyISAM; - diff --git a/SQL/mysql/userdb.sql b/SQL/mysql/userdb.sql deleted file mode 100644 index 14e2edbf..00000000 --- a/SQL/mysql/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) TYPE=MyISAM; - diff --git a/SQL/mysql3/board.sql b/SQL/mysql3/board.sql deleted file mode 100644 index bc4b057c..00000000 --- a/SQL/mysql3/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ); diff --git a/SQL/mysql3/comment.sql b/SQL/mysql3/comment.sql deleted file mode 100644 index 5a652e38..00000000 --- a/SQL/mysql3/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ); - diff --git a/SQL/mysql3/userdb.sql b/SQL/mysql3/userdb.sql deleted file mode 100644 index e23889d4..00000000 --- a/SQL/mysql3/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ); - diff --git a/SQL/mysql4/board.sql b/SQL/mysql4/board.sql deleted file mode 100644 index 6bc2a35f..00000000 --- a/SQL/mysql4/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) diff --git a/SQL/mysql4/comment.sql b/SQL/mysql4/comment.sql deleted file mode 100644 index e84024a8..00000000 --- a/SQL/mysql4/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) - diff --git a/SQL/mysql4/userdb.sql b/SQL/mysql4/userdb.sql deleted file mode 100644 index 65a6de4d..00000000 --- a/SQL/mysql4/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) - diff --git a/SQL/mysql41/board.sql b/SQL/mysql41/board.sql deleted file mode 100644 index bf492fd9..00000000 --- a/SQL/mysql41/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) CHARSET=euckr diff --git a/SQL/mysql41/comment.sql b/SQL/mysql41/comment.sql deleted file mode 100644 index 84d8bd3e..00000000 --- a/SQL/mysql41/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) CHARSET=euckr - diff --git a/SQL/mysql41/userdb.sql b/SQL/mysql41/userdb.sql deleted file mode 100644 index c8a3e4cf..00000000 --- a/SQL/mysql41/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) CHARSET=euckr - diff --git a/SQL/pgsql/board.sql b/SQL/pgsql/board.sql deleted file mode 100644 index 16d77b29..00000000 --- a/SQL/pgsql/board.sql +++ /dev/null @@ -1,38 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE @table@ ( - no serial NOT NULL, - num int DEFAULT '0' NOT NULL, - idx int DEFAULT '0' NOT NULL, - date int DEFAULT '0' NOT NULL, - host text, - name text, - rname text, - passwd varchar(56), - email text, - url text, - title text, - text text, - refer int DEFAULT '0' NOT NULL, - reyn int DEFAULT '0' NOT NULL, - reno int DEFAULT '0' NOT NULL, - rede int DEFAULT '0' NOT NULL, - reto int DEFAULT '0' NOT NULL, - html int DEFAULT '1' NOT NULL, - comm int DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int, - PRIMARY KEY (no) - ) without oids; -CREATE INDEX @table@_num_i on @table@ (num); -CREATE INDEX @table@_idx_i on @table@ (idx); -CREATE INDEX @table@_reno_i on @table@ (reno); -CREATE INDEX @table@_date_i on @table@ (date); -CREATE INDEX @table@_reto_i on @table@ (reto); -CREATE INDEX @table@_comm_i on @table@ (comm); diff --git a/SQL/pgsql/comment.sql b/SQL/pgsql/comment.sql deleted file mode 100644 index 91dca8ce..00000000 --- a/SQL/pgsql/comment.sql +++ /dev/null @@ -1,19 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE @table@_comm ( - no serial NOT NULL, - reno int NOT NULL default '0', - rname text, - name text, - passwd varchar(56) default NULL, - text text, - host text, - date int NOT NULL default '0', - PRIMARY KEY (no) - ) without oids; -CREATE INDEX @table@_comm_reno_i on @table@_comm (reno); diff --git a/SQL/pgsql/userdb.sql b/SQL/pgsql/userdb.sql deleted file mode 100644 index e6a612a1..00000000 --- a/SQL/pgsql/userdb.sql +++ /dev/null @@ -1,21 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE userdb ( - no serial NOT NULL, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email text NOT NULL, - url text NOT NULL, - passwd varchar(100) NOT NULL default '', - position int NOT NULL default '0', - PRIMARY KEY (no) - ) without oids; -CREATE UNIQUE INDEX userdb_nid_i on userdb (nid); -CREATE INDEX userdb_name_i on userdb (name); -CREATE INDEX userdb_position_i on userdb (position); - diff --git a/SQL/sqlite/board.sql b/SQL/sqlite/board.sql deleted file mode 100644 index 356a89c0..00000000 --- a/SQL/sqlite/board.sql +++ /dev/null @@ -1,30 +0,0 @@ -CREATE TABLE @table@ ( - no integer NOT NULL PRIMARY KEY, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4) - ); -CREATE INDEX @table@_num_i on @table@(num); -CREATE INDEX @table@_idx_i on @table@(idx); -CREATE INDEX @table@_date_i on @table@(date); -CREATE INDEX @table@_reno_i on @table@(reno); -CREATE INDEX @table@_reto_i on @table@(reto); -CREATE INDEX @table@_comm_i on @table@(comm); diff --git a/SQL/sqlite/comment.sql b/SQL/sqlite/comment.sql deleted file mode 100644 index 562decef..00000000 --- a/SQL/sqlite/comment.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE TABLE @table@_comm ( - no integer NOT NULL PRIMARY KEY, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0' - ); -CREATE INDEX @table@_comm_reno_i on @table@_comm(reno); diff --git a/SQL/sqlite/userdb.sql b/SQL/sqlite/userdb.sql deleted file mode 100644 index 98d2c4cf..00000000 --- a/SQL/sqlite/userdb.sql +++ /dev/null @@ -1,13 +0,0 @@ -CREATE TABLE userdb ( - no integer NOT NULL PRIMARY KEY, - nid varchar(30) UNIQUE NOT NULL, - name varchar(30) NOT NULL, - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0' - ); -CREATE INDEX userdb_nid_i on userdb(nid); -CREATE INDEX userdb_name_i on userdb(name); -CREATE INDEX userdb_pos_i on userdb(position); - diff --git a/act.php b/act.php index 4ae20259..c6672a2c 100644 --- a/act.php +++ b/act.php @@ -1,438 +1,237 @@ -<?php -# $Id: act.php,v 1.25 2014-01-01 09:30:38 oops Exp $ -include_once "include/variable.php"; -include_once "include/print.php"; -# GET/POST -parse_query_str(); - -if ($o['at'] != "dn" && $o['at'] != "sm" && $o['at'] != "ma") { - include "include/header.php"; - - $c = sql_connect ($db['rhost'], $db['user'], $db['pass'], $db['name'], $db['rmode']); - - if($board['mode'] && session_is_registered("$jsboard")) { - # α α ȭ, н - if($board['mode'] != 1 && !session_is_registered("$jsboard")) print_error($_('login_err')); - else compare_pass($_SESSION[$jsboard]); - $atc['passwd'] = $_SESSION[$jsboard]['pass']; - } - - $atc['goaway'] = $_POST['goaway']; - $atc['table'] = $table; - $atc['agent'] = $agent; - - # admin mode admin mode üũ - if($board['mode'] == 1 || $board['mode'] == 3) - if(!$board['adm'] && $board['super'] != 1) print_error($_('login_err')); - - # captcha authenication - function check_captcha ($atc) { - global $board, $_, $o; - - if ( $board['super'] || $board['adm'] ) - return; - - $pattern = ( $o['at'] == 'reply' ) ? '/^[25-7]/' : '/^[2457]/'; - if ( preg_match ($pattern, $board['mode']) ) - return; - - if ( ! $board['captcha'] || ! file_exists ('captcha/' . $board['captcha']) ) - return; +<? +if ($o[at] != "dn" && $o[at] != "sm") { + include("include/header.ph"); + include("./admin/include/config.ph"); - require_once ('captcha/captcha.php'); - $capt = new Captcha ($board['captcha']); - if ( $capt->disable === true ) - return; + $agent = get_agent(); - 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); - } + sql_connect($db[server], $db[user], $db[pass]); + sql_select_db($db[name]); # Խù ۼ Լ 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')); + global $board, $upload, $cupload, $rmail, $version, $langs, $exec; + global $userfile, $userfile_name, $userfile_size, $max_file_size, $agent; - $atc['date'] = time(); # ð - $atc['host'] = get_hostname(0); # ۾ ּ + $atc[date] = time(); # ð + $atc[host] = get_hostname(1); # ۾ ּ - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; + if($atc[passwd]) { # н ȣȭ + $atc[repasswd] = $atc[passwd]; + $atc[passwd] = crypt($atc[passwd]); + } - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); + /* Ͻÿ html header tag ϴ Ѵ. */ + if($atc[html]) $atc[text] = delete_tag($atc[text]); $atc = article_check($table, $atc); - if(preg_match("/^0|4|6$/",$board['mode'])) $atc['passwd'] = crypt($atc['passwd']); # ü ڰ Ͽÿ upload Ҽ - if ($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { - $bfilename = date("YmdHis",$atc['date']); - $upfile = file_upload("userfile",$bfilename); - - if(!trim($upfile['name'])) { - $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; - } + if ($upload[yesno] =='yes' && $cupload[yesno] == 'yes' && $agent[br] != "LYNX") { + $bfilename = date("YmdHis",$atc[date]); + file_upload($bfilename); } else { # winchild 99/11/26 fileupload = "no" 쿡 ʱȭ ־ Ѵ. $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; + $userfile_size = 0; + $userfile_name = ""; } - sql_escape ($c, $table); - sql_escape ($c, $atc); - - $result = sql_query("SELECT MAX(num) AS num, MAX(idx) AS idx FROM $table", $c); - $_rr = sql_fetch_array ($result); - - $atc['mxnum'] = $_rr['num'] + 1; # ְ ȣ - $atc['mxidx'] = $_rr['idx'] + 1; # ְ ε ȣ - + $result = sql_query("SELECT MAX(num) AS num, MAX(idx) AS idx, MAX(no) AS no FROM $table"); + $atc[no] = sql_result($result, 0, "no") + 1; # ְ ȣ + $atc[mxnum] = sql_result($result, 0, "num") + 1; # ְ ȣ + $atc[mxidx] = sql_result($result, 0, "idx") + 1; # ְ ε ȣ sql_free_result($result); - sql_query("INSERT INTO $table (num,idx,date,host,name,rname,passwd,email,url, - 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); + sql_query(" + INSERT INTO $table VALUES ('', $atc[mxnum], $atc[mxidx], + $atc[date], '$atc[host]', '$atc[name]', '$atc[passwd]', + '$atc[email]', '$atc[url]', '$atc[title]', '$atc[text]', + 0, 0, 0, 0, 0, $atc[html], $board[moder],'$userfile_name','$bfilename','$userfile_size')"); # 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; + if ($rmail[uses] == 'yes') { + if ($rmail[admin] == "yes" || $rmail[user] == "yes") { + $rmail[name] = "$atc[rname]"; + $rmail[text] = "$atc[text]"; + $rmail[title] = "$atc[rtitle]"; + $rmail[url] = "$atc[url]"; + $rmail[email] = "$atc[email]"; + $rmail[version] = "$version"; + $rmail[table] = "$table"; + $rmail[no] = $atc[no]; + $rmail[reply_orig_email] = "$rmail[origmail]"; + + if(check_sendmail()) sendmail($rmail); } } - 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); # ۾ ּ + global $board, $upload, $cupload, $rmail, $version, $langs, $exec; + global $userfile, $userfile_name, $userfile_size, $max_file_size, $agent; - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; + $atc[date] = time(); # ð + $atc[host] = get_hostname(1); # ۾ ּ - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); + if($atc[passwd]) { # н ȣȭ + $atc[repasswd] = $atc[passwd]; + $atc[passwd] = crypt($atc[passwd]); + } - # ۿ : и Ѵ. - $atc['text'] = preg_replace("/(^[:]+ [^\r\n]+)\r?\n([^:\r\n]+\r?\n)/mi","\\1 \\2",$atc['text']); + /* Ͻÿ html header tag ϴ Ѵ. */ + if($atc[html]) $atc[text] = delete_tag($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'] = ""; - } + if ($upload[yesno] =='yes' && $cupload[yesno] == 'yes' && $agent[br] != "LYNX") { + $bfilename = date("YmdHis",$atc[date]); + file_upload($bfilename); } else { # winchild 99/11/26 fileupload = "no" 쿡 ʱȭ ־ Ѵ. $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; + $userfile_size = 0; + $userfile_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']; # θ ε ȣ + $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); + if($reply[reto]) $atc[reto] = $reply[reto]; # ֻ θ ȣ + else $atc[reto] = $reply[no]; # θ ȣ # θ ̻ ε ȣ ۵ ε 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); + sql_query("UPDATE $table SET idx = idx + 1 WHERE (idx + 0) >= $atc[idx]"); + sql_query("UPDATE $table SET reyn = 1 WHERE no = $atc[reno]"); + sql_query(" + INSERT INTO $table VALUES ('', 0, $atc[idx], $atc[date], + '$atc[host]', '$atc[name]', '$atc[passwd]', '$atc[email]', + '$atc[url]', '$atc[title]', '$atc[text]', 0, 0, $atc[reno], + $atc[rede], $atc[reto], $atc[html], $board[moder],'$userfile_name','$bfilename','$userfile_size')"); # 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; + if ($rmail[uses] == 'yes') { + if ($rmail[admin] == "yes" || $rmail[user] == "yes") { + $result = sql_query("SELECT MAX(no) no FROM $table"); + $rmail[no] = sql_result($result, 0, "no"); # ְ ȣ + $rmail[name] = "$atc[rname]"; + $rmail[text] = "$atc[text]"; + $rmail[title] = "$atc[rtitle]"; + $rmail[url] = "$atc[url]"; + $rmail[email] = "$atc[email]"; + $rmail[version] = "$version"; + $rmail[table] = "$table"; + $rmail[reply_orig_email] = "$rmail[origmail]"; + + if(check_sendmail()) sendmail($rmail); } } set_cookie($atc); - $gopage['no'] = !$page ? get_current_page($table, $atc['idx']) : $page; - return $gopage; + $page = get_current_page($table, $atc[idx]); + return $page; } # Խù Լ 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); + global $enable, $cenable, $board; + global $sadmin, $admin, $langs; + + $spasswd = crypt($passwd,$sadmin[passwd]); + $upasswd = crypt($passwd,$admin[passwd]); + + if ($enable[edit] && $cenable[edit]) { + if(!check_passwd($table, $atc[no], $passwd)) + print_error("$langs[act_pw]"); + } else if (!$enable[edit]) { + if ($sadmin[passwd] != $spasswd) + print_error("$langs[act_pww]"); + } else { + if ($sadmin[passwd] != $spasswd && $admin[passwd] != $upasswd) + print_error("$langs[act_pwa]"); } - $atc['date'] = time(); # ð - $atc['host'] = get_hostname(0); # ۾ ּ + $atc[date] = time(); # ð + $atc[host] = get_hostname(1); # ۾ ּ + $atc[repasswd] = $passwd; $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"; - } - } + /* Ͻÿ html header tag ϴ Ѵ. */ + if($atc[html]) $atc[text] = delete_tag($atc[text]); 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); + 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] + WHERE no = $atc[no]"); set_cookie($atc); - return $atc['no']; + return $atc[no]; } # Խù Լ - function article_delete($table, $no, $passwd) { - global $jsboard, $o, $_, $board, $page, $c, $db; - global $delete_filename, $delete_dir, $upload, $agent; + function article_delete($table, $no, $passwd, $adm = 0) { + global $sadmin, $admin, $o, $langs; + global $delete_filename, $delete_dir, $sadm; + + $adm = $o[am]; $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); - } + $spasswd = crypt($passwd,$sadmin[passwd]); + $upasswd = crypt($passwd,$admin[passwd]); - # 尡 ƴ ϸ ޼ - if($atc['reyn'] && ($board['super'] != 1 && !$board['adm'] && $admchk != 2)) - print_error($_('act_c'),250,150,1); + if(!check_passwd($table, $atc[no], $passwd) && !$adm) + print_error("$langs[act_pw]"); + else if ($sadmin[passwd] != $spasswd && $adm == "sadmin") + print_error("$langs[act_pww]"); + else if ($sadmin[passwd] != $spasswd && $admin[passwd] != $upasswd && $adm == "admin") + print_error("$langs[act_pwa]"); - sql_escape ($c, $table); - sql_escape ($c, $atc); + if($atc[reyn] && !$adm) # ñ Բ + print_error("$langs[act_c]"); # θ ڽ ۿ θ 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); + if($atc[reno]) { + $result = sql_query("SELECT COUNT(*) FROM $table WHERE reno = $atc[reno]"); + if(sql_result($result, 0, "COUNT(*)") == 1) + sql_query("UPDATE $table SET reyn = 0 WHERE no = $atc[reno]"); sql_free_result($result); } - sql_query("DELETE FROM {$table}_comm WHERE reno = '{$atc['no']}'", $c, 1); - table_lock ($c, $table, 1); - sql_query("DELETE FROM $table WHERE no = '{$atc['no']}'", $c); - sql_query("UPDATE $table SET idx = idx - 1 WHERE (idx + 0) > '{$atc['idx']}'", $c); + sql_query("DELETE FROM $table WHERE no = $atc[no]"); + sql_query("UPDATE $table SET idx = idx - 1 WHERE (idx + 0) > $atc[idx]"); - if(!$atc['reyn']) { + if(!$atc[reyn]) { # upload file - if ($delete_filename && file_exists("$delete_filename")) { + if ($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); + if($atc[reyn] && $adm) { + $result = sql_query("SELECT no,bofile,bcfile FROM $table WHERE reno = $atc[no]"); while($list = sql_fetch_array($result)) { - table_lock ($c, $table, 0); - article_delete($table, $list['no'], $passwd); + article_delete($table, $list[no], $passwd, $adm); # 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']}"); + if ($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); - + $page = get_current_page($table, $atc[idx]); 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|&nbsp;)+"; - $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<sizeof($arrayadm);$k++) { - # Խ н - $result = sql_query("SELECT passwd FROM userdb WHERE nid = '$arrayadm[$k]'", $c); - $r['ad'] = sql_result($result,0,"passwd"); - sql_free_result($result); - - if($r['ad'] == crypt($atc['passwd'],$r['ad'])) { - $notadm = 0; - break; - } else $notadm = 1; - } - if ($notadm) print_error($_('act_d'),250,150,1); - } - } - - if(preg_replace("/\s/i","",$atc['passwd'])) $atc['passwd'] = crypt($atc['passwd']); - if($agent['co'] == "mozilla") $atc['text'] = wordwrap($atc['text'],60,"\n",1); - - sql_escape ($c, $table); - sql_escape ($c, $atc); - - $sql = "INSERT INTO {$table}_comm (reno,rname,name,passwd,text,host,date) ". - "VALUES ('{$atc['no']}','{$atc['rname']}','{$atc['name']}','{$atc['passwd']}','{$atc['text']}','$host','$dates')"; - sql_query($sql, $c); - $sql = "UPDATE {$table} SET comm = comm + 1 WHERE no = '{$atc['no']}'"; - sql_query($sql, $c); - set_cookie($atc,1); - } - - function comment_del($table,$no,$cid,$pass) { - global $jsboard, $_, $board, $c, $db; - - # 尡 ƴ н - if($board['super'] != 1 && !$board['adm']) { - $admchk = check_passwd($table,$cid,trim($pass)); - if(!$admchk) print_error($_('act_pw'),250,150,1); - } - - sql_escape ($c, $table); - - sql_query("DELETE FROM {$table}_comm WHERE no = '$cid'", $c); - $sql = "UPDATE {$table} SET comm = comm - 1 WHERE no = '{$no}'"; - sql_query($sql, $c); - } - # Խù ˻ Լ # # trim - ڿ ڸ @@ -441,141 +240,66 @@ function comment_del($table,$no,$cid,$pass) { # http://www.php.net/manual/function.chop.php function article_check($table, $atc) { # ˻ (CGI ) - global $jsboard, $compare, $o, $ccompare, $_, $rmail; - global $board, $passwd, $agent, $c, $db; - - # spam ϱ üũ - check_spamer($atc); - - # location check - check_location(1); + global $sadmin, $admin, $compare, $o, $ccompare, $langs; # ̸, , - $atc['name'] = trim($atc['name']); - $atc['title'] = trim($atc['title']); - $atc['text'] = chop($atc['text']); - - if(preg_match("/[^\xA1-\xFEa-z\. ]/i", $name)) - print_error ($_('reg_format_n'), 250, 150, 1); + $atc[name] = trim($atc[name]); + $atc[title] = trim($atc[title]); + $atc[text] = chop($atc[text]); - if(($o['at'] == "write" || $o['at'] == "reply") && preg_match("/^(0|4|6)$/",$board['mode']) && !$board['adm'] && $board['super'] != 1) { - if(!trim($atc['passwd']) && !trim($passwd)) print_error($_('act_pwm'),250,150,1); - } + if(!$atc[name] || !$atc[title] || !$atc[text]) print_error($langs[act_in]); + if($atc[url]) $atc[url] = check_url($atc[url]); + if($atc[email]) $atc[email] = check_email($atc[email]); - # blank check - if ( ! $atc['name'] || ! $atc['title'] || ! trim ($atc['text']) ) - print_error($_('act_in'),250,150,1); + if (!$compare[email]) $compare[email] = "mail check"; + if (!$ccompare[email]) $ccompare[email] = "mail check"; - $blankChk = "(\xA1A1|\s|&nbsp;)+"; - $nameChk = array("name","title","text"); - for($bc=0;$bc<3;$bc++) { - if(!$atc[$nameChk[$bc]] || preg_match("/^$blankChk$/i",$atc[$nameChk[$bc]])) - print_error($_('act_in'),250,150,1); - } + $spasswd = crypt($atc[repasswd],$sadmin[passwd]); + $upasswd = crypt($atc[repasswd],$admin[passwd]); - if($atc['url']) $atc['url'] = check_url($atc['url']); - if ( $atc['email'] ) { - # windows php has not checkdnsrr() function - $offset = check_windows () ? 0 : 1; - $atc['email'] = check_email ($atc['email'], $offset); - } + 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; - # , 忡 html table tag ˻ - if(($o['at'] == "write" || $o['at'] == "reply" || $o['at'] == "edit") && $atc['html'] == 1) { - check_htmltable($atc['text']); - check_iframe($atc['text']); - $denysrc = array("!<((iframe|script|img)[^>]*)>!i","!<(/(iframe|script|img))>!i"); - $editsrc = array("&lt;\\1&gt;","&lt;\\1&gt;"); - $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<sizeof($arrayadm);$k++) { - # Խ н - $result = sql_query("SELECT passwd FROM userdb WHERE nid = '{$arrayadm[$k]}'", $c); - $r['ad'] = sql_result($result,0,"passwd"); - sql_free_result($result); - - if($r['ad'] == crypt($atc['passwd'],$r['ad'])) { - $notadm = 0; - break; - } else $notadm = 1; - } - if ($notadm) print_error($_('act_d'),250,150,1); - } + if ($cmp[name] || $cmp[email]) { + if($sadmin[passwd] != $spasswd) print_error($langs[act_ad]); + } else if ($ccmp[name] || $ccmp[email]) { + if($admin[passwd] != $upasswd && $sadmin[passwd] != $spasswd) print_error($langs[act_d]); } # üũ - if($o['at'] == "write" || $o['at'] == "reply") check_captcha ($atc); - if(check_spam($atc['text'])) print_error($_('act_s') . $GLOBALS['spamstr'],250,150,1); - if(check_spam($atc['title'])) print_error($_('act_s') . $GLOBALS['spamstr'],250,150,1); + if(check_spam($atc[text])) print_error($langs[act_s]); + + # browser check + if(!chk_spam_browser()) print_error($langs[act_sb]); # Ϸ - $atc['rtname'] = $atc['name']; - $atc['rtitle'] = $atc['title']; + $atc[rname] = $atc[name]; + $atc[rtitle] = $atc[title]; # ̸, HTML ڵ ڸ ġȯ # ugly_han() -> IE ÿ ѱ - $atc['name'] = ugly_han(htmlspecialchars($atc['name'])); - $atc['title'] = ugly_han(htmlspecialchars($atc['title'])); + $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); + $result = sql_query("SELECT * FROM $table ORDER BY no DESC LIMIT 0, 1"); $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; - } + if ($list && $atc[name] == $list[name] && + $atc[text] == $list[text] && + $atc[title] == $list[title] && + $atc[html] == $list[html]) { + + switch ($o[at]) { + case 'p': + print_error("$langs[act_same]"); + break; + case 'e': + print_error("$langs[act_dc]"); + break; } } @@ -583,85 +307,79 @@ function article_check($table, $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); - } + function set_cookie($atc) { + global $board; # Խ ⺻ (config/global.ph) + $month = 60 * 60 * 24 * $board[cookie]; + + setcookie("board_cookie[name]", $atc[name], time() + $month); + setcookie("board_cookie[email]", $atc[email], time() + $month); + setcookie("board_cookie[url]", $atc[url], time() + $month); } - 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"); + switch($o[at]) { + case 'p': + article_post($table, $atc); + Header("Location: 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']}"); + case 'r': + if ($cenable[ore]) $atc[text] = $text; + $page = article_reply($table, $atc); + Header("Location: list.php?table=$table&page=$page"); break; - case 'edit': + case 'e': $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"); + case 'd': + $page = article_delete($table, $no, $passwd, $o[am]); + Header("Location: list.php?table=$table&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); - } - } +} elseif ($o[at] == "dn") { + @include("config/global.ph"); + $dn[path] = "data/$dn[tb]/$upload[dir]/$dn[cd]/$dn[name]"; + + if(eregi("/",$dn[name]) || eregi("\.\./",$dn[path]) || !$dn[cd] || !$dn[name]) { + echo "<script>\n". + "alert('U attempted invalid method in this program!');\n". + "history.back();\n". + "</script>\n"; + exit; + } + + if($fp=@fopen($dn[path],"r")) { + Header("Content-type: file/unknown"); + Header("Content-Disposition: attachment; filename=".$dn[name]); + Header("Content-Description: PHP Generated Data"); + while($data=fread( $fp,filesize($dn[path]))) { print($data); } + } else { + echo "<script>\n". + "alert('Don\'t open $dn[name]');\n". + "history.back();\n". + "</script>\n"; + exit; + } +} elseif ($o[at] == "sm") { + @include "config/global.ph"; + @include "include/error.ph"; + @include "include/check.ph"; + @include "include/sendmail.ph"; + @include "include/lang.ph"; - $dn['encode'] = content_disposition($dn['name']); + # browser check + if(!chk_spam_browser()) print_error($langs[act_sb]); - 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'); + check_sendmail(1); - echo $dn['dl']; - } -} else { - echo "<script type=\"text/javascript\">alert('It\'s Bad Access');history.back();</script>"; - exit; + $rmail[name] = "$atc[name]"; + $rmail[text] = "$atc[text]"; + $rmail[title] = "$atc[title]"; + $rmail[email] = "$atc[email]"; + $rmail[version] = "$version"; + $rmail[reply_orig_email] = "$atc[to]"; + + sendmail($rmail,1); + + echo "<script>window.close()</script>"; } ?> diff --git a/admin/License b/admin/License new file mode 100644 index 00000000..c6e948e4 --- /dev/null +++ b/admin/License @@ -0,0 +1,51 @@ +OOPS Administration Center - PHP programingÿ Ǵ MySQL DB + + α׷ JSBoardʹ α׷μ +Ʈ . + +OOPS License v0.1 + +Copyright 1999-2000 (JoungKyun Kim) +E-mail : admin@oops.org +Home : http://www.oops.org + +[English Message] + +ATTENTION!! +All problems of law is based follow Korean Message. + +This software is restricted freeware without purpose of commerce +that use whole or some parts of this software. If U want to use +to business, must permited to me! + +Purpose of Commerce is resticted active that seils whole source +or some parts of source. + +If you use this software or some parts of this software, you +must see clear upper qualifications and copyright of first dev- +eloper(ME ^^). Modifyer or redistributer is recorded redistrib- +uter. + +Used of this software is without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +You should have received a copy of This License along with this +program; if not, write to me. + +[Korean Message] + + Ʈ Ǿ絵ڴ  쿡 +ÿ ҽ Ǵ ҽ Ϻθ Ҽ + 뵵 Ǿ 쿡 㰡 ־ Ѵ. + + 뵵 ҽ Ǵ ҽ Ϻθ ҽ Ǹ ϴ + Ѵ. + + Ʈ Ǵ Ϻθ ̿ҽ copyright +ϸ, copyright ǥؾ߸ ϸ, + ڴ ⸦ ϵ Ѵ. + + Ʈ Կ ־ ؿ ؼ å +Ʈ ϴ ο ϱ ٶ. + + Ǿ ִٸ ο Ǹ ٶ. diff --git a/admin/act.php b/admin/act.php index f6ccc7d4..5f331258 100644 --- a/admin/act.php +++ b/admin/act.php @@ -1,171 +1,160 @@ <?php -# $Id: act.php,v 1.4 2009-11-17 17:40:16 oops Exp $ -$path['type'] = "admin"; -require_once './include/admin_head.php'; -require_once '../include/ostype.php'; -require_once '../include/parse.php'; - -if ( ! session_is_registered ($jsboard) || $_SESSION[$jsboard]['pos'] != 1 ) - print_error ($_('login_err')); - -if ( $mode == 'global_chg' ) { - $db['rhost'] = $db['server']; - $db['rmode'] = ""; -} - -if ($db['rmode'] == 'r' ) - print_error ("System Checking NOW !! \n\nSorry, Read only enable.", 250, 130, 1); +@include("./include/admin_head.ph"); +@include("../include/ostype.ph"); -########################################### -# DB -########################################### +// password Լ - admin/include/auth.ph +compare_pass($sadmin,$login); -$c = sql_connect($db['rhost'], $db['user'], $db['pass'], $db['name']); +$connect=mysql_connect($db[server],$db[user] ,$db[pass]) or + die("$langs[sql_na]" ); -# password Լ - admin/include/auth.php -compare_pass ($_SESSION[$jsboard]); +/* db_name Ʒ մϴ. */ +exsit_dbname_check($db[name]); -# db_name Ʒ մϴ. -exsit_dbname_check ($db['name']); +mysql_select_db($db[name],$connect); -# ĺ е Ѿ -# ǵ -$tslink = $ts ? "?ts=$ts" : ''; +if ( $mode != "manager_config") { -if ( $mode == 'csync' ) { - table_name_check ($table_name); - - if ( ! preg_match ("/_comm$/", $table_name) ) { - print_error ("$table_name is not comment table", 250, 150, 1); - } + /****************************************** + DB մϴ. + *****************************************/ - $mother_name = preg_replace ('/_comm$/', '', $table_name); + if ($mode=='db_del') { + table_name_check($table_name); - # ̸ Խ ִ Ȯ - $chk = db_table_list ($c, $db['name'], '', $table_name); - - if ( $chk ) { - if ( ! field_exist_check ($c, $db['name'], $mother_name, "comm") ) { - # comm field ߰ - sql_query ('ALTER TABLE ' . $mother_name . ' add comm int(6) DEFAULT 0', $c); - # comm field key ߰ - sql_query ('ALTER TABLE ' . $mother_name . ' add key (comm)', $c); - } + /* table delete */ + $table_del = "drop table $table_name"; + $result = mysql_query($table_del,$connect); - sync_comment ($table_name, $mother_name); + /* Խ Ǵ file */ + exec("$exec[rm] ../data/$table_name"); + mysql_close(); + } - sql_close ($c); - } else { - sql_close ($c); - print_error ("$table_name is not found", 250, 150, 1); + if ($mode == 'db_create') { + $tbl_list = mysql_list_tables($db[name]); + + /* θ ̸ üũ */ + table_name_check($new_table); + /* table list üũ */ + table_list_check($db[name]); + /* ̸ Խ ִ Ȯ */ + same_db_check($tbl_list,$new_table); + + $create_table = "CREATE TABLE $new_table ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar($ostypes[pfield]), + 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, + moder int(1) 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), + PRIMARY KEY (no))"; + + $passwd_ext = crypt($passwd_ext); + + $insert_data = "insert into $new_table values ('',1,1,$date,'$host_ext','$name_ext','$passwd_ext', + '$email_ext','$url_ext','$subj_msg','$text_msg',0,0,0,0,0,0,0,'','','')"; + + $result = mysql_query($create_table, $connect); + $result_insert = mysql_query($insert_data, $connect); + + // ο Խǿ ʿ Ϲ 丮 + mkdir("../data/$new_table",0700); + mkdir("../data/$new_table/files",0700); + chmod("../data/$new_table",0755); + chmod("../data/$new_table/files",0755); + copy("../Installer/sample/$ostypes[name]/config.ph","../data/$new_table/config.ph"); + chmod("../data/$new_table/config.ph",0644); + copy("../Installer/sample/$ostypes[name]/html_head.ph","../data/$new_table/html_head.ph"); + chmod("../data/$new_table/html_head.ph",0644); + copy("../Installer/sample/$ostypes[name]/html_tail.ph","../data/$new_table/html_tail.ph"); + chmod("../data/$new_table/html_tail.ph",0644); + + // 丮 + chdir("../data/$new_table"); + if(file_exists("default.themes")) unlink("default.themes"); + symlink("../../config/themes/basic.themes","default.themes"); + chdir("../../admin"); + + mysql_close(); } -} -else if ( $mode == 'db_del' ) { - table_name_check ($table_name); + if ($mode == "global_chg") { - # ̸ Խ ִ Ȯ - $chk = db_table_list ($c, $db['name'], '', $table_name); + // quot ȯ ڸ un quot Ѵ + $vars = stripslashes($glob[vars]); + $spam = stripslashes($glob[spam]); + $br = stripslashes($glob[brlist]); - if ( $chk ) { - # table delete - $table_del = "drop table $table_name"; - sql_query ($table_del, $c); + $fp = fopen("../config/global.ph","w"); + fwrite($fp,$vars); + fclose($fp); - if ( ! preg_match ('/_comm$/', $table_name) ) { - $comm_del = "drop table {$table_name}_comm"; - sql_query($comm_del,$c, 1); + $gp = fopen("../config/spam_list.txt", "w"); + fwrite($gp,$spam); + fclose($gp); - # Խ Ǵ file - unlink_r ("../data/{$table_name}"); - } - } + $bp = fopen("../config/allow_browser.txt", "w"); + fwrite($bp,$br); + fclose($bp); - sql_close ($c); -} + // 丮 + chdir("../config"); + if(file_exists("default.themes")) unlink("default.themes"); + symlink("themes/$glob[theme].themes","default.themes"); + + echo "<script>\n" . + "alert('$langs[act_complete]')\n" . + "window.close()\n</script>"; + exit; -else if ( $mode == 'db_create' ) { - # Խ ̸ Ģ -> 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); -} + Header("Location:admin.php"); -else if( $mode == 'global_chg' ) { - sql_close ($c); - # quot ȯ ڸ un quot Ѵ +} else { + if ($admincenter_pass && $readmincenter_pass) { + if ($admincenter_pass == $readmincenter_pass) { - $vars = "<?\n" . stripslashes ($glob['vars']) . "\n?>"; - $spam = stripslashes ($glob['spam']); + // Է н带 crypt ȣȭ + $ad_pass = crypt($admincenter_pass); + $ad_pass = str_replace("\$","\\\$",$ad_pass); - writefile_r ('../config/global.php', $vars); - writefile_r ('../config/spam_list.txt', $spam); + $configfile = "./include/config.ph"; + $fp = fopen($configfile,"r"); + $admininfo = fread($fp,filesize($configfile)); + fclose($fp); - $_lang['act_complete'] = str_replace ("\n", "\\n", $_('act_complete')); - $_lang['act_complete'] = str_replace ("'", "\'", $_lang['act_complete']); + $admininfo = eregi_replace("sadmin\[passwd\] = (\"[a-z0-9\.\/\$]*\")","sadmin[passwd] = \"$ad_pass\"",$admininfo); - echo "<script type=\"text/javascript\">\n" . - "alert('{$_lang['act_complete']}')\n" . - "window.close()\n</script>\n". - "<NOSCRIPT>Complete this Job. Click <A HREF=./admin.php>here go to admin page!</A></NOSCRIPT>"; - exit; + $fp = fopen($configfile,"w"); + fwrite($fp, $admininfo); + fclose($fp); + complete_adminpass(); + } else admin_pass_error(); + } else print_error($langs[a_act_cp]); } -Header("Location:admin.php$tslink"); - ?> diff --git a/admin/admin.php b/admin/admin.php index 1e11316c..33837603 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1,268 +1,187 @@ <?php -# $Id: admin.php,v 1.4 2014-02-28 19:30:02 oops Exp $ -$path['type'] = 'admin'; -require_once "./include/admin_head.php"; - -# ĺ з ũ -if ( $ts ) { - $tslink = "?ts=$ts"; - $tslinks = "&ts=$ts"; -} +@include("./include/admin_head.ph"); -if ( ! session_is_registered ($jsboard) || $_SESSION[$jsboard]['pos'] != 1 ) - print_error($_('login_err')); - -# н尡 ⺻ ʾ - admin/include/print.php -print_chgpass ($_SESSION[$jsboard]['pass']); - -htmlhead (); - -# input size browser ߱ -$size = form_size (9); -$_lang['a_t41'] = ( $_('code') == 'en' ) ? strtoupper($_('a_t4')) : $_('a_t4'); -$_lang['a_t61'] = ( $_('code') == 'en' ) ? strtolower($_('a_t6')) : $_('a_t6'); - -# MySQL Ѵ -$c = sql_connect($db['server'], $db['user'], $db['pass'], $db['name']); - -if ( $agent['tx'] ) { - echo "JSBoard<BR>\n". - "Administration Center\n"; -} else { - echo "<table border=0 width=\"100%\" cellpadding=0 cellspacing=0 style=\"height: 100%\">\n". - "<tr><td align=\"center\" valign=\"middle\">\n\n". - "<table width=\"{$board['width']}\" border=0 cellpadding=0 cellspacing=0>\n<tr><td>\n". - "<table border=0 cellpadding=0 cellspacing=0>\n<tr>\n". - "<td rowspan=2 valign=\"middle\">\n". - "<span class=\"bigtitle\">J</span></td>\n". - "<td valign=\"bottom\"><span class=\"smalltitle\"> SBoard</span></td>\n". - "</tr>\n\n<tr>\n". - "<td valign=\"top\"><span class=\"smalltitle\">Administration Center</span></td>\n". - "</tr>\n</table>\n". - "</td></tr>\n</table>\n\n"; -} +// password Լ - admin/include/check.ph +compare_pass($sadmin,$login); -# db_name Ʒ մϴ. -exsit_dbname_check ($db['name']); +// н尡 ⺻ ʾ - admin/include/print.ph +print_chgpass($login[pass]); -if( $db['name'] && ! $table ) { - echo "<table border=0 cellpadding=1 cellspacing=1 width=\"{$board['width']}\" align=\"center\">\n". - "<tr>\n"; +htmlhead(); +java_scr(); - if ( $agent['tx'] ) { - echo '<td><b>' . $_('a_t1') . "</b></td>\n". - '<td>' . $_('a_t3') . "</td>\n". - '<td>' . $_('a_t4') . "</td>\n". - '<td><b>' . $_('a_t5') . "</b></td>\n"; - } else { - echo "<td rowspan=2 class=\"fieldtitle\">" . $_('a_t1') . "</td>\n". - "<td colspan=2 class=\"fieldtitle\">" . $_('a_t2') . "</td>\n". - "<td rowspan=2 class=\"fieldtitle\">" . $_('a_t5') . "</td>\n". - "</tr>\n\n". - "<tr>\n". - "<td class=\"fieldtitle\">" . $_('a_t3') . "</td>\n". - "<td class=\"fieldtitle\">" . $_('a_t4') . "</td>\n"; - } - echo "</tr>"; +// input size browser ߱ +$size = form_size(9); +$langs[a_t41] = strtoupper($langs[a_t4]); +$langs[a_t61] = strtolower($langs[a_t6]); + +/* MySQL Ѵ */ +$connect=@mysql_connect( "$db[server]", "$db[user]" , "$db[pass]" ) or + die("$langs[sql_na]" ); +echo "<table border=0 width=100% height=100% cellpadding=0 cellspacing=0>\n" . + "<tr><td align=center valign=center>\n\n" . + "<table border=0 cellpadding=0 cellspacing=0 border=0>\n<tr>\n" . + "<td rowspan=2 valign=center><font size=+2 color=$color[text]><b>OOPS&nbsp;</b></font></td>\n" . + "<td valign=bottom> for JS Board</td>\n" . + "</tr>\n\n<tr>\n" . + "<td valign=top>Administration Center v$copy[version]</td>\n" . + "</tr>\n</table>\n<p>\n"; - $table_name = db_table_list ($c, $db['name'], $ts); - $tbl_num = sizeof ($table_name); +/* db_name Ʒ մϴ. */ +exsit_dbname_check($db[name]); - if ( ! $start && ! $page ) { $start = 0; $page = 1; } - else if ( $page == 1 ) $start = 0; - else if ( $page > 1 ) $start = $page * $sadmin['pern'] - $sadmin['pern']; +if($db[name] && !$table) { + $tbl_list = mysql_list_tables($db[name]); + + // table list üũ + table_list_check($db[name]); + + $tbl_num=mysql_num_rows($tbl_list); + + echo "<table border=0 cellpadding=1 cellspacing=1 width=$board[width] align=center>\n" . + "<tr align=center bgcolor=$color[l1_bg]>\n" . + "<td rowspan=2><font color=$color[l1_fg]><b>$langs[a_t1]</b></font></td>\n" . + "<td colspan=2><font color=$color[l1_fg]><b>$langs[a_t2]</b></font></td>\n" . + "<td rowspan=2><font color=$color[l1_fg]><b>$langs[a_t5]</b></font></td>\n" . + "<td rowspan=2><font color=$color[l1_fg]><b>$langs[a_t6]</b></font></td>\n" . + "</tr>\n\n" . + "<tr align=center bgcolor=$color[l1_bg]>\n" . + "<td><font color=$color[l1_fg]>$langs[a_t3]</font></td>\n" . + "<td><font color=$color[l1_fg]>$langs[a_t4]</font></td>\n" . + "</tr>"; + + if (!$start && !$page) { $start = 0; $page = 1; } + 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 "<tr align=\"center\">\n". - "<td align=\"left\" width=\"30%\" class=\"rowtype1\">&nbsp;&nbsp;&nbsp;{$table_name[$i]}</td>\n". - "<td align=\"right\" width=\"15%\" class=\"rowtype1\">{$total_today} &nbsp;&nbsp;</td>\n". - "<td align=\"right\" width=\"15%\" class=\"rowtype1\">{$total_count} &nbsp;&nbsp;</td>\n"; - - if ( $chk_result && $table_name[$i] != "userdb" ) { - if ( $agent['tx'] ) { - echo "<td width=\"40%\">\n". - "<a href=\"../list.php?table={$table_name[$i]}&amp;nd=1\">" . $_('a_t7') . "</A>\n". - "<a href=\"./user_admin/uadmin.php?table={$table_name[$i]}&amp;nd=1\">" . $_('a_t8') . "</A>\n". - "<a href=\"./stat.php?table={$table_name[$i]}\">" . $_('a_t17') . "</A>\n". - "<a href=\"./act.php?mode=db_del&amp;table_name={$table_name[$i]}&amp;ts=$ts\">" . $_('a_t9') . "</A>\n". - "</td>\n</tr>"; - } else { - echo "<td width=\"40%\" class=\"rowtype1\"><form name=\"delete_db{$i}\" method=\"post\" action=\"act.php\">\n". - "<input type=\"button\" value=\"" . $_('a_t7') . "\" onClick=\"fork('popup','../list.php?table={$table_name[$i]}&amp;nd=1')\">\n". - "<input type=\"button\" value=\"" . $_('a_t8') . "\" onClick=\"fork('popup','./user_admin/uadmin.php?table={$table_name[$i]}&amp;nd=1')\">\n". - "<input type=\"button\" value=\"" . $_('a_t17') . "\" onClick=\"fork('popup','./stat.php?table={$table_name[$i]}')\">\n". - "<input type=\"submit\" value=\"" . $_('a_t9') . "\" onClick=\"return confirm('" . $_('a_del_cm') . "')\">\n". - "<input type=\"hidden\" name=\"table_name\" value=\"{$table_name[$i]}\">\n". - "<input type=\"hidden\" name=\"mode\" value=\"db_del\">\n". - "<input type=\"hidden\" name=\"ts\" value=\"$ts\">\n". - "</form></td>\n</tr>"; - } + $until = $start+$sadmin[pern]; + $priv = $page-1; + $next = $page+1; + + // ڿ data ڿ ϵ մϴ. + $current = "SELECT UNIX_TIMESTAMP(CURDATE()) as curdate"; + $result = mysql_query($current,$connect ); + $current_time = mysql_result($result, 0, "curdate"); + + // scale + if ($tbl_num > "0") { + for($i=$start; $i<$until; $i++) { + if ($i < $tbl_num) { + // table list ҷ ɴϴ. + $table_name[$i] = mysql_tablename($tbl_list,$i); + + // jsboard ϴ Խ Ǵ + $chk = "select idx from $table_name[$i]"; + $chk_result = mysql_query($chk,$connect); + + // 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; + + $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; + + echo "<tr align=center bgcolor=$color[l0_bg]>\n" . + "<td align=left width=30%><font color=$color[l0_fg]>&nbsp;&nbsp;&nbsp;$table_name[$i]</font></td>\n" . + "<td align=right width=15%><font color=$color[l0_fg]>$total_today &nbsp;&nbsp;</font></td>\n" . + "<td align=right width=15%><font color=$color[l0_fg]>$total_count &nbsp;&nbsp;</font></td>\n"; + + if($chk_result) { + + echo "<form method='POST'><td width=30%>\n" . + "<input type=button value=$langs[a_t7] onClick=fork('popup','../list.php?table=$table_name[$i]')>\n" . + "<input type=button value=$langs[a_t8] onClick=fork('popup','./user_admin/uadmin.php?table=$table_name[$i]')>\n" . + "<input type=button value=$langs[a_t17] onClick=fork('popup','./stat.php?table=$table_name[$i]')>\n" . + "</td></form>\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 "<td width=\"40%\" class=\"rowtype1\"><form name=\"delete_db{$i}\" method=\"post\" action=\"act.php\">\n". - "{$table_explain}\n". - "<input type=\"button\" value=\"" . $_('a_t21') . "\" " . - "onClick=\"document.location='./act.php?mode=csync&amp;table_name={$table_name[$i]}&amp;ts={$ts}'\">\n". - "<input type=\"submit\" value=\"" . $_('a_t9') . "\" onClick=\"return confirm('" . $_('a_del_cm') . "')\">\n". - "<input type=\"hidden\" name=\"table_name\" value=\"{$table_name[$i]}\">\n". - "<input type=\"hidden\" name=\"mode\" value=\"db_del\">\n". - "<input type=\"hidden\" name=\"ts\" value=\"{$ts}\">\n". - "</form></td>\n</tr>"; + echo "<td width=30%>\n" . + "<font color=$color[l0_fg]>Not JSBoard table</font>\n" . + "</td>\n"; + } + + + echo "<form name='delete_db' method='post' action='act.php'>\n" . + "<td width=10%>\n" . + "<input type='hidden' name='table_name' value='$table_name[$i]'>\n" . + "<input type='hidden' name='mode' value='db_del'>\n" . + "<input type=submit value=$langs[a_t9] onClick=\"return confirm('$langs[a_del_cm]')\">\n" . + "</td></form>\n</tr>"; } } } else { - echo "<tr align=\"center\">\n". - "<td colspan=4 class=\"noaccount\"><br>" . - $_('n_acc') . "<br>&nbsp;</td>\n". + echo "<tr align=center bgcolor=$color[l0_bg]>\n" . + "<td colspan=5 align=center><font size=+2 color=$color[l0_fg]><b><br>$langs[n_acc]<br>&nbsp;</b></font></td>\n" . "</tr>"; } - # ü ϵ Ȯ - for ( $t = 0; $t < $tbl_num; $t++ ) { - # jsboard ϴ Խ Ǵ - $chk = "select idx from $table_name[$t] where idx = 1;"; - if (($chk_result = sql_query($chk,$c,true)) === false) { - if (!preg_match('/_comm/', $table_name[$t])) - continue; - } + // ü ϵ Ȯ + for($t = 0; $t < $tbl_num; $t++) { + // table list ҷ ɴϴ. + $table_name_t[$t] = mysql_tablename($tbl_list,$t); - # table ϵ check մϴ. - $total_t = "SELECT COUNT(*) AS cnt FROM {$table_name[$t]}"; - $result_t = sql_query ($total_t, $c); - $total_count_t = sql_result ($result_t, 0, 'cnt'); + // table ϵ check մϴ. + $total_t = "select count(*) from $table_name_t[$t]"; + $result_t = mysql_query($total_t,$connect ); + $total_count_t = mysql_result($result_t, 0, "COUNT(*)"); - # table ϵ ۵ մϴ. - $to_t = $to_t + $total_count_t; + // table ϵ ۵ մϴ. + $to_t = $to_t + $total_count_t; - $total_t = "SELECT COUNT(*) AS cnt FROM {$table_name[$t]} WHERE date > '$current_time'"; - $result_t = sql_query ($total_t, $c, 1); - $total_today_t = sql_result ($result_t, 0, 'cnt'); + $total_t = "select count(*) from $table_name_t[$t] where date > '$current_time'"; + $result_t = mysql_query($total_t,$connect ); + $total_today_t = @mysql_result($result_t, 0, "COUNT(*)"); - # ϵ ۵ մϴ. - $to_today_t = $to_today_t + $total_today_t; + // ϵ ۵ մϴ. + $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<tr>\n". - "<td class=\"rowtype2\"><span style=\"font-weight: bold;\">{$_lang['a_t41']} [ " . $_('a_t16') . " ]</span></td>\n". - "<td class=\"rowtype2\">{$to_today} [{$to_today_t}]</td>\n". - "<td class=\"rowtype2\" style=\"white-space: nowrap\">{$to} [{$to_t}]</td>\n". - "<td class=\"rowtype1\" align=\"center\">\n"; - if($agent['tx']) { - $userclick = $_SESSION[$jsboard]['external'] ? "[ " . $_('a_t20') . " ]" : "<a href=\"./userlist.php?t=a\">[ " . $_('a_t20') . " ]</a>"; - echo "$userclick\n". - "<a href=\"../session.php?m=logout\">[ " . $_('a_t11') . " ]</A>\n"; - } else { - echo "<input type=\"button\" value=\"" . $_('a_t20') . "\" onClick=\"$userclick\">\n". - "<input type=\"button\" value=\"" . $_('a_t11') . "\" onClick=\"logout()\">\n"; - } - echo "</td>\n</tr>\n\n"; - - if ( $agent['tx'] ) { - echo "<tr><td colspan=4>\n" . - "<form name='create_db' method='post' action='act.php'>\n". - "&nbsp;&nbsp;" . $_('a_t12') . " :\n". - "<input type=\"text\" name='new_table' size=\"$size\">\n". - "<input type='submit' name='submit' value='" . $_('a_t13') . "'>\n". - "<input type='hidden' name='mode' value='db_create'>\n". - "<input type='hidden' name='ts' value='{$ts}'>\n". - "</form></td>\n". - "</tr>\n\n". - "<tr><td colspan=4>\n" . - "<form name='del_db' method='post' action='act.php'>\n" . - "&nbsp;&nbsp;" . $_('a_t14') . " :\n". - "<input type=\"text\" name='table_name' size=$size>\n". - "<input type='submit' name='submit' value='{$_lang['a_t61']}'>\n". - "<input type='hidden' name='mode' value='db_del'>\n". - "<input type='hidden' name='ts' value='$ts'>\n". - "</form></td>\n</tr>\n\n". - "<tr>\n". - "<td colspan=3>\n"; - } else { - echo "<tr><td colspan=3 class=\"rowtype1\">\n" . - "<form name='create_db' method='post' action='act.php'>\n". - "&nbsp;&nbsp;" . $_('a_t12') . " :\n". - "<input type=\"text\" name='new_table' size=$size>\n". - "<input type='submit' name='submit' value='" . $_('a_t13') . "'>\n". - "<input type='hidden' name='mode' value='db_create'>\n". - "<input type='hidden' name='ts' value='$ts'>\n". - "</form></td>\n\n". - "<td rowspan=2 class=\"copy\">\n". - "<a href=\"http://jsboard.kldp.net\" TARGET=\"_blank\"><span class=\"copy\">". - "Powered By<br>JSBoard OPEN PROJECT</span></a>\n". - "</td>\n</tr>\n\n". - "<tr><td colspan=3 class=\"rowtype1\">\n". - "<form name='del_db' method='post' action='act.php'>\n". - "&nbsp;&nbsp;" . $_('a_t14') . " :\n". - "<input type=\"text\" name='table_name' size=$size>\n". - "<input type='submit' name='submit' value='{$_lang['a_t61']}' onClick=\"return confirm('" . $_('a_del_cm') . "')\">\n". - "<input type='hidden' name='mode' value='db_del'>\n". - "<input type='hidden' name='ts' value='$ts'>\n". - "</form></td>\n</tr>\n\n". - "<tr>\n". - "<td colspan=3 class=\"rowtype2\">\n"; - } + echo "\n<tr align=center bgcolor=$color[l1_bg]>\n" . + "<td><font color=$color[l1_fg]><b>$langs[a_t41] [ $langs[a_t16] ]</b></font></td>\n" . + "<td align=right><font color=$color[l1_fg]>$to_today [$to_today_t] &nbsp;&nbsp;</font></td>\n" . + "<td align=right><font color=$color[l1_fg]>$to [$to_t] &nbsp;&nbsp;</font></td>\n" . + "<td colspan=2 bgcolor=$color[l0_bg]>\n" . + "<form><input type=button value=\"$langs[a_t10]\" onClick=fork('popup1','admin_info.php')>\n" . + "<input type=button value=\"$langs[a_t11]\" onClick=logout()>\n" . + "</td></form>\n</tr>\n\n" . + "<tr bgcolor=$color[l0_bg]><form name='create_db' method='post' action='act.php'>\n" . + "<td colspan=3>&nbsp;&nbsp;<font color=$color[l0_fg]>$langs[a_t12] :</font>\n" . + "<input type=text name='new_table' size=$size>\n" . + "<input type='submit' name='submit' value='$langs[a_t13]'>\n" . + "<input type='hidden' name='mode' value='db_create'>\n" . + "</td></form>\n\n" . + "<td colspan=2 rowspan=2 align=center><font color=white>\n" . + "<a href=$copy[url]><font color=$color[l0_fg]>OOPS Developoment<br>Organization</font></a>\n" . + "</td>\n</tr>\n\n" . + "<tr bgcolor=$color[l0_bg]><form name='del_db' method='post' action='act.php'>\n" . + "<td colspan=3>&nbsp;&nbsp;<font color=$color[l0_fg]>$langs[a_t14] :</font>\n" . + "<input type=text name='table_name' size=$size>\n" . + "<input type='submit' name='submit' value='$langs[a_t61]' onClick=\"return confirm('$langs[a_del_cm]')\">\n" . + "<input type='hidden' name='mode' value='db_del'>\n" . + "</td></form>\n</tr>\n\n" . + "<tr bgcolor=$color[l1_bg]>\n" . + "<td colspan=3 align=center>\n"; $total = $tbl_num; - $lastpage_check = $total%$sadmin['pern']; + $lastpage_check = $total%$sadmin[pern]; - if(!$lastpage_check) { - $lastpage = $total/$sadmin['pern']; + if ($lastpage_check == "0") { + $lastpage = $total/$sadmin[pern]; $lastpage = explode(".",$lastpage); $lastpage = $lastpage[0]; } else { - $lastpage = $total/$sadmin['pern']+1; + $lastpage = $total/$sadmin[pern]+1; $lastpage = explode(".",$lastpage); $lastpage = $lastpage[0]; } @@ -270,52 +189,48 @@ $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 ($i == $lastpage_basic1) { $lastpage_basic = $lastpage[$i]; } } - if($lastpage_basic == 1 || $lastpage_basic == 6) { + 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) { + } else if ($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) { + } else if ($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) { + } else if ($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) { + } 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); + $foo = $page/5; + $foo = explode(".",$foo); $pfoo = $foo[1]; $nfoo = $foo[0]; - if($page > 6 && $foo == 0) $page_num = $page; + if ($page > 6 && $foo == 0) { $page_num = $page; } - if($total == 0) echo "&nbsp;"; + if ($total == 0) { echo "&nbsp;"; } else { - if($page < 2) echo "&nbsp;"; - else echo "<a href=\"{$_pself}$tslink\"><img src=\"./img/first.gif\" border=0 alt=\"" . $_('a_act_fm') . "\"></a>"; + if ($page < 2) { echo "&nbsp;"; } + else { echo "<a href=$PHP_SELF><img src=./img/first.gif border=0 alt=\"$langs[a_act_fm]\"></a>"; } - if($page >= $lastpage) echo "&nbsp;"; - else - echo "<a href=\"{$_pself}?page={$lastpage}&amp;page_num={$last_page_num}&amp;scale_lastpage={$last_scale_lastpage}{$tslinks}\">" . - "<img src=\"./img/last.gif\" border=0 alt=\"" . $_('a_act_lm') . "\"> </a>"; + if ($page >= $lastpage) { echo "&nbsp;"; } + else { echo "<a href=$PHP_SELF?page=$lastpage&page_num=$last_page_num&scale_lastpage=$last_scale_lastpage><img src=./img/last.gif border=0 alt=\"$langs[a_act_lm]\"> </a>"; } for($i=$page_num; $i<$scale_lastpage; $i++) { - if($i <= $lastpage) { - $page_view = $i; - if ($i == $nowpage) echo "<span class=\"pageview_c\">$page_view</span> "; - else - echo "<a href=\"{$_pself}?page=$i&amp;page_num=$page_num&amp;scale_lastpage=$scale_lastpage$tslinks\">" . - "<span class=\"rowtype2\">$page_view</span></a> "; + if ($i <= $lastpage) { + $page_view = $i; + if ($i == $nowpage) { echo "<font color=red>$page_view</font> "; } + else { echo "<a href=$PHP_SELF?page=$i&page_num=$page_num&scale_lastpage=$scale_lastpage><font color=$color[l0_bg]>$page_view</font></a> "; } } } @@ -324,53 +239,35 @@ $p_scale_lastpage = $scale_lastpage-5; $n_scale_lastpage = $scale_lastpage+5; - if($page < 2) echo "&nbsp;"; + + if ($page < 2) { echo "&nbsp;"; } else { - if($page > 5 && $pfoo == 2) - echo "<a href=\"{$_pself}?page={$priv}&page_num={$p_page_num}&scale_lastpage={$p_scale_lastpage}{$tslinks}\" title=\"" . $_('a_act_pm') . "\"><span class=\"rowtype2\"><b></b></span></a>"; - else - echo "<a href=\"{$_pself}?page={$priv}&page_num={$page_num}&scale_lastpage={$scale_lastpage}{$tslinks}\" title=\"" . $_('a_act_pm') . "\"><span class=\"rowtype2\"><b></b></span></a>"; + if ($page > 5 && $pfoo == 2) { + echo "<a href=$PHP_SELF?page=$priv&page_num=$p_page_num&scale_lastpage=$p_scale_lastpage title=\"$langs[a_act_pm]\"><font color=$color[l0_fg]><b></b></font></a>"; + } else { + echo "<a href=$PHP_SELF?page=$priv&page_num=$page_num&scale_lastpage=$scale_lastpage title=\"$langs[a_act_pm]\"><font color=$color[l0_fg]><b></b></font></a>"; + } } - if($lastpage-$page <= 0) echo "&nbsp;"; + if ($lastpage-$page <= 0) { echo "&nbsp;"; } else { - if($page >= 5 && $pfoo == 0) - echo "<a href=\"{$_pself}?page={$next}&page_num={$n_page_num}&scale_lastpage={$n_scale_lastpage}{$tslinks}\" title=\"" . $_('a_act_nm') . "\"><span class=\"rowtype2\"><b></b></span></a>"; - else - echo "<a href=\"{$_pself}?page={$next}&page_num={$page_num}&scale_lastpage={$scale_lastpage}{$tslinks}\" title=\"" . $_('a_act_nm') . "\"><span class=\"rowtype2\"><b></b></span></a>"; + if ($page >= 5 && $pfoo == 0) { + echo "<a href=$PHP_SELF?page=$next&page_num=$n_page_num&scale_lastpage=$n_scale_lastpage title=\"$langs[a_act_nm]\"><font color=$color[l0_fg]><b></b></font></a>"; + } else { + echo "<a href=$PHP_SELF?page=$next&page_num=$page_num&scale_lastpage=$scale_lastpage title=\"$langs[a_act_nm]\"><font color=$color[l0_fg]><b></b></font></a>"; + } } } - if ( $ts ) - $_lang['ts'] = "<a href=\"{$_pself}\"><span class=\"rowtype1\">" . $_('a_t18') . "</span></a>"; - else - $_lang['ts'] = $_('a_t19'); - - echo "</td>\n". - "<td class=\"rowtype2\">\n"; - - if ( $agent['tx'] ) echo "<a href=\"./admin_info.php?mode=global\">[ " . $_('a_t15') . " ]</A>\n"; - else echo "<input type=\"button\" value=\"" . $_('a_t15') . "\" onClick=\"fork('popup','admin_info.php?mode=global')\"><br>\n"; - - echo "</td>\n". - "</tr>\n<tr>\n" . - "<td align=\"center\" class=\"rowtype1\">{$_lang['ts']}</td>\n" . - "<td colspan=3 class=\"rowtype2\">\n"; - - for ( $i = '97'; $i <= '122'; $i++ ) { - $_i = chr ($i); - $I = strtoupper ($_i); - $_class = ( $ts == $_i ) ? 'classlink_b' : 'classlink'; - echo "<a href=\"{$_pself}?ts={$_i}\"><span class=\"{$_class}\">{$I}</span></a>\n"; - } - echo "<td></tr>\n</table>\n\n"; + echo "</td><form>\n" . + "<td colspan=2 align=center><font color=white>\n" . + "<input type=button value=\"$langs[a_t15]\" onClick=fork('popup','admin_info.php?mode=global')><br>\n" . + "</td></form>\n" . + "</tr></table>\n\n"; } -echo "<br>"; -echo "\n</td></tr>\n</table>\n"; - -if ( $agent['tx'] ) - echo "Powered By <a href=\"http://jsboard.kldp.net/\">JSBoard Open Project</a>\n"; +mysql_close(); +echo "<br>" . copyright($copy) . "\n</td></tr>\n</table>\n"; htmltail(); ?> diff --git a/admin/admin_info.php b/admin/admin_info.php index 06b88600..9ab99501 100644 --- a/admin/admin_info.php +++ b/admin/admin_info.php @@ -1,58 +1,94 @@ -<?php -# $Id: admin_info.php,v 1.2 2009-11-16 21:52:46 oops Exp $ -$path['type'] = "admin"; -require_once "./include/admin_head.php"; +<? +@include("./include/admin_head.ph"); -htmlhead (); -# session ϵǾ α ȭ. -if ( ! session_is_registered ($jsboard) || $_SESSION[$jsboard]['pos'] != 1 ) - print_error ($_('login_err')); +htmlhead(); +// password Լ - admin/include/check.ph +compare_pass($sadmin,$login); +// input size browser ߱ +$size = form_size(9); +$textsize = form_size(36); -# input size browser ߱ -$size = form_size (9); -$textsize = form_size (40); +if (!$mode) { + echo "<!--------------------------- Upper is HTML_HEAD --------------------------->\n" . + "<table width=100% height=100% border=0 cellpadding=0 cellspacing=0>\n" . + "<tr><td align=center>\n" . -$configfile = "../config/global.php"; -$spamlistfile = "../config/spam_list.txt"; + "<font color=$color[l0_bg]><b>Admin Center Password Change</b></font>\n" . + "<table width=240 border=0 cellpadding=2>\n" . + "<tr bgcolor=$color[l0_bg]><form method=POST action=\"act.php\">\n" . + "<td><font color=$color[l0_fg]>Passwd</font></td>\n" . + "<td align=center><input type=password name=admincenter_pass size=$size></td>\n" . + "</tr>\n" . -# global -$global_con = readfile_r ($configfile); -$global_con = preg_replace ("/<\?|\?>/i","",$global_con); + "<tr bgcolor=$color[l0_bg]>\n" . + "<td><font color=$color[l0_fg]>Re Passwd</font></td>\n" . + "<td align=center><input type=password name=readmincenter_pass size=$size></td>\n" . + "</tr>\n" . -# spam list -if ( file_exists ($spamlistfile) ) $spamlist = readfile_r ($spamlistfile); -else $spamlist = "spam_list.txt is not found into jsboard/config"; + "<tr>\n<td colspan=2 align=center>\n" . + "<input type=submit value=$langs[b_sm]>\n" . + "<input type=reset value=$langs[b_reset]>\n" . + "</td>\n</tr>\n" . -$global_con = trim ($global_con); -$spamlist = trim ($spamlist); -?> + "<input type=hidden name=mode value=manager_config>\n" . + "</form>\n\n</table>\n" . + + "<br>\n<font color=#999999 size=-1>\n"; + + copyright($copy); + + echo "</font>\n\n</td></tr>\n</table>\n" . + "<!----------------- Follow is HTML_TAIL ---------------------->\n"; +} else if ($mode == "global") { + + $configfile = "../config/global.ph"; + $spamlistfile = "../config/spam_list.txt"; + + // global + $global_con = get_file("../config/global.ph"); + + // spam list + if(file_exists("../config/spam_list.txt")) $spamlist = get_file("../config/spam_list.txt"); + else $spamlist = "jsboard/config spam_list.txt ʽϴ"; -<br> -<form name="global_chg" method="post" action="act.php"> -<table border=0 cellpadding=2 cellspacing=1 width="100%"> -<tr><td class="gbtitle"> - -<table border=0 cellpadding=1 cellspacing=1 width="100%"> -<tr><td class="gbtitle">Global Configuration</td></tr> -<tr><td class="gbbackground"> -<textarea name="glob[vars]" rows=25 cols="<?=$textsize?>"><?=$global_con?></textarea> -</td></tr> - -<tr><td class="gbtitle">SPAMER LIST</td></tr> -<tr><td class="gbbackground">&nbsp; -<div class="spamcomment"><?=$_('spamer_m')?></div> -<center><textarea name="glob[spam]" rows=10 cols="<?=$textsize?>"><?=$spamlist?></textarea></center> -</td></tr> - -<tr><td align="center"> -<input type="submit" value="<?=$_('b_sm')?>"> -<input type="reset" value="<?=$_('b_reset')?>"> -<input type="hidden" name="mode" value="global_chg"> -</td></tr> -</table> - -</td></tr> -</table> -</form> - -<? htmltail (); ?> + // + if(file_exists("../config/allow_browser.txt")) $allow_br = get_file("../config/allow_browser.txt"); + else $allow_br = "jsboard/config allow_browser.txt ʽϴ"; + + $global_con = trim($global_con); + $spamlist = trim($spamlist); + $allow_br = trim($allow_br); + + echo "<form name='global_chg' method='post' action='act.php'>\n" . + "<table border=0 cellpadding=2 cellspacing=1 width=100%>\n" . + "<tr><td bgcolor=$color[l0_bg] align=center>\n\n" . + "<table border=0 cellpadding=1 cellspacing=1 width=100%>\n" . + "<tr><td align=center><font color=$color[l0_fg]><b>Global Configuration</b></font></td></tr>\n" . + "<tr><td bgcolor=white align=center>&nbsp;\n" . + "<textarea name=glob[vars] rows=25 cols=\"$textsize\">$global_con</textarea>\n" . + "</td></tr>\n\n<tr><td align=center><font color=$color[l0_fg]><b>Theme Configuration</b></font></td></tr>\n" . + "\n<tr><td bgcolor=$color[bgcol] align=center>\n"; + + // theme list + get_theme_list("glob[theme]",6); + + echo "</td></tr>\n\n" . + "<tr><td align=center><font color=$color[l0_fg]><b>SPAMER LIST</b></font></td></tr>\n" . + "<tr><td bgcolor=white>&nbsp;\n" . + "<br><font color=$color[l0_bg]>$langs[spmaer_m]</font><p>" . + "<center><textarea name=glob[spam] rows=10 cols=\"$textsize\">$spamlist</textarea></center>\n</td></tr>\n\n" . + "<tr><td align=center><font color=$color[l0_fg]><b>Allow Browser LIST</b></font></td></tr>\n" . + "<tr><td bgcolor=white>&nbsp;\n" . + "<br><font color=$color[l0_bg]>$langs[brlist_m]</font><p>" . + "<center><textarea name=glob[brlist] rows=5 cols=\"$textsize\">$allow_br</textarea></center>\n" . + "</td></tr>\n\n<tr><td align=center>\n" . + "<input type=submit value=$langs[b_sm]>\n" . + "<input type=reset value=$langs[b_reset]>\n" . + "<input type=hidden name=mode value=global_chg>\n" . + "</td></tr>\n</table>\n\n" . + "</td></tr>\n</table>\n</form>\n"; +} + +htmltail(); + +?> diff --git a/admin/auth.php b/admin/auth.php new file mode 100644 index 00000000..5776386f --- /dev/null +++ b/admin/auth.php @@ -0,0 +1,44 @@ +<?php +@include("./include/admin_head.ph"); + +htmlhead(); + +// input size browser ߱ +$size = form_size(9); + +echo " +<table width=100% height=100%> +<tr><td align=center valign=center> + +<table width=80% border=0> +<tr align=center><td bgcolor=$color[l1_bg]><font id=title>JSBoard Admin Login</font></td></tr> + +<tr align=center><td><p><br><br> +<form name=auth method=POST action=session.php> +$langs[ua_ment]<br> +<input type=password name=logins size=$size> +<input type=hidden name=mode value=login> +</form> + +<form name=reset method=POST action=session.php> +<input type=hidden name=mode value=logout> +$langs[a_reset] <input type=submit name=reset value=reset> +<br><br><br> +</td></tr> + +<tr align=center><td bgcolor=$color[l1_bg]> +<font color=$color[l1_fg]> +Scripted by <a href=mailto:admin@oops.org>JoungKyun Kim</a><br> +and all right reserved +</font> +</td></tr> +</table> + +</td></tr> +</table> + +</form>\n"; + +htmltail(); + +?> diff --git a/admin/include/admin_head.ph b/admin/include/admin_head.ph new file mode 100644 index 00000000..0d93ccc7 --- /dev/null +++ b/admin/include/admin_head.ph @@ -0,0 +1,21 @@ +<? +// session +session_start(); +@include("./include/config.ph"); +@include("../config/global.ph"); + +$path[type] = "admin"; + +@include("../include/error.ph"); +@include("../include/lang.ph"); +@include("../include/exec.ph"); +@include("../include/get.ph"); +@include("./include/print.ph"); +@include("./include/check.ph"); +@include("./include/get.ph"); +@include("./include/first_reg.ph"); + +// ⺻ ׸ б +if(file_exists("../config/default.themes") && $color[theme]) + { include("../config/default.themes"); } +?> 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 @@ -<?php -# $Id: admin_head.php,v 1.10 2009-11-16 21:52:46 oops Exp $ -$_pself = $_SERVER['PHP_SELF']; -$sadmin['pern'] = 10; -if($path['type'] == "user_admin") { - $dpath = ".."; - $ipath = "../.."; -} else { - $dpath = "."; - $ipath = ".."; -} - -set_magic_quotes_runtime(0); -ini_set('magic_quotes_gpc', 1); -ini_set('magic_quotes_sybase', 0); -ini_set ('track_errors', 1); - -$_ = '_lang'; - -include_once "$ipath/include/variable.php"; -include_once "$ipath/include/error.php"; -include_once "$ipath/include/check.php"; -include_once "$ipath/include/get.php"; -include_once "$ipath/include/print.php"; -if ( ! check_windows () ) { - include_once "$ipath/include/exec.php"; -} - -# GET/POST -parse_query_str(); - -$agent = get_agent(); - -if ( ! @file_exists ("{$ipath}/config/global.php") ) { - echo "<script type=\"text/javascript\">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/check.ph b/admin/include/check.ph new file mode 100644 index 00000000..e2307ae1 --- /dev/null +++ b/admin/include/check.ph @@ -0,0 +1,67 @@ +<? + +// Խ ڿ Ǵ Password Լ +// crypt() - crypt ȣȭ Ѵ. +// +function compare_pass($pass,$l) { + global $langs; + if (!$l[pass]) print_pwerror($langs[ua_pw_n]); + if (crypt($l[pass],$pass[passwd]) != $pass[passwd]) print_pwerror($langs[ua_pw_c]); +} + +// Խǿ DB Ǿ ˻ +// +function exsit_dbname_check($db) { + global $langs; + if(!$db) { + echo "<table width=100% height=100%>\n<tr>\n" . + "<td align=center><b><br><br>$langs[nodb]<br><br><br></b></td>\n" . + "</tr></table>"; + exit; + } +} + +// Խ ̸ ˻ ƾ +// +function table_name_check($table) { + global $langs; + $table = trim($table); + + if(!$langs[n_t_n]) { + $langs[n_t_n] = "Table Name Missing! You must select a table"; + $langs[n_db] = "Board name must start with an alphabet"; + $langs[n_meta] = "Can't use special characters except alphabat, numberlic, _, - charcters"; + $langs[n_promise] = "Cat't use table name as &quot;as&quot;"; + } + + if (!$ck && !$table) print_error($langs[n_t_n]); + if (!eregi("^[a-zA-Z]",$table)) print_error($langs[n_db]); + if (eregi("[^a-z0-9_\-]",$table)) print_error($langs[n_meta]); + if (eregi("^as$",$table)) print_error($langs[n_promise]); +} + +// table list üũ +// +function table_list_check($db) { + global $langs; + if(!mysql_list_tables($db)) { + echo("<table width=100% height=100%>\n<tr>\n" . + "<td align=center><b><br><br>$langs[n_acc]<br><br><br></b></td>\n" . + "</tr>\n</table> "); + exit; + } else return $tbl_list; +} + +// Խ ̸ Խ ̹ ϴ +// +function same_db_check($list, $table) { + global $langs; + $tbl_num=mysql_num_rows($list); + for($k=0;$k<$tbl_num;$k++) { + // table list ҷ ɴϴ. + $table_name = mysql_tablename($list,$k); + if ($table == $table_name) print_error($langs[a_acc]); + } +} + +?> diff --git a/admin/include/first_reg.ph b/admin/include/first_reg.ph new file mode 100644 index 00000000..6928cb62 --- /dev/null +++ b/admin/include/first_reg.ph @@ -0,0 +1,11 @@ +<? +// ο Խ ÿ 1۷ ϵ +$date = time(); +$host_ext = "127.0.0.1"; +$name_ext = "$langs[first1]"; +$passwd_ext = "lHJTjGW8VhHc."; +$email_ext = ""; +$url_ext = "http://www.oops.org"; +$subj_msg = "$langs[first2]"; +$text_msg = "$langs[first3]"; +?> 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 @@ -<?php -# $Id: first_reg.php,v 1.2 2009-11-16 21:52:46 oops Exp $ -# ο Խ ÿ 1۷ ϵ -$_dr['d'] = time(); -$_dr['h'] = '127.0.0.1'; -$_dr['n'] = _lang ('first1', $_code); -$_dr['p'] = $ostype['dpass']; -$_dr['e'] = ''; -$_dr['u'] = 'http://jsboard.kldp.net'; -$_dr['s'] = _lang ('first2', $_code); -$_dr['b'] = _lang ('first3', $_code); -?> diff --git a/admin/include/get.ph b/admin/include/get.ph new file mode 100644 index 00000000..2704e1bd --- /dev/null +++ b/admin/include/get.ph @@ -0,0 +1,61 @@ +<? +// ݽ ͽ FORM Էâ ũ ̸ ϱ +// intval - ȯ +// http://www.php.net/manual/function.intval.php +function form_size($size, $print = 0) { + global $langs; + + # Ŭ̾Ʈ Լ (include/get_info.ph) + $agent = get_agent(); + + # ׽ + if($agent[br] == "MOZL") { + if($agent[os] == "NT") { + if($agent[ln] == "KO") $size *= 1.1; # ѱ + else { + if ($langs[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") $size *= 1.0; + } + + # ׽ 6 + if($agent[br] == "MOZL6") { + if($agent[os] == "NT") { + if($agent[ln] == "KO") $size *= 1.1; # ѱ + else { + if ($langs[code] == "ko") $size *= 2.3; + else $size *= 1.4; + } + } else $size *= 1.3; + } + + # ͳ ͽ÷η + if($agent[br] == "MSIE") { + if ($agent[os] == "NT") + if ($langs[code] == "ko") $size *= 2.3; + else $size *= 2.6; + else $size *= 2.3; + } + + if($agent[br] == "LYNX") $size *= 2; + + $size = intval($size); + if($print) echo $size; + + return $size; +} + +// file Լ +function get_file($filename) { + $fp = fopen($filename,"r"); + $getfile = fread($fp, filesize($filename)); + fclose($fp); + + return $getfile; +} + +?> diff --git a/admin/include/html_ahead.ph b/admin/include/html_ahead.ph new file mode 100644 index 00000000..d435055a --- /dev/null +++ b/admin/include/html_ahead.ph @@ -0,0 +1,45 @@ +<!-- =============================== A foreword =============================== --> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<? echo $langs[charset] ?>"> +<TITLE>OOPS Administration Center <? echo $copy[version] ?> [ +<? + if (!eregi("admin",$file_lo)) echo get_title(); + else echo "$sub_title"; +?> ]</TITLE> +<STYLE TYPE="text/css"> +<!-- +A:link, A:visited, A:active { TEXT-DECORATION: none; } +A:hover { TEXT-DECORATION: underline; } +TD { FONT: 10pt <? echo $langs[font] ?>; } +INPUT {font: 9pt <? echo $langs[font] ?>; BACKGROUND-COLOR:<? echo $color[n2_bg] ?>; COLOR:<? echo $color[n2_fg] ?>; BORDER:2x solid <? echo $color[l1_bg] ?>} +TEXTAREA {font: 10pt <? echo $langs[font] ?>; BACKGROUND-COLOR:<? echo $color[n2_bg] ?>; COLOR:<? echo $color[n2_fg] ?>; BORDER:2x solid <? echo $color[l1_bg] ?>} + #radio {font: 9pt <? echo $langs[font] ?>; BACKGROUND-COLOR:<? echo $color[bgcol] ?>; COLOR:<? echo $color[l0_bg] ?>; BORDER:1x solid <? echo $color[bgcol] ?>} + #title {font:20pt <? echo $langs[font] ?>; color:<? echo $color[n0_bg] ?>} +--> +</STYLE> +<? +if(eregi("auth.php",$PHP_SELF)) { + $onload = " onLoad=InputFocus()"; + echo "<SCRIPT language=JavaScript>\n". + "<!--\n function InputFocus() {\n". + " document.auth.logins.focus();\n". + " return;\n". + "}\n//-->\n". + "</SCRIPT>"; +} +?> +</HEAD> + +<? +echo "<BODY BACKGROUND=\"$color[image]\" BGCOLOR=\"$color[bgcol]\" TEXT=\"$color[text]\" LINK=\"$color[link]\" VLINK=\"$color[vlink]\" ALINK=\"$color[alink]\"$onload>"; +?> + +<BR> +<? +if($table) { + table_name_check($table); + if(file_exists("data/$table/html_head.ph")) { @include("data/$table/html_head.ph"); } +} +?> +<!-- =============================== A foreword =============================== --> 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 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- =============================== A foreword =============================== --> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=<?=$_('charset')?>"> -<? -switch ($path['type']) { - case 'user_admin' : - $csspath = '../..'; - break; - case 'admin' : - $csspath = '..'; - break; - default : - $csspath = '.'; -} - - if ( ! preg_match ('/admin/i', $file_lo) ) $_title = get_title(); - else $_title = $sub_title; -?> -<title>JSBoard Administration Center [ <?=$_title?> ]</title> -<link rel="stylesheet" type="text/css" href="<?=$csspath?>/theme/<?=$print['theme']?>/default.css"> -<STYLE TYPE="text/css"> -<!-- -a:link, a:visited, a:active { text-decoration: none; color:<?=$color['text']?> } -a:hover { text-decoration: underline; color:<?=$color['text']?> } -body, td { font: 12px <?=$_('font')?>; color:<?=$color['text']?>; } -input {font: 9pt <?=$_('font')?>; background-color:<?=$color['b_bg']?>; color:<?=$color['text']?>; border:1x solid <?=$color['n1_fg']?>} -textarea {font: 10pt <?=$_('font')?>; background-color:<?=$color['l4_bg']?>; color:<?=$color['l4_fg']?>; border:1x solid <?=$color['l4_gu'] ?>} -form { display: inline; } - #radio {font: 9pt <?=$_('font')?>; background-color:<?=$color['bgcol']?>; color:<?=$color['l0_bg']?>; border:1x solid <?=$color['bgcol'] ?>} - #title {font:20pt <?=$_('font')?>; color:<?=$color['n0_bg']?>} ---> -</style> -<!-- $Id: html_ahead.php,v 1.2 2009-11-16 21:52:46 oops Exp $ --> -</head> - -<body bgcolor="<?=$color['b_bg']?>"> - -<?php -if($table) { - table_name_check ($table); - if ( file_exists ("data/{$table}/html_head.php") ) { - require_once "data/{$table}/html_head.php"; - } -} -?> -<!-- =============================== A foreword =============================== --> diff --git a/admin/include/html_atail.ph b/admin/include/html_atail.ph new file mode 100644 index 00000000..1ba56a32 --- /dev/null +++ b/admin/include/html_atail.ph @@ -0,0 +1,6 @@ +<!-- =============================== Tail =============================== --> + +<? if(file_exists("data/$table/html_tail.ph")) { @include("data/$table/html_tail.ph"); } ?> + +</BODY> +</HTML> 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 @@ -<!-- =============================== Tail =============================== --> - -<?php if(file_exists("data/$table/html_tail.php")) { include "data/$table/html_tail.php"; } ?> - -</body> -</html> 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 @@ -<?php -# $Id: lib.php,v 1.2 2009-11-16 21:52:46 oops Exp $ - -# Խǿ DB Ǿ ˻ -# -function exsit_dbname_check ( $dbname ) { - global $_, $db; - - if ( $db['type'] == 'sqlite' ) { - $db['name'] = 'sqlite'; - return 0; - } - - if ( !$dbname ) { - echo "<table width=\"100%\" style=\"height: 80%;\">\n<tr>\n" . - "<td align=\"center\"><b><br><br>" . $_('nodb') . "<br><br><br></b></td>\n" . - "</tr></table>"; - } -} - -# Խ ̸ ˻ ƾ -# -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 &quot;as&quot;'; - } 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 = "<BR>[ SECURITY WARNING!! ] - jsboard don't permit"; - $target = array("/<(\?|%)/i","/(\?|%)>/i","/<(\/?embed[^>]*)>/i","/<(IMG[^>]*SRC=[^\.]+\.(ph|asp|htm|jsp|cgi|pl|sh)[^>]*)>/i"); - $remove = array("<xmp>","","$perment <\\1>
","$perment <\\1>
"); - - if(preg_match("/ diff --git a/admin/include/print.ph b/admin/include/print.ph new file mode 100644 index 00000000..da0bb614 --- /dev/null +++ b/admin/include/print.ph @@ -0,0 +1,166 @@ +\n" . + "\n"; +} + +// Copyright +// +function copyright($copy) { + global $langs; + echo "Scripted by $copy[name]
\n" . + "and all right reserved\n"; +} + + +// Admin Center н ΰ н尡 Ʋ +// +function admin_pass_error() { + global $langs; + print_error($langs[p_dp]); +} + +// Admin Center Ϸ ޼ +// +function complete_adminpass() { + global $langs; + echo ""; + exit; +} + +// theme list ҷ Լ for global ȭ +// +// explode() - ù° ڸ ڷ 迭 +// eregi_replace() - ִ ù° ڸ ι° ڷ +// strtoupper() - ڿ ҹڸ 빮ڷ +function get_theme_list($name,$num, $path = "../config") { + global $table, $color, $PHP_SELF, $langs, $exec; + + // link ´. + if (!eregi("uadmin.php",$PHP_SELF)) { + if (file_exists("$path/default.themes")) { $dtheme = readlink("$path/default.themes"); } + } else { + if (file_exists("../../data/$table/default.themes")) { $dtheme = readlink("../../data/$table/default.themes"); } + } + + // Theme ̸ ´. + $dtheme = eregi_replace("(themes|config|\/|\.)","",$dtheme); + + // Theme list ޾ƿ´. + + $p = opendir("$path/themes"); + while($i = readdir($p)) { + if($i != "." && $i != ".." && $i != "default.themes") $theme[] = $i; + } + closedir($p); + +// exec("$exec[ls] $path/themes | $exec[grep] themes",$theme); + + + $until = sizeof($theme); + + for ($i=0; $i < $until; $i++) { + $nt[$i] = eregi_replace("(themes|\.)","",$theme[$i]); + if ($nt[$i] == $dtheme) { + $checked = " checked"; + $fc = ""; + $fc_e = ""; + } else { + $checked = ""; + $fc = ""; + $fc_e = ""; + } + $themeS = strtoupper($nt[$i]); + + $br = $i+1; + $br = $br/$num; + $bt = explode(".",$br); + + if (!$bt[1]) $brtag = "
"; + else $brtag = ""; + + if (eregi("uadmin.php",$PHP_SELF)) $radio_c = "radio1"; + else $radio_c = "radio"; + + if ($themeS && $themeS != "DEFAULT") + echo "$fc$themeS$fc_e $brtag\n"; + } + if (!$dtheme) echo "$lnags[p_nd]"; + +} + +function err_msg($str = "Ocourrenct unknown error",$mode = 0) { + echo "\n"; + if (!$mode) die; +} + +// ϴ ̵Ű Լ +function move_page($path,$time = 0) { + echo ""; +} + +function get_lang_list($code) { + $p = opendir("../../include/LANG"); + while($i = readdir($p)) { + if(eregi("[a-z]{2}\.ph$",$i)) $langslist[] = $i; + } + closedir($p); + + $until = sizeof($langslist); + + for($i=0; $i < $until; $i++) { + $file = explode(".",$langslist[$i]); + + if ($file[0] == $code) $checks = "checked"; + else $checks = ""; + echo "$file[0]"; + } +} + +// н ϸ ϰԲ ޽ Ѹ :-) +function print_chgpass($pass) { + global $langs; + if ($pass == "0000") print_notice($langs[p_chm],250,35); +} + +?> 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/index.php b/admin/index.php index 4d7f0e63..133ec713 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1 +1 @@ - + 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/session.php b/admin/session.php new file mode 100644 index 00000000..87580b16 --- /dev/null +++ b/admin/session.php @@ -0,0 +1,14 @@ + 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 index 4ac6f73a..12c3adda 100644 --- a/admin/stat.php +++ b/admin/stat.php @@ -1,229 +1,288 @@ - - - - - -\n\n" . + "\n
-JSBoard [ DB ] Statistics -
- - -
- \nalert('Don\'t exist global\\nconfiguration file');\n" . + "history.back();\nexit;\n\n"; +} else { @include("../config/global.ph"); } +if ($color[theme]) { @include("../config/default.themes"); } + +@include("../include/lang.ph"); +@include("../include/check.ph"); +@include("../include/error.ph"); +@include("../include/get.ph"); +@include("../include/sql.ph"); +@include("include/check.ph"); +@include("include/config.ph"); + +// password Լ - admin/include/check.ph +compare_pass($sadmin,$login); + +# table üũѴ. +table_name_check($table); + +@include("../data/$table/config.ph"); +if ($color[theme]) { @include("../data/$table/default.themes"); } + +require("include/html_ahead.ph"); + +echo "\n" . + "\n\n" . + "\n\n". - "\n
JSBoard [ $table DB ] Statistics
\n" . + "\n\n


"; + +sql_connect($db[server], $db[user], $db[pass]); +sql_select_db($db[name]); + +function get_stat($table, $interval) +{ + global $debug; $debug = 1; - $intv = ( $interval == 0) ? 0 : time () - $interval; + if($interval == 0) $intv = 0; + else $intv = time() - $interval; - # ü - $result = sql_query ("SELECT COUNT(*) as co FROM $table WHERE date > '$intv'", $c); - $count['all'] = sql_result ($result, 0, 'co'); - sql_free_result ($result); + // ü + $result = sql_query("SELECT COUNT(*) FROM $table WHERE date > $intv"); + $count[all] = sql_result($result, 0, "COUNT(*)"); + 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); + // + $result = sql_query("SELECT COUNT(*) FROM $table WHERE date > $intv AND reno != 0"); + $count[rep] = sql_result($result, 0, "COUNT(*)"); + sql_free_result($result); - # - $count['nor'] = $count['all'] - $count['rep']; + // + $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 LIMIT 0, 1"); + $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); + // + $result = sql_query("SELECT * FROM $table WHERE date > $intv ORDER BY no DESC LIMIT 0, 1"); + $article[max] = sql_fetch_array($result); + sql_free_result($result); - if($interval) $article['time'] = $interval; - else $article['time'] = $article['max']['date'] - $article['min']['date']; + 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); + // ְ ȸ + $result = sql_query("SELECT MAX(refer) FROM $table WHERE date > $intv"); + $refer[max] = sql_result($result, 0, "MAX(refer)"); + 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); + // ְ ȸ ȣ + if($refer[max]) { + $result = sql_query("SELECT no FROM $table WHERE refer = $refer[max] AND date > $intv"); + $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'); + // ȸ + $result = sql_query("SELECT MIN(refer) FROM $table WHERE date > $intv"); + $refer[min] = sql_fetch_array($result, 0, "MIN(refer)"); 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'); + // ȸ հ + $result = sql_query("SELECT SUM(refer) FROM $table WHERE date > $intv"); + $refer[total] = sql_result($result, 0, "SUM(refer)"); sql_free_result($result); - # ȸ - if($count['all']) $refer['avg'] = intval($refer['total'] / $count['all']); + // ȸ + if($count[all]) { + $refer[avg] = intval($refer[total] / $count[all]); + } - $stat['count'] = $count; - $stat['refer'] = $refer; - $stat['artic'] = $article; - $stat['name'] = $name; +/* + // ۾ + $result = sql_query("SELECT COUNT(*) AS COUNT, name FROM $table WHERE date > $intv GROUP BY name ORDER BY COUNT DESC LIMIT 0, 4"); + while($list = sql_fetch_array($result)) { + $name[] = $list; + } + sql_free_result($result); +*/ + + $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']); +function display_stat($stat, $title) +{ + global $table, $color; + + $count = $stat[count]; + $refer = $stat[refer]; + $article = $stat[artic]; + $name = $stat[name]; + +/* + $str[name] = sprintf(" +
+ + + + "); +for($i = 0; $i < 4; $i++) { + if($count[all] == 0) { + $per[nam] = 0; + } else { + $per[nam] = 100 * ($name[$i][COUNT] / $count[all]); + } + + $str[name] .= sprintf(" + + + + ", $name[$i][name], $name[$i][COUNT], $per[nam]); +} + $str[name] .= sprintf(" + +
۾
%s%d %0.2f%%
+
\n"); +*/ + + 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]; + } + + if($count[nor] == 0) { + $per[per] = $per[rep] * $count[rep]; + } else { + $per[per] = 100 * ($count[rep] / $count[nor]); + } + + $str[count] = sprintf(" +
+ + + + + + + + + + + + + + + + + + + +
%d %0.2f%%
%d %0.2f%%
%0.2f%%
հ%d
+
\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(" +
+ + + + + + + + + + + + + + + + +
Ҵ%0.2f
%0.2f
%0.2f
%0.2f
+
\n", + $for[year],$for[month],$for[day],$for[hour]); + + $str[refer] = sprintf(" +
+ + + + + + + + + + + + + + + + +
ȸ
ְ%d
۹ȣ%d
%0.2f
հ%d
+
\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*7); +display_stat($stat," "); -# -$stat = get_stat ($table, 60*60*24*30); -display_stat ($stat, $_('st_lmonth')); +// +$stat = get_stat($table, 60*60*24*30); +display_stat($stat," "); -# ݳ⺰ -$stat = get_stat ($table, 60*60*24*30*6); -display_stat ($stat, $_('st_lhalfyear')); +// ݳ⺰ +$stat = get_stat($table, 60*60*24*30*6); +display_stat($stat," "); -# ⺰ -$stat = get_stat ($table, (60*60*24*30*12) + (60*60*24*5)); -display_stat ($stat, $_('st_lyear')); +// ⺰ +$stat = get_stat($table, (60*60*24*30*12) + (60*60*24*5)); +display_stat($stat," "); -# ü -$stat = get_stat ($table, 0); -display_stat ($stat, $_('st_ltot')); +// ü +$stat = get_stat($table, 0); +display_stat($stat," ü"); -echo "\n
\n

\n". - "Copyright by JSBoard Open Project
\n". - "and all right reserved\n
\n"; +echo "\n
\n
\n\n" . + "Copyright by JSBoard Open Project
\n" . + "and all right reserved\n
\n
\n"; -htmltail(); +require("include/html_atail.ph"); ?> diff --git a/admin/user_admin/act.php b/admin/user_admin/act.php index 4d4cab66..257f5dc7 100644 --- a/admin/user_admin/act.php +++ b/admin/user_admin/act.php @@ -1,418 +1,536 @@ alert('Don't exist Global configuration file')\n" . + "history.back()"; + die; +} else { @include("../../config/global.ph"); } +@include("../include/config.ph"); + +if (@file_exists("../../data/$table/config.ph")) + { @include("../../data/$table/config.ph"); } + +@include "../../include/lang.ph"; +@include("../include/print.ph"); +@include("../include/get.ph"); + +if (crypt($login[pass],$sadmin[passwd]) != $sadmin[passwd]) { + if (!$passwd) err_msg("$langs[ua_pw_n]"); + else { + $loginpass = crypt($passwd,$admin[passwd]); + $sloginpass = crypt($passwd,$sadmin[passwd]); + } -# header tail ġȯ -$ua['header'] = $uaheader; -$ua['tail'] = $uatail; -$ua['style'] = $uastyle; + if ($loginpass != $admin[passwd] && $sloginpass != $sadmin[passwd]) + err_msg("$langs[ua_pw_c]"); +} -if(!session_is_registered("$jsboard") || (!$board['adm'] && $board['super'] != 1)) - print_error($_('login_err')); +// password ƾ +if ($ua[passwd] && $ua[passwd] == $ua[repasswd]) { + $passwd = crypt($ua[passwd],$admin[passwd]); + $passwd = str_replace("\$","\\\$",$passwd); + if ($passwd != $admin[passwd]) $chg[passwd] = "$passwd"; + else $chg[passwd] = "$admin[passwd]"; +} else { + $chg[passwd] = "$admin[passwd]"; + if ($ua[passwd]) err_msg("$pang[ua_pw_comp]",1); +} -$c = sql_connect($db['rhost'], $db['user'], $db['pass'], $db['name']); -# password Լ - admin/include/auth.php -compare_pass ($_SESSION[$jsboard]); +// +if ($ua[code] != $langs[code]) $chg[code] = "$ua[code]"; +else $chg[code] = "$langs[code]"; -## checking @@ -if( $ua['comment'] ) { - require_once '../../include/parse.php'; - if ( ! db_table_list ($c, $db['name'], '', $table.'_comm') ) { - $cret_comm = sql_parser ($db['type'], 'comment', $table, 2); - foreach ( $cret_comm as $_sql ) - sql_query ($_sql, $c); - } +// Permission Check +if ($ua[write]) $chg[write] = 1; +else $chg[write] = 0; - if ( ! field_exist_check ($c, $db['name'], $table, 'comm')) { - # comm field ߰ - sql_query ('ALTER TABLE ' . $table . ' add comm int(6) DEFAULT 0', $c); - # comm field key ߰ - sql_query ('ALTER TABLE ' . $table . ' add key (comm)', $c); - } - - sync_comment ($table."_comm", $table); -} +if ($ua[edit]) $chg[edit] = 1; +else $chg[edit] = 0; -sql_close($c); +if ($ua[reply]) $chg[reply] = 1; +else $chg[reply] = 0; -# auth value check -$ua['ad'] = !trim($ua['ad']) ? "admin" : $ua['ad']; -$ua['rnname'] = !trim($ua['rnname']) ? 0 : $ua['rnname']; -$ua['dopage'] = trim($ua['dopage']) ? $ua['dopage'] : "{$board['path']}login.php?table=$table"; +if ($ua[delete]) $chg[delete] = 1; +else $chg[delete] = 0; -# Permission Check -if($ua['pre']) $chg['pre'] = 1; -else $chg['pre'] = 0; +if ($ua[pre]) $chg[pre] = 1; +else $chg[pre] = 0; -if($ua['pren'] && $ua['pren'] != $enable['pren']) $chg['pren'] = $ua['pren']; +if ($ua[pren] && $ua[pren] != $enable[pren]) $chg[pren] = $ua[pren]; else { - if($enable['pren']) $chg['pren'] = $enable['pren']; - else $chg['pren'] = 50; + if ($enable[pren]) $chg[pren] = $enable[pren]; + else $chg[pren] = 50; } -# Option of include original message in reply -$chg['ore'] = $ua['ore'] ? 1 : 0; +// Option of include original message in reply +if ($ua[ore]) $chg[ore] = 1; +else $chg[ore] = 0; -# Option of print conjunct list when reply -$chg['re_list'] = $ua['re_list'] ? 1 : 0; +// Option of print conjunct list when reply +if ($ua[re_list]) $chg[re_list] = 1; +else $chg[re_list] = 0; -# Option of print comment function -$chg['comment'] = $ua['comment'] ? 1 : 0; +// Board Basic Configuration +if ($ua[title] && $ua[title] != $board[title]) + $chg[title] = "$ua[title]"; +else $chg[title] = "$board[title]"; -# Option of print emoticon function -$chg['emoticon'] = $ua['emoticon'] ? 1 : 0; +if ($ua[wrap] && $ua[wrap] != $board[wrap]) + $chg[wrap] = "$ua[wrap]"; +else $chg[wrap] = "$board[wrap]"; -if ( ! trim ($ua['tag']) ) - $ua['tag'] = 'b,i,u,ul,ol,li,span,font,table,tr,td'; -else - $ua['tag'] = preg_replace ('/[<\s\/>]/', '', $ua['tag']); +if ($ua[cmd] != $board[cmd]) $chg[cmd] = "$ua[cmd]"; +else $chg[cmd] = "$board[cmd]"; -# Board Basic Configuration -if($ua['title'] && $ua['title'] != $board['title']) - $chg['title'] = "{$ua['title']}"; -else $chg['title'] = "{$board['title']}"; +if ($ua[img] != $board[img]) $chg[img] = "$ua[img]"; +else $chg[img] = "$board[img]"; -if($ua['width'] && $ua['width'] != $board['width']) - $chg['width'] = "{$ua['width']}"; -else $chg['width'] = "{$board['width']}"; +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[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[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[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[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']}"; +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; +// Board Basic Color Configuration +if ($ua[bgimage] != $color[image]) + $chg[bgimage] = "$ua[bgimage]"; +else $chg[bgimage] = "$color[image]"; -# Mail Configuration -if($ua['admin'] != $rmail['admin']) $chg['admin'] = "{$ua['admin']}"; -else $chg['admin'] = "{$rmail['admin']}"; +if ($ua[theme] != $color[theme]) + $chg[theme] = "$ua[theme]"; +else $chg[theme] = "$color[theme]"; -if($ua['user'] != $rmail['user']) $chg['user'] = "{$ua['user']}"; -else $chg['user'] = "{$rmail['user']}"; +if ($ua[bgcol] && $ua[bgcol] != $color[bgcol] && !$ua[theme]) + $chg[bgcol] = "$ua[bgcol]"; +else $chg[bgcol] = "$color[bgcol]"; -if($ua['toadmin'] && $ua['toadmin'] != $rmail['toadmin']) - $chg['toadmin'] = "{$ua['toadmin']}"; -else $chg['toadmin'] = "{$rmail['toadmin']}"; +if ($ua[text] && $ua[text] != $color[text] && !$ua[theme]) + $chg[text] = "$ua[text]"; +else $chg[text] = "$color[text]"; -# 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']; +if ($ua[link] && $ua[link] != $color[link] && !$ua[theme]) + $chg[link] = "$ua[link]"; +else $chg[link] = "$color[link]"; -# ETC Configuration -if($ua['url'] != $view['url']) $chg['url'] = "{$ua['url']}"; -else $chg['url'] = "{$view['url']}"; +if ($ua[vlink] && $ua[vlink] != $color[vlink] && !$ua[theme]) + $chg[vlink] = "$ua[vlink]"; +else $chg[vlink] = "$color[vlink]"; -if($ua['email'] != $view['email']) $chg['email'] = "{$ua['email']}"; -else $chg['email'] = "{$view['email']}"; +if ($ua[alink] && $ua[alink] != $color[alink] && !$ua[theme]) + $chg[alink] = "$ua[alink]"; +else $chg[alink] = "$color[alink]"; -if($ua['d_name'] && $ua['d_name'] != $ccompare['name']) - $chg['d_name'] = "{$ua['d_name']}"; -else $chg['d_name'] = "{$ccompare['name']}"; +if ($ua[n0_fg] && $ua[n0_fg] != $color[n0_fg] && !$ua[theme]) + $chg[n0_fg] = "$ua[n0_fg]"; +else $chg[n0_fg] = "$color[n0_fg]"; -if($ua['d_email'] && $ua['d_email'] != $ccompare['email']) - $chg['d_email'] = "{$ua['d_email']}"; -else $chg['d_email'] = "{$ccompare['email']}"; +if ($ua[n0_bg] && $ua[n0_bg] != $color[n0_bg] && !$ua[theme]) + $chg[n0_bg] = "$ua[n0_bg]"; +else $chg[n0_bg] = "$color[n0_bg]"; -$chg['dhyper'] = $ua['dhyper'] ? 1 : 0; -$chg['plink'] = parse_ipvalue($denylink); +if ($ua[n1_fg] && $ua[n1_fg] != $color[n1_fg] && !$ua[theme]) + $chg[n1_fg] = "$ua[n1_fg]"; +else $chg[n1_fg] = "$color[n1_fg]"; -$chg['ipbl'] = parse_ipvalue($ipbl); +if ($ua[n2_bg] && $ua[n2_bg] != $color[n2_bg] && !$ua[theme]) + $chg[n2_bg] = "$ua[n2_bg]"; +else $chg[n2_bg] = "$color[n2_bg]"; -# 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']; +if ($ua[n2_fg] && $ua[n2_fg] != $color[n2_fg] && !$ua[theme]) + $chg[n2_fg] = "$ua[n2_fg]"; +else $chg[n2_fg] = "$color[n2_fg]"; -# Notice check -$chg['notice_s'] = trim($ua['notices']) ? trim($ua['notices']) : ""; -$chg['notice_c'] = trim($noti) ? trim(stripslashes($noti)) : ""; +$board[hls] = eregi_replace("STR","",$board[hls]); -$chg['notice_c'] = preg_replace("/<([\/]?FONT[^>]*)>/i","#FONT-TAG-OPEN#\\1#FONT-TAG-CLOSE#",$chg['notice_c']); -$chg['notice_c'] = htmlspecialchars($chg['notice_c']); +if ($ua[hls] && $ua[hls] != $board[hls] && !$ua[theme]) + $chg[hls] = "$ua[hls]"; +else $chg[hls] = "$board[hls]"; -$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']}; +// List Page Color Configuration +if ($ua[l0_bg] && $ua[l0_bg] != $color[l0_bg] && !$ua[theme]) + $chg[l0_bg] = "$ua[l0_bg]"; +else $chg[l0_bg] = "$color[l0_bg]"; -# α ÿ ̸ Ǹ Nickname -# ȵǾ Nickname -\$board['rnname'] = {$ua['rnname']}; +if ($ua[l0_fg] && $ua[l0_fg] != $color[l0_fg] && !$ua[theme]) + $chg[l0_fg] = "$ua[l0_fg]"; +else $chg[l0_fg] = "$color[l0_fg]"; -# α׾ƿ Ŀ ̵ -\$print['dopage'] = '{$ua['dopage']}'; +if ($ua[l1_bg] && $ua[l1_bg] != $color[l1_bg] && !$ua[theme]) + $chg[l1_bg] = "$ua[l1_bg]"; +else $chg[l1_bg] = "$color[l1_bg]"; -############################################################################### -# Խ 㰡 -############################################################################### -# -# ̸ 㰡 -\$enable['pre'] = {$chg['pre']}; -# ̸ 㰡 -\$enable['preren'] = {$chg['pren']}; +if ($ua[l1_fg] && $ua[l1_fg] != $color[l1_fg] && !$ua[theme]) + $chg[l1_fg] = "$ua[l1_fg]"; +else $chg[l1_fg] = "$color[l1_fg]"; + +if ($ua[l2_bg] && $ua[l2_bg] != $color[l2_bg] && !$ua[theme]) + $chg[l2_bg] = "$ua[l2_bg]"; +else $chg[l2_bg] = "$color[l2_bg]"; + +if ($ua[l2_fg] && $ua[l2_fg] != $color[l2_fg] && !$ua[theme]) + $chg[l2_fg] = "$ua[l2_fg]"; +else $chg[l2_fg] = "$color[l2_fg]"; + +if ($ua[l3_bg] && $ua[l3_bg] != $color[l3_bg] && !$ua[theme]) + $chg[l3_bg] = "$ua[l3_bg]"; +else $chg[l3_bg] = "$color[l3_bg]"; + +if ($ua[l3_fg] && $ua[l3_fg] != $color[l3_fg] && !$ua[theme]) + $chg[l3_fg] = "$ua[l3_fg]"; +else $chg[l3_fg] = "$color[l3_fg]"; + +if ($ua[l4_bg] && $ua[l4_bg] != $color[l4_bg] && !$ua[theme]) + $chg[l4_bg] = "$ua[l4_bg]"; +else $chg[l4_bg] = "$color[l4_bg]"; + +if ($ua[l4_fg] && $ua[l4_fg] != $color[l4_fg] && !$ua[theme]) + $chg[l4_fg] = "$ua[l4_fg]"; +else $chg[l4_fg] = "$color[l4_fg]"; + +if ($ua[td_co] && $ua[td_co] != $color[td_co] && !$ua[theme]) + $chg[td_co] = "$ua[td_co]"; +else $chg[td_co] = "$color[td_co]"; + +if ($ua[cp_co] && $ua[cp_co] != $color[cp_co] && !$ua[theme]) + $chg[cp_co] = "$ua[cp_co]"; +else $chg[cp_co] = "$color[cp_co]"; + + +// Read Page Color Configuration +if ($ua[r0_bg] && $ua[r0_bg] != $color[r0_bg] && !$ua[theme]) + $chg[r0_bg] = "$ua[r0_bg]"; +else $chg[r0_bg] = "$color[r0_bg]"; + +if ($ua[r0_fg] && $ua[r0_fg] != $color[r0_fg] && !$ua[theme]) + $chg[r0_fg] = "$ua[r0_fg]"; +else $chg[r0_fg] = "$color[r0_fg]"; + +if ($ua[r1_bg] && $ua[r1_bg] != $color[r1_bg] && !$ua[theme]) + $chg[r1_bg] = "$ua[r1_bg]"; +else $chg[r1_bg] = "$color[r1_bg]"; + +if ($ua[r1_fg] && $ua[r1_fg] != $color[r1_fg] && !$ua[theme]) + $chg[r1_fg] = "$ua[r1_fg]"; +else $chg[r1_fg] = "$color[r1_fg]"; + +if ($ua[r2_bg] && $ua[r2_bg] != $color[r2_bg] && !$ua[theme]) + $chg[r2_bg] = "$ua[r2_bg]"; +else $chg[r2_bg] = "$color[r2_bg]"; + +if ($ua[r2_fg] && $ua[r2_fg] != $color[r2_fg] && !$ua[theme]) + $chg[r2_fg] = "$ua[r2_fg]"; +else $chg[r2_fg] = "$color[r2_fg]"; + +if ($ua[r3_bg] && $ua[r3_bg] != $color[r3_bg] && !$ua[theme]) + $chg[r3_bg] = "$ua[r3_bg]"; +else $chg[r3_bg] = "$color[r3_bg]"; + +if ($ua[r3_fg] && $ua[r3_fg] != $color[r3_fg] && !$ua[theme]) + $chg[r3_fg] = "$ua[r3_fg]"; +else $chg[r3_fg] = "$color[r3_fg]"; + +if ($ua[r4_bg] && $ua[r4_bg] != $color[r4_bg] && !$ua[theme]) + $chg[r4_bg] = "$ua[r4_bg]"; +else $chg[r4_bg] = "$color[r4_bg]"; + +if ($ua[r4_fg] && $ua[r4_fg] != $color[r4_fg] && !$ua[theme]) + $chg[r4_fg] = "$ua[r4_fg]"; +else $chg[r4_fg] = "$color[r4_fg]"; + +if ($ua[r5_bg] && $ua[r5_bg] != $color[r5_bg] && !$ua[theme]) + $chg[r5_bg] = "$ua[r5_bg]"; +else $chg[r5_bg] = "$color[r5_bg]"; -# û -# 0 - 1 - û -# -\$enable['ore'] = {$chg['ore']}; +if ($ua[r5_fg] && $ua[r5_fg] != $color[r5_fg] && !$ua[theme]) + $chg[r5_fg] = "$ua[r5_fg]"; +else $chg[r5_fg] = "$color[r5_fg]"; -# б⿡ ñ ñ Ʈ -# 0 - 1 - -# -\$enable['re_list'] = {$chg['re_list']}; -# ĿƮ 뿩 -# 0 - 1 - -# -\$enable['comment'] = {$chg['comment']}; +// File Upload Configuration +if ($ua[upload] != $cupload[yesno]) $chg[upload] = "$ua[upload]"; +else $chg[upload] = "$cupload[yesno]"; -# ̸Ƽ 뿩 -# 0 - 1 - -# -\$enable['emoticon'] = {$chg['emoticon']}; +// 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]"; + + +// 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_conf = " +# Խ 㰡 , 0 - ڸ 㰡 +# 1 - 㰡 ############################################################################### -# -\$board['align'] = '{$ua['align']}'; +\$cenable[write] = $chg[write]; // ۾ 㰡 +\$cenable[reply] = $chg[reply]; // 㰡 +\$cenable[edit] = $chg[edit]; // 㰡 +\$cenable[delete] = $chg[delete]; // 㰡 +\$enable[pre] = $chg[pre]; // ̸ 㰡 +\$enable[preren] = $chg[pren]; // ̸ 㰡 ############################################################################### -# Խ ⺻ +# û ############################################################################### -# -# Խ -\$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']}; +\$enable[ore] = $chg[ore]; // 0 - 1 - û + ############################################################################### -# 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 +\$enable[re_list] = $chg[re_list]; // 0 - 1 - + ############################################################################### -# ȣƮ 0 - Failed, 1 - True +# Խ ¸ ############################################################################### -# -# IP address ( ޴ ҽ) -\$enable['dhost'] = {$ua['dhost']}; -# DNS lookup -\$enable['dlook'] = {$ua['dlook']}; -# WHOIS ˻ -\$enable['dwho'] = {$ua['dwho']}; +\$board[align] = $ua[align]; //

############################################################################### -# Theme Configuration +# Խ ⺻ ############################################################################### -# -# Theme Name -\$print['theme'] = '{$ua['theme_c']}'; +\$board[title] = \"$chg[title]\"; // Խ +\$board[wrap] = \"$chg[wrap]\"; // þ° +\$board[width] = \"$chg[width]\"; // Խ ʺ +\$board[tit_l] = $chg[tit_l]; // ʵ ִ +\$board[nam_l] = $chg[nam_l]; // ۾ ʵ ִ +\$board[perno] = $chg[perno]; // Խù +\$board[plist] = $chg[plist]; // (x2) +\$board[img] = \"$chg[img]\"; // image menu bar +\$board[cmd] = \"$chg[cmd]\"; // + +// Ű Ⱓ () +\$board[cookie] = $chg[cookie]; + + +############################################################################### +# Խ ⺻ (Theme Ҷ ) +############################################################################### + +// Theme 뿩 +\$color[theme] = $chg[theme]; // \"1\" : 밡 \"0\" : + +// Back Ground Image +\$color[image] = \"$chg[bgimage]\"; + +// HTML ⺻ +\$color[bgcol] = \"$chg[bgcol]\"; // BGCOLOR +\$color[text] = \"$chg[text]\"; // TEXT +\$color[link] = \"$chg[link]\"; // LINK +\$color[vlink] = \"$chg[vlink]\"; // VLINK +\$color[alink] = \"$chg[alink]\"; // ALINK + +\$color[n0_fg] = \"$chg[n0_fg]\"; // Ϲ +\$color[n0_bg] = \"$chg[n0_bg]\"; // Ϲ +\$color[n1_fg] = \"$chg[n1_fg]\"; // Ұ +\$color[n2_bg] = \"$chg[n2_bg]\"; // +\$color[n2_fg] = \"$chg[n2_fg]\"; // + +// ˻ ڿ ̶Ʈ (STR ˻ ڿ ġȯ) +\$board[hl] = \"STR\"; + + +// +// +// ++======+====================+========+======+========++ <-- ׵θ --+ +// || ȣ | | ۾ | ¥ | || <-- --|--+ +// |+------+--------------------+--------+------+--------+| | | +// || | | | | || <-- | | +// |+------+--------------------+--------+------+--------+| | | +// || > | RE: | | | || <-- | | +// |+------+--------------------+--------+------+--+-----+| | | +// || | | | | <--------- ö | | +// |+------+--------------------+--------+------+--+-----+| ǥ | | +// || > | RE: | | | | || | | +// ++------+--------------------+--------+------+--+-----++ | | +// | ??? , ??? ֽϴ. | <- () -|--+ +// +------------------------------------------------------+ | +// | ˻ < 1 2 3 4 > | <-+ | +// | | | | +// | ______________________ ˻ <---|---|----------+ +// +------------------------------------------------------+ | +// | | ۾ | | +-- +// ǥ +// +\$color[l0_bg] = \"$chg[l0_bg]\"; // ׵θ +\$color[l0_fg] = \"$chg[l0_fg]\"; // ׵θ +\$color[l1_bg] = \"$chg[l1_bg]\"; // +\$color[l1_fg] = \"$chg[l1_fg]\"; // +\$color[l2_bg] = \"$chg[l2_bg]\"; // +\$color[l2_fg] = \"$chg[l2_fg]\"; // +\$color[l3_bg] = \"$chg[l3_bg]\"; // +\$color[l3_fg] = \"$chg[l3_fg]\"; // +\$color[l4_bg] = \"$chg[l4_bg]\"; // ˻â +\$color[l4_fg] = \"$chg[l4_fg]\"; // ˻â + +\$color[td_co] = \"$chg[td_co]\"; // ö ǥ +\$color[cp_co] = \"$chg[cp_co]\"; // ǥ + +// +// +// ++================+=================+=================++ <-- ׵θ --+ +// || .... : || | +// |+----------------+-----------------+-----------------+| | +// || ۾ | ۾ | || <-- | +// |+----------------+-----------------+-----------------+| | +// || || | +// |+----------------+-----------------+-----------------+| | +// || || | +// || || | +// || || | +// || ۳ || | +// || || | +// || || | +// || || | +// |+----------------------------------------------------+| | +// | ˻ | | +// | ______________________ ˻ <---|--------------+ +// +------------------------------------------------------+ +// | Ϻ | | | ۾ | + +// +\$color[r0_bg] = \"$chg[r0_bg]\"; // ׵θ +\$color[r0_fg] = \"$chg[r0_fg]\"; // ׵θ +\$color[r1_bg] = \"$chg[r1_bg]\"; // +\$color[r1_fg] = \"$chg[r1_fg]\"; // +\$color[r2_bg] = \"$chg[r2_bg]\"; // +\$color[r2_fg] = \"$chg[r2_fg]\"; // +\$color[r3_bg] = \"$chg[r3_bg]\"; // ۳ +\$color[r3_fg] = \"$chg[r3_fg]\"; // ۳ +\$color[r4_bg] = \"$chg[r4_bg]\"; // +\$color[r4_fg] = \"$chg[r4_fg]\"; // +\$color[r5_bg] = \"$chg[r5_bg]\"; // ˻ +\$color[r5_fg] = \"$chg[r5_fg]\"; // ˻ ############################################################################### # file upload -# ü ڰ ⼭ yes ص ̱ Ҽ +# ü ڰ ⼭ yes ؼ Ҽ ############################################################################### -# -\$cupload['yesno'] = {$chg['upload']}; # upload -\$cupload['dnlink'] = {$chg['uplink']}; # 0: 1: ̷Ʈ ũ +\$cupload[yesno] = \"$chg[upload]\"; // upload ############################################################################### # url,email ############################################################################### -# -\$view['url'] = {$chg['url']}; -\$view['email'] = {$chg['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']}'; +\$rmail[admin] = \"$chg[admin]\"; +\$rmail[user] = \"$chg[user]\"; +\$rmail[toadmin]= \"$chg[toadmin]\"; // Խ ּ ############################################################################### -# IP Blocking -# ڴ ';' Ѵ. -# ) 1.1.1.1;2.2.2.2;3.3.3.3 +# ( : en , : ko ) ############################################################################### -\$enable['ipbl'] = '{$chg['ipbl']}'; +\$langs[code] = \"$chg[code]\"; ############################################################################### -# ۸ũ -# 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'] -> -# 쿡 ũ ȵǰ +# Ʒ Ͽ Ͻ password 䱸 ############################################################################### -# -\$notice['subject'] = '{$chg['notice_s']}'; -\$notice['contents'] = {$chg['notice_c']}; +\$ccompare[name] = \"$chg[d_name]\"; +\$ccompare[email] = \"$chg[d_email]\"; -############################################################################### -# Խ 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); +// config.ph . +$fp = fopen( "../../data/$table/config.ph", "w" ); +fwrite($fp, "$chg_conf"); +fclose($fp); -# 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); +// quot ȯ ڸ un quot Ѵ +$head = $ua[header]; +$tail = $ua[tail]; +$head = stripslashes("$head"); +$tail = stripslashes("$tail"); -$wfile = "../../data/$table/html_tail.php"; -writefile_r ($wfile, $tail); +$hh = fopen( "../../data/$table/html_head.ph", "w" ); +fwrite($hh, "$head"); +fclose($hh); -# style sheet file -$ua['style'] = eregi_replace("\\\\\"|\"","",$ua['style']); -$ua['style'] = check_invalid($ua['style']); -$wstyle = ""; +$ht = fopen( "../../data/$table/html_tail.ph", "w" ); +fwrite($ht, "$tail"); +fclose($ht); -$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']); +// theme Ѵ. +chdir("../../data/$table/"); +if(file_exists("default.themes")) unlink("default.themes"); +symlink("../../config/themes/$ua[theme_c].themes","default.themes"); -header ('Content-Type: text/html;charset=' . $_('charset')); -echo ""; -move_page ("../../list.php?table=$table"); +move_page("../../list.php?table=$table"); + + ?> diff --git a/admin/user_admin/auth.php b/admin/user_admin/auth.php new file mode 100644 index 00000000..ca9c5e0b --- /dev/null +++ b/admin/user_admin/auth.php @@ -0,0 +1,90 @@ + + + +OOPS administration center v.1.4 [ User ADMIN page ] + + + + + + + + + + +
+ + + + + + + +
JSBoard User Config Login



+

+$langs[ua_ment]
+ + +
+
+
+ +Scripted by JoungKyun Kim
+and all right reserved +
+
+ +
+ +\n\n +\n"; +?> diff --git a/admin/user_admin/uadmin.php b/admin/user_admin/uadmin.php index ef835afa..d9b0a07f 100644 --- a/admin/user_admin/uadmin.php +++ b/admin/user_admin/uadmin.php @@ -1,802 +1,700 @@ alert('Don't exist Global configuration file')\n" . + "history.back()"; + die; +} else { include("../../config/global.ph"); } +include("../include/config.ph"); -$ssize = form_size (3); -$user = strtoupper ($table); - -if ( $board['super'] == 1 ) - $board['adput'] = ""; -else - $board['adput'] = "{$board['ad']}\n"; +if (file_exists("../../data/$table/config.ph")) + { include("../../data/$table/config.ph"); } -# 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"; +if ($color[theme]) { + include("../../config/default.themes"); + if (file_exists("../../data/$table/default.themes")) + { include("../../data/$table/default.themes"); } } -$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"; +$path[type] = "user_admin"; + +include "../../include/lang.ph"; +include("../../include/get.ph"); +include("../include/print.ph"); +include("../include/get.ph"); + +// üڷ α̸ ٷ ȭ +if (crypt($login[pass],$sadmin[passwd]) != $sadmin[passwd]) { + if (!$passwd) err_msg("$langs[ua_pw_n]"); + else { + $loginpass = crypt($passwd,$admin[passwd]); + $sloginpass = crypt($passwd,$sadmin[passwd]); + } + + if ($loginpass != $admin[passwd] && $sloginpass != $sadmin[passwd]) + err_msg("$langs[ua_pw_c]"); } -$board['hls'] = preg_replace ('/STR<\/U><\/B><\/FONT>/i', '', $board['hls']); +$size = form_size(7); +$lsize = form_size(24); -# html header ´ -$top_head = readfile_r ("../../html/head.php"); +if ($langs[code] == "ko") $tsize = form_size(30); +else $tsize = form_size(33); -$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); +$ssize = form_size(3); +$user = strtoupper($table); -$html_head = readfile_r ("../../data/$table/html_head.php"); +// Radio Box check з +if ($cenable[write]) $wen_ok = "checked"; +else $wen_no = "checked"; -# html tail ´ -$html_tail = readfile_r ("../../data/$table/html_tail.php"); +if ($cenable[reply]) $ren_ok = "checked"; +else $ren_no = "checked"; + +if ($cenable[edit]) $een_ok = "checked"; +else $een_no = "checked"; + +if ($cenable[delete]) $den_ok = "checked"; +else $den_no = "checked"; + +if ($enable[ore]) $ore_no = "checked"; +else $ore_ok = "checked"; + +if ($enable[re_list]) $re_list_ok = "checked"; +else $re_list_no = "checked"; + +if ($enable[pre]) $pview_ok = "checked"; +else $pview_no = "checked"; + +if ($board[cmd] == "yes") $bar_ok = "checked"; +else $bar_no = "checked"; -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); -} +if ($board[img] == "yes") $img_ok = "checked"; +else $img_no = "checked"; -$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); +if ($color[theme]) $theme_ok = "checked"; +else $theme_no = "checked"; -# styel sheet -if ( file_exists ("../../data/$table/stylesheet.php") ) { - include "../../data/$table/stylesheet.php"; -} +if ($cupload[yesno] == "yes") $up_ok = "checked"; +else $up_no = "checked"; -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 = "". - "". - ""; -} +if ($rmail[admin] == "yes") $amail_ok = "checked"; +else $amail_no = "checked"; -htmlhead (); -?> +if ($rmail[user] == "yes") $umail_ok = "checked"; +else $umail_no = "checked"; - - - -\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\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 = "
- -

-
User Configuration
- - - -
- - - - - - - - - - - +if ($view[url] == "yes") $url_ok = "checked"; +else $url_no = "checked"; + +if ($view[email] == "yes") $vmail_ok = "checked"; +else $vmail_no = "checked"; + +if ($board[align] == "left") $align_l = "checked"; +elseif ($board[align] == "right") $align_r = "checked"; +else $align_c = "checked"; + +if (!$color[l4_bg]) $color[l4_bg] = "$color[l0_bg]"; +if (!$color[l4_fg]) $color[l4_fg] = "$color[l0_fg]"; +if (!$color[r5_bg]) $color[r5_bg] = "$color[r0_bg]"; +if (!$color[r5_fg]) $color[r5_fg] = "$color[r0_fg]"; + +$board[hls] = eregi_replace("STR","",$board[hls]); + +// html header ´ +$top_head = get_file("../../html/head.ph"); + +$top_head = htmlspecialchars($top_head); +$top_head = str_replace("<? echo ","",$top_head); +$top_head = eregi_replace(" \?>(;|\}|<|"| -)","\\1",$top_head); +$top_head = str_replace("\$table",$table,$top_head); +$top_head = str_replace("\$version",$version,$top_head); +$top_head = str_replace("\$langs[charset]",$langs[charset],$top_head); +$top_head = str_replace("\$langs[font]",$langs[font],$top_head); +$top_head = str_replace("\$color[bgcol]",$color[bgcol],$top_head); +$top_head = str_replace("\$color[text]",$color[text],$top_head); +$top_head = str_replace("\$color[l1_bg]",$color[l1_bg],$top_head); +$top_head = str_replace("\$color[n0_bg]",$color[n0_bg],$top_head); +$top_head = str_replace("\$color[n2_bg]",$color[n2_bg],$top_head); +$top_head = str_replace("\$color[n2_fg]",$color[n2_fg],$top_head); +$top_head = str_replace("\$color[image]",$color[image],$top_head); +$top_head = str_replace("\$color[link]",$color[link],$top_head); +$top_head = str_replace("\$color[vlink]",$color[vlink],$top_head); +$top_head = str_replace("\$color[alink]",$color[alink],$top_head); +$top_head = str_replace(" ","  ",$top_head); +$top_head = nl2br($top_head); +$top_head = trim($top_head); + +$html_head = get_file("../../data/$table/html_head.ph"); + +// html tail ´ +$html_tail = get_file("../../data/$table/html_tail.ph"); +$bottom_tail = get_file("../../html/tail.ph"); +$bottom_tail = eregi_replace("<\?(.*)\?>","",$bottom_tail); +$bottom_tail = trim($bottom_tail); +$bottom_tail = htmlspecialchars($bottom_tail); +$bottom_tail = nl2br($bottom_tail); + +if(strtolower($color[bgcol]) == strtolower($color[l0_bg])) $color[cform] = $color[text]; +else $color[cform] = $color[l1_bg]; + +echo " + + +OOPS administration center v.$copy[version] [ User ADMIN page ] + + + + + + + +
Administartion Information
 Permission - - 
+
+ +

$user User Configuration
+ + + +

+ + - - - + + + + + + + + + + - - + - + - + - + - - - + + + + + + - - + + + + + + - + - - - - - + - + + + + + - - + - + - - - - - - - - + - - - - - - - - + - - - - - - + + + - + - + - - - - - - + + + + + + + + + + - - - - - - + + + - - - - - - + + + - - - - - - + - + - - + - + - - - + + + + + + - - - + + + + + + - - - - - + + + + + + + + - - + +get_theme_list("ua[theme_c]",8,"../../config"); + +echo " + - - - - - - + + + - + - + - - + - + + + + - - - + + + + + + - - - + + + + + + - - - - + + + + + + + + - - - + + + + + + - - - + + + + + + - + - + - - - - - + + + + + + + + + + + + + + - - + + + + + + + - - + + + + + + -"; -else echo "
" . $_('ua_while_wn') . "
"; -?> + + + + + + + + - - + + + + + + + - + - + - - - - - - + + + + + + - - - - - - + + + + + + - - - + + + + + + - - - - - - - - - - + + + + + + - - - - - - + + + + + + - - - - - + + + + + + + - - - - + - + - + + - - - - + - - + - + + + + - - + + + + - - - - - - - + - - - + + + + + - + + + + + + + + - - - + - - - + - - + - + - -
Password Information +
- - value="1"> - value="0"> - - New Re pass 
  +
Language Check +
Logout Page - +$langs[lang_c]$langs[lang_m1] ["; + +// ڵ带 ȣ +get_lang_list($langs[code]); + +echo "] $langs[lang_m2]   
 
  +
Board Basic Configuration
Permission Check +
value=""> $langs[ua_w] +$langs[ua_p] +$langs[ua_n] + $langs[ua_r] +$langs[ua_p] +$langs[ua_n] + 
Theme -$langs[ua_e] +$langs[ua_p] +$langs[ua_n] + $langs[ua_d] +$langs[ua_p] +$langs[ua_n] + 
  +
 
Option whether include parent article text when reply +
$langs[ua_ore] - value="center"> - value="left"> - value="right"> +$langs[ua_ore_y] +$langs[ua_ore_n]   
  +
Option whether print related list when reply +
- value=""> +$langs[ua_re_list] +$langs[ua_re_list_y] +$langs[ua_re_list_n]   
value=""> value="">
  +
value=""> value="">
Webboard Align +
value="">*2+1 value="">$langs[ua_align] +$langs[ua_align_c] +$langs[ua_align_l] +$langs[ua_align_r] + 
 
  +
Width Of Form Size
Article Preview Check +
NAME value=""> SUBMIT value=""> $langs[ua_pr] +$langs[ua_p] +$langs[ua_n] + $langs[ua_pren] + +$langs[ua_b8]
  +
Board Basic Configuration +
TITLE value=""> TEXT value=""> $langs[ua_b1] 
UPLOAD value="">    $langs[ua_b19]$langs[ua_b20]  
 
Print Option
- value="0"> - value="1"> +$langs[ua_b17]$langs[ua_b18] [ +$langs[ua_b15] +$langs[ua_b16] +]   
- value="1"> - value="0"> +$langs[ua_b2]$langs[ua_b3] [ +$langs[ua_b15] +$langs[ua_b16] +] $langs[ua_b4]   
- value="1"> - value="0"> - $langs[ua_b5]$langs[ua_b6]$langs[ua_b7]$langs[ua_b8]
- value="1"> - value="0"> - $langs[ua_b9]$langs[ua_b8]$langs[ua_b10]$langs[ua_b11]
 
Allow HTML Code
- +$langs[ua_b12]*2+1$langs[ua_b11]$langs[ua_b13]$langs[ua_b14]
 
- +
Theme Configuration
 
\n"; -
Article Preview Check
- value="1"> - value="0"> -  - value=""> -BG Image 
 
  +
Host Address Configuration
Board Basic Color Configuration +
[ - value=1> - value=0> ] +$langs[ua_bc1] +Yes +No   BGCOLOR
[ - value=1> - value=0> -] - TEXTLINK
[ - value=1> yes - value=0> no -] - VLINKALINK
 
File Upload Configuration
$langs[ua_bc2]$langs[ua_bc3]
- name="ua[upload]" value=1> - name="ua[upload]" value=0> - $langs[ua_bc4]$langs[ua_bc5]
- name="ua[uplink]" value=1> - name="ua[uplink]" value=0> - $langs[ua_bc6]$langs[ua_bc7]
 
  +
Mail Configuration
List Page Color 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"; -} -?> +$langs[ua_lp1]$langs[ua_lp2]
$langs[ua_lp3]$langs[ua_lp4]
 
$langs[ua_lp5]$langs[ua_lp6]
E-mail +$langs[ua_lp7]$langs[ua_lp8]
$langs[ua_lp9]$langs[ua_lp10]
 
$langs[ua_lp11]$langs[ua_lp12]
 
  +
RSS Configuration
Read Page Color Configuration +
- value=1> - value=0> -  - value=1> - value=0> - $langs[ua_lp1]$langs[ua_lp2]
- value=0> - value=1> -    $langs[ua_lp3]$langs[ua_lp4]
- - value=""> - - $langs[ua_rp1]$langs[ua_rp2]
 
Etc Configuration
- value=1>yes - value=0>no -  - value=1>yes - value=0>no - $langs[ua_rp3]$langs[ua_rp4]
value="">  value=""> $langs[ua_rp5]$langs[ua_rp6]
 
Blocking IP Address
-TEXTAREA SIZE OPERATION - -
$langs[ua_rp7]$langs[ua_rp8]
- +
 
 
Deny Invalid Hyper Link
File Upload Configuration +
- - value="0"> - value="1"> +$langs[ua_fp] +$langs[ua_p] +$langs[ua_n] -TEXTAREA SIZE OPERATION - -
 
- +
 
 
Board Notice
Mail Configuration +
Subject - +Admin +$langs[ua_mail_p] +$langs[ua_mail_n]   User +$langs[ua_mail_p] +$langs[ua_mail_n] + 
Contents -TEXTAREA SIZE OPERATION - -
E-mail 
- +
 
 
HTML Header/Tail
-<HTML>
-<HEAD>
-<TITLE> JSBoard blar blah blah.. :-) </TITLE>
-<STYLE>
-<!-- ======================= User define stylesheet ======================= -->
+
Etc Configuration
-[ USER DEFINED STYLESHEET ] +$langs[ua_etc1] +yes +no -TEXTAREA SIZE OPERATION - -
- -
 $langs[ua_etc2] +yes +no + 
-<!-- ======================= User define stylesheet ======================= -->
-</STYLE>
-</HEAD>
-<BODY> +
$langs[ua_etc3] $langs[ua_etc4] 
 
-TEXTAREA SIZE OPERATION - +
HTML Header/Tail
- -
$top_head
- -


-[ ] -


- +
+
-TEXTAREA SIZE OPERATION - -



[ $langs[ua_etc5] ]



- +
+
-

-</BODY>
-</HTML>
-
$bottom_tail
 
  +
- - - - +
+ + + + +
-Scripted by JSBoard Open Project
-and all rights follow GPL2 License +
+Scripted by $copy[name]
+and all right reserved
- - + +

- - +"; ?> 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 .= "
". - "[ EDIT ]". - "{$row['nid']} {$row['name']} {$_email}{$_url}{$del_link}
\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/auth_ext.php b/auth_ext.php new file mode 100644 index 00000000..0f310ce8 --- /dev/null +++ b/auth_ext.php @@ -0,0 +1,54 @@ + + + + + + + + + +
$kinds Check



+

+$langs[au_ment]
+ + + + +
+ +[ $langs[au_ments] ] + +
+
+ +Copyleft 1999-$lyear Jsboard Open Project
+http://jsboard.kldp.org +
+
+ + + + +\n"; + +require("./html/tail.ph"); +?> 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/config/README.THEME b/config/README.THEME new file mode 100644 index 00000000..51e4c8a7 --- /dev/null +++ b/config/README.THEME @@ -0,0 +1,17 @@ +Theme ߰ϱ + +theme ߰ϴ ϴ. ϴ themes directory +ƹ theme file ϴ̸.themes copy Ѵ ׵ + ָ ȴ. + +׸ Admin center global ߰ theme +ִ ̴. + +߿ default.themes ̸ ؼ ȵȴ! + + 1.0.x ̻ image menu theme Ҽ +ִ. ̴ ϰ jsbaord/images/THEME_NAME ̶ 丮 + Ŀ ʿ image ־ ָ ȴ + +. +2000.11.22 diff --git a/config/themes/basic.themes b/config/themes/basic.themes new file mode 100644 index 00000000..cd107d52 --- /dev/null +++ b/config/themes/basic.themes @@ -0,0 +1,45 @@ + 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 index 106033ee..1d644029 100644 --- a/delete.php +++ b/delete.php @@ -1,109 +1,160 @@ - + +
+ + + + + + + + + + + + \n"; + +if ($list[email]) { + echo "\n" . + " \n" . + " \n"; +} -# 左 ȵǾ ⺻ -$board['wwrap'] = !$board['wwrap'] ? 120 : $board['wwrap']; - -$list['date'] = date("Y-m-d H:i:s", $list['date']); -text_nl2br($list['text'], $list['html']); -#$list['text'] = $list['html'] ? $list['text'] : wordwrap($list['text'],$board['wwrap']); -new_reply_read_format ($list['text'], $list['html']); -macro_interwiki(); -wikify($list['text']); -$list['num'] = print_reply($table, $list); - -# ̺ ũ⿡ ٷ ѱ -$_width = preg_match ('/%/', $board['width']) ? '550' : $board['width']; -$title_width = $_width / 8; -settype($title_width,"integer"); -$list['title'] = wordwrap($list['title'],$title_width,"
\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"; +if ($list[url]) { + echo "\n" . + " \n" . + " \n"; +} - $tail = check_filetype($list['bofile']); - $preview = viewfile($tail); +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); + + echo "\n" . + " \n" . + " "; } -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')) . "]"; +echo " + + + + + + + + +
$langs[d_no]$list[num]$langs[date]$list[date]
$langs[name]$list[name]$langs[d_ad]$list[host]
$langs[w_mail]$list[email]
$langs[ln_url]$list[url]
$langs[file]\n" . + " \n" . + " \"$bofile\"\n" . + " $list[bofile]\n" . + " \n" . + " - $hfsize\n
$langs[titl]$list[title]
+ + + + + +
+ + +$list[text] + + +
+ +
+ + $warning + +
+ +
+ + + + + +
+ + + + + + + + $langs[w_pass]:   +   + + +
+ +
\n + + +\n
+ +\n"; + +if ($board[img] == "yes") { + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + echo ""; +} else { + echo " + + + + + \n"; } -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"; +echo "\n
" . + "\"$langs[cmd_list]\"" . + "\"$langs[cmd_priv]\"" . + "\"|\"$langs[cmd_list]\"|\"$langs[cmd_priv]\"|\"
\n
\n
"; + +@include("html/tail.ph"); ?> 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 index a6379242..b45e57d1 100644 --- a/edit.php +++ b/edit.php @@ -1,82 +1,151 @@ - "; -else $passment = ""; - -if($board['notice']) print_notice($board['notice']); - -if($list['html']) $html_chk_ok = " CHECKED"; -else $html_chk_no = " CHECKED"; +$passment = "$langs[w_pass]"; -# 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(!$list[passwd] || !$enable[edit] || !$cenable[edit]) { + if (!$enable[edit]) $passment = "$langs[e_wpw]"; + else $passment = "$langs[b_apw]"; } -if ($agent['br'] == "MSIE" || $agent['nco'] == 'moz') - $orig_option = " onClick=fresize(0)"; +if($board[notice]) print_notice($board[notice]); + +$wrap = form_wrap(); + +if($list[html]) $html[1] = " CHECKED"; +else $html[0] = " CHECKED"; + +// image menu ҽÿ wirte ȭ list,read ȭ +if ($board[img] == "yes" && !eregi("%",$board[width])) + $board[width] = $board[width]-$icons[size]*2; +else $size[text] += 4; + +echo " +
+ +
+ + + + + + "; + +if ($view[email] == "yes" || $list[email]) { + echo "\n" . + "\n" . + "\n" . + "\n"; +} -# Page ش ̵ -$page = $page ? "&page=$page" : ""; +if ($view[url] == "yes" || $list[url]) { + echo "\n" . + "\n" . + "\n" . + "\n"; +} -$print['passform'] = "\n". - "\n". - "\n". - "\n"; +echo " + + + + "; + +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($disable) { - $list['rname'] = !$list['rname'] ? "" : "\n"; - $print['passform'] .= "\n". - "{$list['rname']}". - "\n". - "\n\n". - "\n\n"; + echo "\n" . + " \n" . + " "; } -# html tag 츦 -$list['text'] = htmlspecialchars($list['text']); - -sql_close($c); +echo " + + + + + + + + +
$langs[w_name]$langs[w_name_m]
$langs[w_mail]$langs[w_mail_m]
$langs[ln_url]$langs[w_url_m]
HTML + + $langs[u_html] + $langs[un_html] + + $langs[w_html_m]
$langs[file]\n" . + " \n" . + " \"$list[bofile]\"\n" . + " $list[bofile]\n" . + " \n" . + " - $hfsize\n
$langs[titl]
+ + + +
+ + $wrap[ment] + +
+ +
+ + + + + +
+ + + + + $passment:   +   +   + + +
+ +
\n + + +\n
+ +\n"; + +if ($board[img] == "yes") { + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + echo ""; +} else { + echo " + + + + + \n"; +} -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; +echo("\n
" . + "\"$langs[cmd_list]\"" . + "\"$langs[cmd_priv]\"" . + "\"|\"$langs[cmd_list]\"|\"$langs[cmd_priv]\"|\"
\n
\n
"); -# Template file ȣ -meta_char_check($print['theme'], 1, 1); -$bodyType = 'edit'; -include "theme/{$print['theme']}/index.template"; +@include("html/tail.ph"); ?> 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 index 72ff35c9..d51dee00 100644 --- a/error.php +++ b/error.php @@ -1,37 +1,49 @@ - - - - - -JSboard <?=$version?> - <?=$title?> - - +if($notice) { + $title = "$langs[er_msg]"; + $image = "images/t.gif"; +} else { + $title = "$langs[er_msgs]"; + $image = "images/e.gif"; +} - +echo " + + + + +JSboard $version - $title + + - 
-
- - - - - - -
- -

-
-
-
-
+ - - + + + + + + +
+ $str +
+ +
+ + +\n"; +?> diff --git a/form.php b/form.php index 4615f524..97ef4004 100644 --- a/form.php +++ b/form.php @@ -1,37 +1,123 @@ -". - "\"\"". - "\n"; -} elseif ( $mode == 'version' ) { - $print['head'] = "Version Numbering"; - $print['body'] = "\n". - "\n". - "
-= [ JSBoard v{$board['ver']} ] =-
\n"; -} + +\nalert('Don\'t exist global\\nconfiguration file');\n" . + "history.back();\nexit;\n\n"; +} else { @include("config/global.ph"); } + +if(!$mode && trim($table)) { + @include("include/lang.ph"); + @include("include/get.ph"); + @include("include/print.ph"); + @include("include/error.ph"); + @include("include/sql.ph"); + @include("include/sendmail.ph"); + @include("include/tableratio.ph"); + + $kind = "formmail"; + if($board[notice]) print_notice($board[notice]); + + $wrap = form_wrap(); + + // image menu ҽÿ wirte ȭ list,read ȭ + if ($board[img] && !eregi("%",$board[width])) + $board[width] = $board[width]-$icons[size]*2; + + if(trim($table) && trim($no)) $sinfo = get_send_info($table,$no); + else print_error("Some problem in \$table or \$no value"); + + echo " + +Jsboard $version - [Form Mail] + + -if ( $mode ) { - if ( ! $print['theme'] ) - $print['theme'] = "EN-default"; + - meta_char_check ($print['theme'], 1, 1); - $bodyType = 'ext'; - include "theme/{$print['theme']}/index.template"; +
  • JSBoard FormMail Service +

    + + + +
    + + + + + + + + + + + + + + + + + + + +
    To$sinfo[email]
    From
    $langs[name]
    $langs[titl]
    + +
    + Scripted by JoungKyun Kim +
    + +
    + + + + + +
    + + + +   +   + + +
    + +
    \n"; +} else { + @include("include/error.ph"); + @include("include/check.ph"); + + meta_char_check($table,0,1); + meta_char_check($f[c]); + meta_char_check($upload[dir]); + if(!$f[n] || eregi("\.\./",$f[n])) { + echo "\n"; + exit; + } + + echo "\n". + "\n". + "JSBoard - VIEW ORIGINAL IMAGE\n". + "\n". + "\n". + "". + "". + "\n"; } ?> + + + diff --git a/html/head.ph b/html/head.ph new file mode 100644 index 00000000..35f61cd1 --- /dev/null +++ b/html/head.ph @@ -0,0 +1,53 @@ + + + +Jsboard <? echo $version ?> - <? echo get_title() ?> + + + +\n"; +} +?> + + +\n"; + +if (eregi("[^a-z0-9_\-]",$table)) + print_error("Can't use special characters except alphabat, numberlic , _, - charcters"); + +if(file_exists("data/$table/html_head.ph")) { + @include "data/$table/html_head.ph"; +} else if(file_exists("html/head2.ph")) { + @include "html/head2.ph"; +} +?> 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/head2.ph b/html/head2.ph new file mode 100644 index 00000000..d0e1dc5e --- /dev/null +++ b/html/head2.ph @@ -0,0 +1,4 @@ + + + + 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.ph b/html/tail.ph new file mode 100644 index 00000000..31af7d33 --- /dev/null +++ b/html/tail.ph @@ -0,0 +1,9 @@ + + + + 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/html/tail2.ph b/html/tail2.ph new file mode 100644 index 00000000..703773c9 --- /dev/null +++ b/html/tail2.ph @@ -0,0 +1,4 @@ + +

    +Copyleft 1999-2000 by + 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/back.gif b/images/back.gif new file mode 100644 index 00000000..c466369f Binary files /dev/null and b/images/back.gif differ diff --git a/images/basic/back.gif b/images/basic/back.gif new file mode 100644 index 00000000..c466369f Binary files /dev/null and b/images/basic/back.gif differ diff --git a/images/basic/conjunct.gif b/images/basic/conjunct.gif new file mode 100644 index 00000000..b3ea2924 Binary files /dev/null and b/images/basic/conjunct.gif differ diff --git a/images/basic/delete.gif b/images/basic/delete.gif new file mode 100644 index 00000000..0e14e5b6 Binary files /dev/null and b/images/basic/delete.gif differ diff --git a/images/basic/delete_b.gif b/images/basic/delete_b.gif new file mode 100644 index 00000000..2ecc6899 Binary files /dev/null and b/images/basic/delete_b.gif differ diff --git a/images/basic/down.gif b/images/basic/down.gif new file mode 100644 index 00000000..32fe9f6b Binary files /dev/null and b/images/basic/down.gif differ diff --git a/images/basic/edit.gif b/images/basic/edit.gif new file mode 100644 index 00000000..269fb952 Binary files /dev/null and b/images/basic/edit.gif differ diff --git a/images/basic/edit_b.gif b/images/basic/edit_b.gif new file mode 100644 index 00000000..e129a017 Binary files /dev/null and b/images/basic/edit_b.gif differ diff --git a/images/basic/list.gif b/images/basic/list.gif new file mode 100644 index 00000000..ce3f61a1 Binary files /dev/null and b/images/basic/list.gif differ diff --git a/images/basic/reply.gif b/images/basic/reply.gif new file mode 100644 index 00000000..f78e913b Binary files /dev/null and b/images/basic/reply.gif differ diff --git a/images/basic/reply_b.gif b/images/basic/reply_b.gif new file mode 100644 index 00000000..c391970f Binary files /dev/null and b/images/basic/reply_b.gif differ diff --git a/images/basic/today.gif b/images/basic/today.gif new file mode 100644 index 00000000..1710ccf2 Binary files /dev/null and b/images/basic/today.gif differ diff --git a/images/basic/up.gif b/images/basic/up.gif new file mode 100644 index 00000000..300246a7 Binary files /dev/null and b/images/basic/up.gif differ diff --git a/images/basic/write.gif b/images/basic/write.gif new file mode 100644 index 00000000..aad4caab Binary files /dev/null and b/images/basic/write.gif differ diff --git a/images/basic/write_b.gif b/images/basic/write_b.gif new file mode 100644 index 00000000..88a7e8a3 Binary files /dev/null and b/images/basic/write_b.gif differ diff --git a/images/conjunct.gif b/images/conjunct.gif new file mode 100644 index 00000000..b3ea2924 Binary files /dev/null and b/images/conjunct.gif differ diff --git a/images/delete_b.gif b/images/delete_b.gif new file mode 100644 index 00000000..2ecc6899 Binary files /dev/null and b/images/delete_b.gif 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/edit_b.gif b/images/edit_b.gif new file mode 100644 index 00000000..e129a017 Binary files /dev/null and b/images/edit_b.gif 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/list.gif b/images/list.gif new file mode 100644 index 00000000..ce3f61a1 Binary files /dev/null and b/images/list.gif 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/reply.gif b/images/reply.gif new file mode 100644 index 00000000..f78e913b Binary files /dev/null and b/images/reply.gif differ diff --git a/images/reply_b.gif b/images/reply_b.gif new file mode 100644 index 00000000..c391970f Binary files /dev/null and b/images/reply_b.gif differ diff --git a/images/today.gif b/images/today.gif new file mode 100644 index 00000000..1710ccf2 Binary files /dev/null and b/images/today.gif differ diff --git a/images/write.gif b/images/write.gif new file mode 100644 index 00000000..aad4caab Binary files /dev/null and b/images/write.gif differ diff --git a/images/write_b.gif b/images/write_b.gif new file mode 100644 index 00000000..88a7e8a3 Binary files /dev/null and b/images/write_b.gif differ diff --git a/include/LANG/en.ph b/include/LANG/en.ph new file mode 100644 index 00000000..307b8d45 --- /dev/null +++ b/include/LANG/en.ph @@ -0,0 +1,341 @@ +No blank line or space at the end of file!"; +$langs[brlist_m] = "List supported browsers in Allow Browser List. Only browsers list here can write an article. To use this feature, allow_browser.txt file must exist under jsboard/config and must have write permission for nobody.

    No blank line or space at the end of file!"; + +# ADMIN +$langs[a_reset] = "Reset Password"; +$langs[sql_na] = "

    Failed connect SQL Server!

    \nCheck the db server, db user, db password in \"jsboard/config/global.ph\"
    \nIf your settings are right,
    excute \"flush privileges\" command as root user under MySQL
    \n\n

    \n
    [ BACK ]

    \n Copyleft 1999-2000 JSBoard Open Project"; + +$langs[a_t1] = "Board Name"; +$langs[a_t2] = "Articles"; +$langs[a_t3] = "Today"; +$langs[a_t4] = "Total"; +$langs[a_t5] = "Options"; +$langs[a_t6] = "Remove"; +$langs[a_t7] = "View"; +$langs[a_t8] = "Conf"; +$langs[a_t9] = "Del"; +$langs[a_t10] = "Admin info"; +$langs[a_t11] = "logout"; +$langs[a_t12] = "Create DB"; +$langs[a_t13] = "Regist"; +$langs[a_t14] = "Delete DB"; +$langs[a_t15] = "Global Config"; +$langs[a_t16] = "Whole"; +$langs[a_t17] = "Stat"; + +$langs[a_del_cm] = "Really Delete?"; +$langs[a_act_fm] = "Go to first page"; +$langs[a_act_lm] = "Go to last page"; +$langs[a_act_pm] = "Go to privious page"; +$langs[a_act_nm] = "Go to next page"; +$langs[a_act_cp] = "Specify New Password"; + +# Inatllation +$langs[waitm] = "Checking Environment to use JSBoard
    \nResult will be displayed after 5 sec.

    If U use Netscape for Linux or Other UNIX,
    then U will install manualy by hands
    that refer to QUICK_INSTALL document"; +$langs[wait] = "[ Wait 5 seconds ]"; +$lnags[os_check] ="If OS isn't Linux, change shell command in jsboard/include/exec.ph to corresponding command in your OS"; +$langs[mcheck] = "Failed MySQL login. Check the MySQL root password in jsbaord/installer/include/passwd.ph. If password is right, check if PHP was compiled with --with-mysql option.
    If you use external DB server, refer to QUICK_INSTALL document"; +$langs[ccheck] = "Different number of columns for db table in mysql database. U must modify db query at 37th line of jsboard/Installer/act.php"; +$langs[echeck] = "exec() function is not working. Checked your path to php3.ini or php.ini configuration file"; +$langs[icheck] = "Add index.php to DirectoryIndex directive in httpd.conf\nand restart apache web server"; +$langs[pcheck] = "Must excute root.sh in jsboard/Installer/script before Installation"; +$langs[auser] = "If U are account user, refer to QUICK_INSTALL document"; + +$langs[inst_r] = "Reset"; +$langs[sql_int_err] = "

    Failed to connect SQL Server!

    \nCheck the MySQL Root Password\n\n

    \n[ BACK ]

    \n Copyleft 1999-2000 JSBoard Open Project"; +$langs[inst_chk_varp] = "Specified DB password to use in DB."; +$langs[inst_chk_varn] = "Specified DB name to use in DB."; +$langs[inst_chk_varu] = "Specified DB user to use in DB."; +$langs[inst_ndb] = "DB name must start alphabet"; +$langs[inst_udb] = "DB user name must start alphabet"; +$langs[inst_adb] = "DB name that you specified already exists."; +$langs[inst_cudb] = "DB user that you specified already exists."; +$langs[inst_error] = "Dream on your work that give no data"; + +$langs[regi_ment] = "Specitify unused DB name and DB user in MySQL"; +$langs[first_acc] = "Registration completed.\\nYou will be taken to Admin Page.\\n\\nDefault password for Admin Page is set 0000."; +?> diff --git a/include/LANG/ko.ph b/include/LANG/ko.ph new file mode 100644 index 00000000..3c4510a6 --- /dev/null +++ b/include/LANG/ko.ph @@ -0,0 +1,345 @@ + ΰ ڰ ȵ˴ϴ."; +$langs[brlist_m] = "Allow Browser LIST ۵ Agent մϴ. ϴ ̰ ϱ ؼ jsboard/config allow_browser.txt file ؾ ϸ, nobody ־ մϴ. Netscape IE Mozilla ϳ մϴ.

    ΰ ڰ ȵ˴ϴ."; + +# ADMIN +$langs[a_reset] = "н ʱȭ"; +$langs[sql_na] = "

    DB ῡ и ߽ϴ!

    \njsboard/config/global.ph db server, db user, db password
    \nȮ ֽʽÿ\n ̻ ٸ MySQL root α
    \nϿ flush privileges Ͻʽÿ
    \n\n

    \n[ ư ]

    \n Copyleft 1999-2000 JSBoard Open Project"; + +$langs[a_t1] = "Խ ̸"; +$langs[a_t2] = "Խù ϼ"; +$langs[a_t3] = ""; +$langs[a_t4] = "հ"; +$langs[a_t5] = "ɼ"; +$langs[a_t6] = ""; +$langs[a_t7] = ""; +$langs[a_t8] = ""; +$langs[a_t9] = ""; +$langs[a_t10] = "н"; +$langs[a_t11] = "α׾ƿ"; +$langs[a_t12] = "Խ "; +$langs[a_t13] = ""; +$langs[a_t14] = "Խ "; +$langs[a_t15] = " "; +$langs[a_t16] = "ü"; +$langs[a_t17] = ""; + +$langs[a_del_cm] = "¥ ?"; +$langs[a_act_fm] = "ù page ̵"; +$langs[a_act_lm] = " page ̵"; +$langs[a_act_pm] = " ̵"; +$langs[a_act_nm] = " ̵"; +$langs[a_act_cp] = " н带 Ͻʽÿ"; + +# Inatllation +$langs[waitm] = "Jsboard ϱ ȯ ˻ϰ ֽϴ
    \n5 Ŀ Ǽ ֽϴ

    Linux Browser ϽŴٸ
    ڵ Ѿ ֽϴ.
    ̶ QUICK_INSTALL ϼż ġ Ͻʽÿ"; +$langs[wait] = "[ 5ʰ ٷ ּ ]"; +$lnags[os_check] ="Linux ƴ ٸ OS 쿡 jsboard/include/exec.ph \nshell ɵ option ּž մϴ"; +$langs[mcheck] = "MySQL login и ߽ϴ.\njsboard/Installer/include/passwd.ph MySQL root\npassword Ȯ Ȯ ֽð PHP ġÿ\n--with-mysql ɼ  Ȯ ֽʽÿ
    \n DB server Ǿ ִٸ QuickInstall \nϿ ġ Ͻñ ٶϴ"; +$langs[ccheck] = "mysql database db table ÷ Ʋϴ.\njabord/Installer/act.php 37° query\n÷ ֽñ ٶϴ"; +$langs[echeck] = "exec() Լ ϰ ʽϴ.\nexec() Լ ϱ ؼ php3.ini Ǵ php4\nphp.ini ġ ־ մϴ.\nphpinfo() Լ Ͽ php,ini ġ ľ\nĿ ġ php.ini ִ Ȯ ֽʽÿ"; +$langs[icheck] = "httpd.conf DirectoryIndex ڿ index.php ߰
    \n ֽð apache Ͻʽÿ"; +$langs[pcheck] = "Install ϱ jsboard/Installer/script\nroot.sh ּž մϴ. INSTALL\nϽʽÿ"; +$langs[auser] = " ġڴ QUICK_INSTALL Ͽ ġϽʽÿ"; + +$langs[inst_r] = "ʱȭ"; +$langs[inst_sql_err] = "

    DB ῡ и ߽ϴ!

    \nMySQL Root password
    \nȮ ֽʽÿ\n
    \n\n

    \n[ ư ]

    \n Copyleft 1999-2000 JSBoard Open Project"; +$langs[inst_chk_varp] = "DB н带 ʾҽϴ."; +$langs[inst_chk_varn] = "DB DB ̸ ʾҽϴ."; +$langs[inst_chk_varu] = "DB DB user ʾҽϴ."; + +$langs[inst_ndb] = "ڷ ϴ DB ̸ Ҽ ϴ."; +$langs[isnt_udb] = "ڷ ϴ DB user Ҽ ϴ."; +$langs[inst_adb] = "Ͻ DB ̸ ̹ մϴ."; +$langs[inst_cudb] = "Ͻ DB user ̹ մϴ."; +$langs[inst_error] = "հ ̻ Ͻ÷ ϴ :-)"; + +$langs[regi_ment] = "DB name DB user MySQL Ǿ ϼž մϴ."; +$langs[first_acc] = " Ϸ Ǿϴ.\\nAdmin Page ̵ մϴ.\\nAdmin Page ʱ Password\\n0000 Դϴ."; +?> diff --git a/include/README.LANG b/include/README.LANG new file mode 100644 index 00000000..c0daeb84 --- /dev/null +++ b/include/README.LANG @@ -0,0 +1,15 @@ +Multi language ϱ ؼ LANG directory +ִ languae file ڵ̸ copy Ѵ. + + Ϻ ڰ Ѵٸ + +cp ko.ph jp.ph + + copy Ѵ Ϻ ϸ ȴ. +׸ ü ο ڵ带 $lang[code] ־ָ +Ǹ, Խ ڿ ڵ ̵ȴ. + + Ұ LANG directory language file ٸ + ϸ ȵȴ. + +. 2000.1.18 diff --git a/include/auth.ph b/include/auth.ph new file mode 100644 index 00000000..f34c411e --- /dev/null +++ b/include/auth.ph @@ -0,0 +1,32 @@ + diff --git a/include/check.ph b/include/check.ph new file mode 100644 index 00000000..6b6a4259 --- /dev/null +++ b/include/check.ph @@ -0,0 +1,223 @@ + +# $i -> null ̶ 1 +# $t -> table ̸ ˻ 1 +# +function meta_char_check($name,$i=0,$t=0) { + if (!$i && !trim($name)) print_error(" $name Value Name Missing! You must specify a value"); + if ($t && !eregi("^[a-zA-Z]",$name)) print_error("$name Value must start with an alphabet"); + if (eregi("[^a-z0-9_\-]",$name)) print_error("Can't use special characters except alphabat, numberlic , _, - charcters"); + if ($t && eregi("^as$",$name)) print_error("Cat't use table name as "as""); +} + +// ڿ ѱ ԵǾ ִ ˻ϴ Լ +// +// 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 Ȯ ˻ϴ Լ +// +// eregi - ǥ ̿ ˻ (ҹ ) +// http://www.php.net/manual/function.eregi.php +// eregi_replace - ǥ ̿ ġȯ (ҹ ) +// http://www.php.net/manual/function.eregi-replace.php +function check_url($url) { + $url = trim($url); + + // (http://, ftp://...) Ÿ κ ⺻ + // http:// + if(!eregi("^(http://|https://|ftp://|telnet://|news://)", $url)) + $url = eregi_replace("^", "http://", $url); + + if(is_hangul($url)) return; + + if(!eregi("(http|https|ftp|telnet|news):\/\/[a-z0-9-]+\.[][a-zA-Z0-9:&#@=_~%\-\?\/\.\+]+", $url)) + return; + + return $url; +} + +// E-MAIL ּҰ Ȯ ˻ϴ Լ +// +// eregi - ǥ ̿ ˻ (ҹ ) +// http://www.php.net/manual/function.eregi.php +function check_email($email) { + $url = trim($email); + + if(is_hangul($url)) return; + + if(!eregi("^[a-z0-9_-]+@[a-z0-9-]+\.[a-z0-9-]+", $email)) + return; + + return $email; +} + +// н Լ +// +// crpyt - ڿ DES ȣȭ +// http://www.php.net/manual/function.crypt.php +function check_passwd($table, $no, $passwd) { + global $sadmin, $admin; + + if ($table && $no) { + $result = sql_query("SELECT passwd FROM $table WHERE no = $no"); + $crypt = sql_result($result, 0, "passwd"); + sql_free_result($result); + } + + $spasswd = crypt($passwd,$sadmin[passwd]); + $upasswd = crypt($passwd,$admin[passwd]); + + if(crypt($passwd, $crypt) == $crypt || $sadmin[passwd] == $spasswd || $admin[passwd] == $upasswd) { + return 1; + } +} + +// ˻ Լ +function check_spam($str, $spam_list = "config/spam_list.txt") { + // $spam_list б (r) + $fp = fopen($spam_list, "r"); + // $spam_list ũ⸸ŭ о $fr + $fr = fread($fp, filesize($spam_list)); + fclose($fp); + + // $fr \n ڷ Ͽ $list 迭 + $list = explode("\n", $fr); + + // $list 迭 ŭ for $spam_list Ͽ Ǿ ִ + // ڿ ġϴ ڿ $spam_str ִ ˻, + // Ǵϰ 1 ȯ, 0 ȯ + for($co = 0; $co < count($list); $co++) { + $list[$co] = eregi_replace("(\r|\n)","",$list[$co]); + if($list[$co] && eregi($list[$co], $str)) { + return 1; + } + } + + return 0; +} + +// üũ +// file() - file о پ 迭 +// +function chk_spam_browser($file = "config/allow_browser.txt") { + $agent_env = getenv("HTTP_USER_AGENT"); + + if(@file_exists($file)) { + $br = file($file); + for($i=0;$i 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


    \n---- $list[bofile] $langs[inc_file] -------------------------- \n

    \n

    \n";
    +  $source2 = "\n
    \n

    "; + $source3 = " $list[bofile] file is broken link!!\n\n"; + + if (@file_exists($upload_file)) { + if (eregi("^(gif|jpg|png)$",$tail)) { + $imginfo = GetImageSize($upload_file); + $uplink_file = "./form.php?mode=photo&table=$table&f[c]=$list[bcfile]&f[n]=$list[bofile]&f[w]=$imginfo[0]&f[h]=$imginfo[1]"; + if($imginfo[0] > $board[width] - 6 && !eregi("%",$board[width])) { + $p[vars] = $imginfo[0]/$board[width]; + if($board[img] != "yes") $p[width] = $board[width] - 6; + else $p[width] = $board[width] - $icons[size] * 2 - 6; + $p[height] = intval($imginfo[1]/$p[vars]); + $p[up] = "[ Orizinal Size $imginfo[0] * $imginfo[1] ]
    \n"; + $p[up] .= "\n

    \n"; + } else { + $p[up] = "\n

    \n"; + } + } else if (eregi("^(phps|txt|htmls|htm|shs)$",$tail)) { + $fsize = filesize($upload_file); + $fsize_ex = 1000; + if ($fsize == $fsize_ex) $check = 1; + if ($tail == "txt" && $fsize > $fsize_ex) $fsize = $fsize_ex; + + $fp = fopen($upload_file, "r"); + $view = fread($fp,$fsize); + fclose($fp); + $view = htmlspecialchars($view); + if ($fsize == $fsize_ex && !$check) $view = $view . "

    \n ......$langs[preview]\n\n"; + + $p[down] = "$source1$view$source2"; + } elseif (eregi("^(mid|wav|mp3)$",$tail)) { + if($tail == "mp3" && $agent[br] == "MOZL") + $p[up] = "[ MP3 file IE Ǽ ֽϴ. ]"; + elseif($agent[br] == "LYNX") + $p[bo] = ""; + else + $p[bo] = ""; + } elseif (eregi("^(mpeg|mpg|asf|dat|avi)$",$tail)) { + if($agent[br] == "MSIE") $p[up] = ""; + } elseif ($tail == "mov" && $agent[br] == "MSIE") { + $p[up] = ""; + } elseif ($tail == "swf") { + $flash_size = $board[width] - 10; + if($agent[br] == "MSIE") $p[up] = ""; + } + } else $p[down] = "$source1$source3$source2"; + + return $p; +} + +?> diff --git a/include/get.php b/include/get.php deleted file mode 100644 index 2a543e35..00000000 --- a/include/get.php +++ /dev/null @@ -1,603 +0,0 @@ - $pages['all']) - $pages['cur'] = $pages['all']; - - # $pages['no'] $pages['cur'] Ͽ . Ͽ - # ҷ ȣ - if(!$pages['no']) - $pages['no'] = ($pages['cur'] - 1) * $board['perno']; - - # $pages['cur'] (pre), (nex) - if($pages['cur'] > 1) - $pages['pre'] = $pages['cur'] - 1; - if($pages['cur'] < $pages['all']) - $pages['nex'] = $pages['cur'] + 1; - - return $pages; -} - -# ִ ˾Ƴ Լ -# -# intval - ȯ -# http://www.php.net/manual/function.intval.php -function get_current_page($table, $idx) { - global $board; # Խ ⺻ (config/global.php) - global $o, $c; - - $sql = search2sql($o, 0); - $count = get_board_info($table); - - # idx ū ȣ - $result = sql_query("SELECT COUNT(*) as cnt FROM $table WHERE idx > '$idx' $sql", $c); - $count['cur'] = sql_result($result, 0, 'cnt'); - sql_free_result($result); - - # ° - # ( 1 ϱ 1 ) - $page = intval($count['cur'] / $board['perno']) + 1; - - return $page; -} - -# , Լ -function get_pos($table, $idx) { - global $o, $c, $db; - - $sql = search2sql($o, 0); - - $idxdp = $idx + 1; - $idxdm = $idx - 1; - $idxplus = $idx + 10; - $idxminus = $idx - 10; - - # idx ȣ ߿ idx ū () - #$query = "SELECT MAX(idx) AS idx FROM $table WHERE idx < '$idx' $sql"; - #$result = sql_query($query, $c); - $query = "SELECT MAX(idx) AS idx FROM $table WHERE (idx BETWEEN '$idxminus' AND '$idxdm') $sql"; - $result = sql_query($query, $c); - $pos['next'] = sql_result($result, 0, "idx"); - sql_free_result($result); - if ( $pos['next'] ) { - $query = "SELECT no, title, num, reto FROM $table WHERE idx = '{$pos['next']}'"; - $result = sql_query($query, $c); - $next = sql_fetch_array($result); - sql_free_result($result); - $next['title'] = str_replace("&","&",$next['title']); - $next['title'] = preg_replace("/(#|')/","\\\\1",htmlspecialchars($next['title'])); - - $pos['next'] = $next['no']; - if($next['reto']) { - $query = "SELECT num FROM $table WHERE no = '{$next['reto']}'"; - $result = sql_query($query, $c); - $next['num'] = sql_result($result, 0, "num"); - sql_free_result($result); - $pos['next_t'] = "Reply of No.{$next['num']}: {$next['title']}"; - } else { - $pos['next_t'] = "No.{$next['num']}: {$next['title']}"; - } - } - - # idx ū ȣ ߿ idx () - #$query = "SELECT MIN(idx) AS idx FROM $table WHERE idx > '$idx' $sql"; - #$result = sql_query($query, $c); - $query = "SELECT MIN(idx) AS idx FROM $table WHERE (idx BETWEEN '$idxdp' AND '$idxplus') $sql"; - $result = sql_query($query, $c); - $pos['prev'] = sql_result($result, 0, "idx"); - sql_free_result($result); - if($pos['prev']) { - $query = "SELECT no, title, num, reto FROM $table WHERE idx = '{$pos['prev']}'"; - $result = sql_query($query, $c); - $prev = sql_fetch_array($result); - sql_free_result($result); - $prev['title'] = str_replace("&","&",$prev['title']); - $prev['title'] = preg_replace("/(#|')/","\\\\1",htmlspecialchars($prev['title'])); - - $pos['prev'] = $prev['no']; - if($prev['reto']) { - $query = "SELECT num FROM $table WHERE no = '{$prev['reto']}'"; - $result = sql_query($query, $c); - $prev['num'] = sql_result($result, 0, "num"); - sql_free_result($result); - $pos['prev_t'] = "Reply of No.{$prev['num']}: {$prev['title']}"; - } else { - $pos['prev_t'] = "No.{$prev['num']}: {$prev['title']}"; - } - } - - return $pos; -} - -# PHP microtime Լ Ͽ ð Լ -# -# explode - ڿ ڿ -# http://www.php.net/manual/function.explode.php -function get_microtime($old, $new) { - $start = explode(" ", $old); - $end = explode(" ", $new); - - return sprintf("%.2f", ($end[1] + $end[0]) - ($start[1] + $start[0])); -} - -# ˸ (html/head.php) -# -# basename - ο ϸ -# http://www.php.net/manual/function.basename.php -function get_title() { - global $board, $_; # Խ ⺻ (config/global.php) - - $title = $board['title']; - - # SCRIPT_NAME̶ ġ ȯ ( PHP ) - $script = $_SERVER['SCRIPT_NAME']; - $script = basename($script); - - switch($script) { - case "list.php": - $title .= " " . $_('get_v'); - break; - case "read.php": - $title .= " " . $_('get_r'); - break; - case "edit.php": - $title .= " " . $_('get_e'); - break; - case "write.php": - $title .= " " . $_('get_w'); - break; - case "reply.php": - $title .= " " . $_('get_re'); - break; - case "delete.php": - $title .= " " . $_('get_d'); - break; - case "user.php": - $title .= " " . $_('get_u'); - break; - case "regist.php": - $title .= " " . $_('get_rg'); - break; - } - - return $title; -} - -function get_article($table, $no, $field0 = "*", $field1 = "no") { - global $_, $c, $db; - if(!$no) - print_error($_('get_no'),250,150,1); - - $result = sql_query("SELECT $field0 FROM $table WHERE $field1 = '$no'", $c); - $article = sql_fetch_array($result); - sql_free_result($result); - - if(!$article) - print_error($_('get_n'),250,150,1); - - return $article; -} - -# ũ Լ by ĥ -# $bfsize bytes ũ -# -# number_formant() - 3ڸ ĸ -function human_fsize($bfsize, $sub = "0") { - $BYTES = number_format($bfsize) . " Bytes"; // 3ڸ ĸ - - if($bfsize < 1024) return $BYTES; # Bytes - elseif($bfsize < 1048576) $bfsize = number_format($bfsize/1024,1) . " KB"; # KBytes - elseif($bfsize < 1073741827) $bfsize = number_format($bfsize/1048576,1) . " MB"; # MB - else $bfsize = number_format($bfsize/1073741827,1) . " GB"; # GB - - if($sub) $bfsize .= "($BYTES)"; - - return $bfsize; -} - -function viewfile($tail) { - global $board, $table, $list, $upload; - global $_, $icons, $agent; - - $upload_file = "./data/$table/{$upload['dir']}/{$list['bcfile']}/{$list['bofile']}"; - $wupload_file = "./data/$table/{$upload['dir']}/{$list['bcfile']}/".urlencode($list['bofile']); - - $source1 = "
    \n---- {$list['bofile']} " . $_('inc_file') . " -------------------------- \n
    \n

    \n";
    -  $source2 = "\n
    \n

    "; - $source3 = " {$list['bofile']} file is broken link!!\n\n"; - - if (@file_exists($upload_file)) { - if ($agent['br'] == "MSIE" && $agent['vr'] >= 6) - $bmpchk = "|bmp"; - - if (preg_match("/^(gif|jpg|png{$bmpchk})$/i",$tail)) { - $imginfo = GetImageSize($upload_file); - if($agent['co'] == "mozilla") $list['bofile'] = urlencode($list['bofile']); - $uplink_file = "./form.php?table=$table&mode=photo&f[c]={$list['bcfile']}&f[n]={$list['bofile']}&f[w]={$imginfo[0]}&f[h]={$imginfo[1]}"; - $uplink_file = htmlspecialchars ($uplink_file); - if($imginfo[0] > $board['width'] - 6 && !preg_match("/%/",$board['width'])) { - $p['vars'] = $imginfo[0]/$board['width']; - $p['width'] = $board['width'] - 6; - $p['height'] = intval($imginfo[1]/$p['vars']); - - if(extension_loaded("gd") && $tail != "gif" && $tail != "bmp") { - $ImgUrl = rawurlencode($wupload_file); - $ImgPath = "\"\""; - } else - $ImgPath = "\"\""; - - $p['up'] = "[ Original Size {$imginfo[0]} * {$imginfo[1]} ]
    \n"; - $p['up'] .= "$ImgPath\n

    \n"; - } else { - $p['up'] = "\"\"\n

    \n"; - } - } else if (preg_match("/^(phps|txt|html?|shs)$/i",$tail)) { - $view = readfile_r ($upload_file); - $view = htmlspecialchars(cut_string($view,1000)); - if (filesize($upload_file) > 1000) $view = $view . "

    \n ......" . $_('preview') . "\n\n"; - - $p['down'] = "$source1$view$source2"; - } elseif (preg_match("/^(mid|wav|mp3)$/i",$tail)) { - if($tail == 'mp3') { - $p['up'] = << - - - - - - - -EOF; - } elseif($agent['tx']) - $p['bo'] = ''; - else - $p['bo'] = ""; - } elseif (preg_match("/^(mpeg|mpg|asf|dat|avi|wmv)$/i",$tail)) { - if($agent['br'] == "MSIE") $p['up'] = ""; - } elseif ($tail == "mov" && $agent['br'] == "MSIE") { - $p['up'] = ""; - } elseif ($tail == "swf") { - $flash_size = $board['width'] - 10; - if($agent['br'] == 'MSIE' || $agent['nco'] == 'moz') - $p['up'] = ""; - } - } else $p['down'] = "$source1$source3$source2"; - - return $p; -} - -# http socket Ͽ html source Լ -# : HTTP/1.1 -# -# $url -> ش ּ (http:// ) -# $size -> ش size -# $file -> URI -# $type -> socket(1) Ǵ fopen(null) -function get_html_src($url,$size=5000,$file="",$type="") { - if(!$type) { - $p = @fsockopen($url,80,$errno,$errstr); - fputs($p,"GET /$file HTTP/1.1\r\nhost: $url\r\n\r\n"); - } else $p = @fopen("http://$url/$file","rb"); - $f = fread($p,$size); - fclose($p); - - if(!$type) { - $s = explode("\n",$f); - return $s; - } else return $f; -} - -# upload -# -function get_upload_value($up) { - if($up['yesno']) { - if($up['maxtime']) set_time_limit($up['maxtime']); - # JSBoard ִ ε ִ - # ִ밪 POST Ÿ post_max_size 1M ۰ ´. - $max = ini_get('post_max_size'); - if(preg_match("/M$/i",$max)) { - $max = (preg_replace("/M$/i","",$max) - 1) * 1024 * 1024; - } elseif (preg_match("/K$/i",$max)) { - $max = (preg_replace("/K$/i","",$max) - 1) * 1024; - } else { - $max -= 1024; - } - ini_set('upload_max_filesize',$max); - $size = ($up['maxsize'] > $max) ? $max : $up['maxsize']; - - return $size; - } else return 0; -} - -function readfile_r ($_f, $_array = 0) { - if ( ! file_exists ($_f) ) - print_error ("$_f not found", 250, 250, 1); - - if ( $_array ) { - $_r = @file ($_f); - $_r = preg_replace ("/\n$/", '', $_r); - } else { - ob_start (); - readfile ($_f); - $_r = ob_get_contents (); - ob_end_clean (); - } - - return $_r; -} - -function writefile_r ($_file, $_text, $attach = 0) { - $_m = $attach ? 'ab' : 'wb'; - - $p = fopen ($_file, $_m); - - if ( ! is_resource ($p) ) - print_error ("Can't not open {$_file}\n", 250, 250, 1); - - if ( check_windows () ) { - $_s = array ("/\n/", "/\r*\n/"); - $_t = array ("\r\n", "\r\n"); - } else { - $_s = array ("/ /", "/\r\n/"); - $_t = array ('', "\n"); - } - - $s = preg_replace ($_s, $_t, $_text); - - fwrite ($p, $s); - fclose ($p); -} - -function content_disposition ($n) { - global $agent, $_, $_code; - - switch ($n) { - case 'Firefox' : - # RFC 2231 - $r = 'filename*0*' . $_code . '*' . $_('charset') . '*=' . rawurlencode ($n); - break; - case 'Opera' : - if ($agent['vr'] > 6) - $r = 'filename*0*' . $_code . '*' . $_('charset') . '*=' . rawurlencode ($n); - else - $r = 'filename="' . $n . '"'; - break; - default: - # RFC 2047 - #$r = '=?'.$_('charset').'?B?'.base64_encode($dn['name']).'?='; - $r = 'filename="' . $n . '"'; - } - - return $r; -} -?> diff --git a/include/header.ph b/include/header.ph new file mode 100644 index 00000000..5dfd928f --- /dev/null +++ b/include/header.ph @@ -0,0 +1,31 @@ +\nalert('Don\'t exist global\\nconfiguration file');\n" . + "history.back();\nexit;\n\n"; +} else { include("config/global.ph"); } + +include("include/lang.ph"); +include("include/exec.ph"); +include("include/auth.ph"); +include("include/check.ph"); +include("include/error.ph"); +include("include/get.ph"); +include("include/list.ph"); +include("include/parse.ph"); +include("include/print.ph"); +include("include/sql.ph"); +include("include/sendmail.ph"); +include("include/tableratio.ph"); + +# table ų meta character üũ +meta_char_check($table,0,1); + +if ($upload[yesno] == "yes" && $cupload[yesno] == "yes") $colspan = "7"; +else $colspan = "6"; + +if(strtoupper($color[bgcol]) == strtoupper($color[l4_bg]) && eregi("list.php",$PHP_SELF)) { + $form_border = "1x"; +} elseif(strtoupper($color[bgcol]) == strtoupper($color[r5_bg]) && eregi("read.php",$PHP_SELF)) { + $form_border = "1x"; +} else $form_border = "2x"; +?> diff --git a/include/header.php b/include/header.php deleted file mode 100644 index 21f1c275..00000000 --- a/include/header.php +++ /dev/null @@ -1,147 +0,0 @@ -\nalert('Ugly access with table variable with \'{$table}\'');\n" . - "history.back();\nexit;\n\n"; - exit; -} - -include_once 'include/variable.php'; -include_once "include/error.php"; -include_once "include/print.php"; -# GET/POST -parse_query_str (); - -if ( ! @file_exists ("config/global.php") ) { - echo "\n"; - exit; -} else { include_once "config/global.php"; } - - -############################################################################## -# ǵ Ѵ!!!!! -############################################################################## -if ( trim ($table) ) { - if ( @file_exists ("data/$table/config.php") && $board['uconf'] ) { - @include_once "data/$table/config.php"; - } - - if ( @file_exists ("data/$table/stylesheet.php") ) { - @include_once"data/$table/stylesheet.php"; - - if( $user_stylesheet ) { - $user_stylesheet = preg_replace ('/<[\/]*STYLE[^>]*>/i','',$user_stylesheet); - $user_stylesheet = "\n". - "\n". - "\n"; - } - } - - # Խ ڰ null 츦 Ͽ null ϶ admin - $board['ad'] = ! $board['ad'] ? "admin" : $board['ad']; - - # theme ȣ - if ( ! $path['type'] ) { - include_once "./theme/{$print['theme']}/config.php"; - } -} else { - include_once "theme/{$print['theme']}/config.php"; -} - -if ( file_exists ("./config/external.php") ) { - unset ($edb); - include_once "./config/external.php"; -} - -putenv ("JSLANG={$_code}"); - -include_once "include/version.php"; -include_once "language/lang.php"; -include_once "include/check.php"; -if(!check_windows()) { include_once "include/exec.php"; } -include_once "include/get.php"; -include_once "include/list.php"; -include_once "include/sURI.php"; -include_once "include/parse.php"; -include_once "database/db.php"; -include_once "include/replicate.php"; -include_once "include/sendmail.php"; - -sessionInit($board['sessTmp']); -init_htmltag(); -session_start (); -if ( ! session_is_registered ($jsboard) && ! preg_match ('/session\.php/i', $_pself) ) - session_destroy (); - -$agent = get_agent (); -$db = replication_mode ($db); - -if ( ! ini_get ('file_uploads') || $agent['tx'] ) $noup = 1; - -if ( preg_match ('/(act|write|edit|reply)\.php/i', $_pself)) - $upload['maxsize'] = get_upload_value ($upload); - -# ܺ hyper link -check_dhyper ($board['usedhyper'], $board['endhyper'], $board['dhyper'], $enable['dhyper'], $enable['plink']); -check_access ($board['useipbl'], $board['ipbl'], $enable['ipbl']); - -# write, edit, reply page form size ======================== -$size['name'] = ! $size['name'] ? form_size (14) : form_size ($size['name']); -$size['pass'] = ! $size['pass'] ? form_size (4) : form_size ($size['pass']); -$size['titl'] = ! $size['titl'] ? form_size (25) : form_size ($size['titl']); -$size['text'] = ! $size['text'] ? form_size (30) : form_size ($size['text']); -$size['uplo'] = ! $size['uplo'] ? form_size (19) : form_size ($size['uplo']); - -$referer = parse_referer (); - -# table ų meta character üũ -if ( ! preg_match ('/(user|session|regist|error|image)\.php/i', $_pself)) { - if ( $dn['tb'] ) $table = $dn['tb']; - meta_char_check ($table, 0, 1); - meta_char_check ($print['theme'], 0, 1); -} - -if ( $upload['yesno'] && $cupload['yesno'] ) $colspan = "7"; -else $colspan = "6"; - -# -if ( session_is_registered ($jsboard) ) { - if ( $_SESSION[$jsboard]['pos'] == 1 ) $board['super'] = 1; - if ( strstr ($board['ad'],";") ) { - if ( preg_match ("/{$_SESSION[$jsboard]['id']};|;{$_SESSION[$jsboard]['id']}/", $board['ad']) ) $board['adm'] = 1; - } else { - if ( preg_match ("/^{$_SESSION[$jsboard]['id']}$/", $board['ad'])) $board['adm'] = 1; - } -} - -if ( preg_match("/(read|list)\.php/i", $_pself) ) { - if ( $theme['ver'] != $designer['ver'] ) print_error ($_('nomatch_theme'), 250, 150, 1); -} - -# login button -if ( session_is_registered($jsboard) ) { - if ( @file_exists ("./theme/{$print['theme']}/img/logout.gif") ) - $print['lout'] = "\"LOGOUT\""; - else $print['lout'] = ">> logout "; - - $print['lout'] = "{$print['lout']}"; -} -?> diff --git a/include/lang.ph b/include/lang.ph new file mode 100644 index 00000000..9c6a9554 --- /dev/null +++ b/include/lang.ph @@ -0,0 +1,14 @@ + diff --git a/include/list.ph b/include/list.ph new file mode 100644 index 00000000..a7fcfbc2 --- /dev/null +++ b/include/list.ph @@ -0,0 +1,146 @@ +$list[title]",$list[title]); + } + + if($list[reno]) { + $list[rede] *= 10; + $list[title] = "\"\"" . + "\"$langs[ln_re]\" $list[title]"; + $list[num] = " "; + + $bg = $color[l3_bg]; + $fg = $color[l3_fg]; + } else { + $bg = $color[l2_bg]; + $fg = $color[l2_fg]; + } + + if ( $o[er] == "y") { + $list[title] = eregi_replace("", "", $list[title]); + $list = search_hl($list); + $list[title] = eregi_replace("", "\"\"\"$langs[ln_re]\"", $list[title]); + } else { + $list = search_hl($list); + } + + $date = date($board[date_fmt], $list[date]); + + $list[refer] = sprintf("%5d", $list[refer]); + $list[refer] = str_replace(" ", ".", $list[refer]); + $list[refer] = ereg_replace("^(\.+)", "\\1", $list[refer]); + + if($list[email]) { + $list[name] = url_link($list[email], $list[name], $fg, $list[no]); + } else { + $list[name] = "$list[name]"; + } + + // ̸ + if ($enable[pre]) { + $list[ptext] = cut_string($list[text],$enable[preren]); + $list[ptext] = htmlspecialchars($list[ptext]); + $list[ptext] = eregi_replace("(\r*)\n","
    ",$list[ptext]); + $list[ptext] = eregi_replace("#|'","\\\1",$list[ptext]); + $list[preview] = " onMouseOver=\"drs('$list[ptext]'); return true;\" onMouseOut=\"nd(); return true;\""; + } + + echo(" + + $list[num] + \n$list[title]\n + $list[name] "); + + if ($upload[yesno] == "yes") { + if($cupload[yesno] == "yes") { + 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); + $list[icon] = "\"$list[bofile]"; + $up_link = ""; + $up_link_x = ""; + } else { + $list[icon] = " "; + $up_link = ""; + $up_link_x = ""; + } + echo(" $up_link$list[icon]$up_link_x\n"); + } + } + + echo(" $date"); + + if(get_date() <= $list[date]) { + echo(" + \"*\" + $list[refer]"); + } else { + echo(" + $list[refer]"); + } + echo(" +\n"); +} + +function get_list($table, $pages, $reply = 0) +{ + global $color, $board; + global $o, $enable, $PHP_SELF; + + if($reply[ck]) $sql = search2sql($reply); + else $sql = search2sql($o); + + if ($enable[re_list] && eregi("read.php",$PHP_SELF)) $query = "SELECT * FROM $table $sql ORDER BY idx DESC"; + else $query = "SELECT * FROM $table $sql ORDER BY idx DESC LIMIT $pages[no], $board[perno]"; + + $result = sql_query($query); + if(sql_num_rows($result)) { + while($list = sql_fetch_array($result)) { + print_list($table,$list,$reply); + } + } else { + print_narticle($table, $color[l2_fg], $color[l2_bg], 1); + } + sql_free_result($result); +} + +function print_narticle($table, $fg, $bg, $print = 0) +{ + global $o, $colspan, $langs; + + if($o[at] == "s") $str = "$langs[no_seacrh]"; + else $str = "$langs[no_art]"; + + $article = " + + +
    $str

    + +\n"; + + if($print) echo $article; + + return $article; +} +?> diff --git a/include/list.php b/include/list.php deleted file mode 100644 index 1ab6c0fc..00000000 --- a/include/list.php +++ /dev/null @@ -1,304 +0,0 @@ - $nolenth ? strlen($list['no']) : $nolenth; - - if($board['rnname'] && preg_match("/^(2|3|5|7)/",$board['mode'])) { - $list['name'] = $list['rname'] ? $list['rname'] : $list['name']; - } - $list['name'] = unhtmlspecialchars($list['name']); - $list['name'] = htmlspecialchars(cut_string($list['name'],$board['nam_l'])); - $list['name'] = trim(ugly_han($list['name'])); - $list['title'] = unhtmlspecialchars($list['title']); - - if(preg_match("/]*color=/i",$list['title'])) { - $fchk = 1; - $list['title'] = preg_replace("/]*color=([a-z0-9#]+)[^>]*>/i","",$list['title']); - $board['tit_l'] += 28; - } - - # read ñ ½ - if(!$r['ln']) $list['title'] = htmlspecialchars(cut_string($list['title'],$board['tit_l']-$list['rede']*2)); - else $list['title'] = htmlspecialchars(cut_string($list['title'],$board['tit_l']-$r['ln']-$list['rede']*2)); - - if ($fchk == 1) { - $fchk = 0; - $board['tit_l'] -= 28; - } - - $list['title'] = preg_replace("/<((\/)*font[^&]*)>/i","<\\1>",$list['title']); - $list['title'] = ugly_han($list['title']); - $list['title'] = preg_replace("/\"/",""",$list['title']); - - $list = search_hl($list); - - if($enable['re_list']) { - if($no == $list['no']) $list['title'] = str_replace($list['title'],"{$list['title']}",$list['title']); - } - - if(file_exists("./theme/{$print['theme']}/img/rep.gif")) $repimg = "./theme/{$print['theme']}/img/rep.gif"; - else $repimg = "./images/rep.gif"; - - if($list['reno']) { - $list['rede'] *= 10; - $list['title'] = "\"\"" . - "\"" {$list['title']}"; - $list['num'] = " "; - - $trclass = 'row1'; - $tdclass = 'rowbg1'; - } else { - $trclass = 'row0'; - $tdclass = 'rowbg0'; - } - - $date = date($board['date_fmt'], $list['date']); - - $list['refer'] = sprintf("%5d", $list['refer']); - $list['refer'] = str_replace(" ", ".", $list['refer']); - $list['refer'] = preg_replace("/^(\.+)/", "\\1", $list['refer']); - - if ( $list['email'] ) { - $list['name'] = url_link($list['email'], $list['name']); - } - - # ̸ - if($enable['pre']) { - $list['ptext'] = cut_string($list['text'],$enable['preren']); - $list['ptext'] = preg_replace("/#|'|\\\\/i","\\\\\\0",$list['ptext']); - $list['ptext'] = htmlspecialchars(htmlspecialchars($list['ptext'])); - $list['ptext'] = preg_replace("/\r*\n/i","
    ",$list['ptext']); - $list['ptext'] = trim(str_replace("&amp;","&",$list['ptext'])); - $list['preview'] = " onMouseOver=\"drs('{$list['ptext']}'); return true;\" onMouseOut=\"nd(); return true;\""; - } - - if($enable['comment'] && $list['comm'] > 0) - $comment_size = "[{$list['comm']}]"; - - # UPLOAD - if($upload['yesno']) { - if($cupload['yesno']) { - 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); - $list['icon'] = "{$list["; - $up_link = ""; - $up_link_x = ""; - } else { - $list['icon'] = " "; - $up_link = ""; - $up_link_x = ""; - } - $field['upload'] = "$up_link{$list['icon']}$up_link_x"; - } - } else $field['upload'] = ""; - - if(get_date() >= $list['date']) - $field['dates'] = "$date "; - else - $field['dates'] = "$date "; - - $field['no'] = "{$list['num']}"; - $field['title'] = "{$list['title']} $comment_size"; - $field['name'] = "{$list['name']} "; - $field['refer'] = "{$list['refer']} "; - $field['nulls'] = ""; - - # td field ʾ ⺻ Ѵ. - $td_array = !$td_array ? "nTNFDR" : $td_array; - $prints = "\n\n"; - for($i=0;$i -1 ) - $limits = $readchk ? '' : ' ' . compatible_limit ($pages['no'], $board['perno']); - - $sql = $reply['ck'] ? search2sql($reply, 1) : search2sql($o); - - $com_field = $enable['comment'] ? "comm, " : ""; - $columns = 'no, num, idx, date, name, rname, email, url, title, text, '. - 'refer, reyn, reno, rede, reto, html, '. - $com_field . - 'bofile, bcfile, bfsize'; - $query = "SELECT {$columns} FROM {$table} {$sql} ORDER BY idx DESC{$limits}"; - - $result = sql_query($query, $c); - if ( sql_num_rows ($result) ) { - $styleno = 0; - while ( $list = sql_fetch_array ($result) ) { - if ($print) echo print_list ($table,$list,$reply, $styleno); - else $lists .= print_list ($table,$list,$reply, $styleno); - $styleno++; - } - } else { - if($print) echo print_narticle($table); - else $lists = print_narticle($table); - } - - # Ʈ ̿ ֱ ڵ - if($lines['design'] && !$print) { - $colspan_no = $upload['yesno'] ? "6" : "5"; - $lines['design'] = preg_replace("/=[\"']?AA[\"']?/","=\"$colspan_no\"",$lines['design']); - $lists = preg_replace("/###LINE-DESIGN###\\\n$/i","",$lists); - $lists = str_replace("###LINE-DESIGN###","\n\n{$lines['design']}\n\n",$lists); - } - - sql_free_result($result); - return $lists; -} - -function print_narticle($table, $print = 0) { - global $o, $colspan, $_, $_lang; - - if($o['at'] == "s") $str = $_('no_search'); - else $str = $_('no_art'); - - $article = "\n". - "\n". - " \n". - "
    $str

    \n". - " \n". - "\n"; - - if($print) echo $article; - - return $article; -} - -function get_comment($table,$no,$prints=0) { - global $lines, $corder, $_, $page, $print; - global $c, $db; - - $corder = ($corder != 2) ? 1 : $corder; - $orderby = ($corder == 2) ? "DESC" : "ASC"; - - $sql = "SELECT * FROM {$table}_comm WHERE reno = '$no' ORDER BY no $orderby"; - $r = sql_query($sql, $c); - - $comment_no = sql_num_rows($r); - - # check of image exists - if(file_exists("./theme/{$print['theme']}/img/cdelete.gif")) $delimgcheck = 1; - - if($corder == 2) { - $imgfile = "./theme/{$print['theme']}/img/csortup.gif"; - $sortimg = file_exists($imgfile) ? "" : "△"; - $orlink = "$sortimg"; - } else { - $imgfile = "./theme/{$print['theme']}/img/csortdn.gif"; - $sortimg = file_exists($imgfile) ? "" : "▽"; - $orlink = "$sortimg"; - } - - if($comment_no > 0) { - $lists .= "\n". - "Total Comment : $comment_no\n". - "SORT $orlink\n". - "\n"; - - while ($list = sql_fetch_array($r)) { - if($lines['comment_design']) $lists .= $lines['comment_design']; - $lists .= print_comment_art($table,$list,0,$delimgcheck); - } - } - - if($lines['comment_design']) $lists .= $lines['comment_design']; - conv_emoticon ($lists, $GLOBALS['enable']['emoticon']); - - if($prints) echo $lists; - else return $lists; -} - -function print_comment_art($table,$list,$prints=0,$delimg) { - global $jsboard, $board, $page, $no, $delimgcheck, $print; - global $_config; - - $list['name'] = ugly_han(htmlspecialchars(trim($list['name']))); - $list['name'] = preg_replace("/&(lt|gt|quot)/i","&\\1",$list['name']); - $list['text'] = ugly_han(htmlspecialchars(trim($list['text']))); - $list['text'] = preg_replace("/&(lt|gt|quot)/i","&\\1",$list['text']); - $list['text'] = str_replace(""","\"",$list['text']); - $list['text'] = preg_replace("/<(\/?FONT[^&]*)>/i","<\\1>",$list['text']); - - $list['text'] = auto_link($list['text']); - wikify($list['text']); - $list['date'] = date("m/d H:i:s",$list['date']); - - if(($board['adm'] || $board['super'] == 1) || - (preg_match("/^(2|3|5|7)$/i",$board['mode']) && $_SESSION[$jsboard]['id'])) { - $delPath = "./act.php?table=$table&o[at]=c_del&atc[no]=$no&atc[cid]={$list['no']}&page=$page"; - } else { - $delPath = "./login.php?table=$table&mode=comment&no=$no&cid={$list['no']}&page=$page"; - } - - if((preg_match("/^(2|3|5|7)$/i",$board['mode']) && $_SESSION[$jsboard]['id'] != $list['name']) && - (!$board['adm'] && $board['super'] != 1)) { - $del_mark = " "; - } else { - $dmark = $delimg ? "" : "ⓧ"; - $del_mark = "$dmark"; - } - - if ( $board['rnname'] && preg_match ('/^(2|3|5|7)$/',$board['mode']) ) - $names = $list['rname'] ? $list['rname'] : $list['name']; - else $names = $list['name']; - - $ret = "\n". - "$del_mark\n". - "". - "{$names}\n". - "{$list['text']}\n". - "{$list['date']} \n". - "\n"; - - if($prints) echo $ret; - else return $ret; -} -?> diff --git a/include/ostype.ph b/include/ostype.ph new file mode 100644 index 00000000..0d6f0bc6 --- /dev/null +++ b/include/ostype.ph @@ -0,0 +1,16 @@ + 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.ph b/include/parse.ph new file mode 100644 index 00000000..61180d84 --- /dev/null +++ b/include/parse.ph @@ -0,0 +1,357 @@ + 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") + return; + + $str = trim($o[ss]); + $str = stripslashes($str); + + 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); + } + + 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) { + if($o[at] != "s") return; + + $str = rawurldecode($o[ss]); // ˻ ڿ ȣȭ + $str = trim($str); + + if(strlen(stripslashes($str)) < 3 && !$o[op]) { + if($o[sc] != "r" && $o[st] != "t") + print_error("˻ ѱ 2, 3 ̻̾ մϴ."); + } + + + if(!$o[er]) { + # % SQL ǿ And ̹Ƿ \ ٿ Ϲ Ÿ + $str = str_replace("%","\%",$str); + # \%\% and Ͽ % + $str = str_replace("\%\%","%",$str); + $str = addslashes($str); + + if (eregi("\"",$str)) + print_error("[\"'] Ե ˻ ˻ϽǼ ϴ."); + } + + $sql = $wh ? "WHERE " : "AND "; + $today = get_date(); + $month = $today - (60 * 60 * 24 * 30); + $week = $today - (60 * 60 * 24 * 7); + + switch($o[st]) { + case 't': $sql .= "(date >= $today)"; + break; // + case 'w': $sql .= "(date >= $week) AND "; + break; // ϰ + case 'm': $sql .= "(date >= $month) AND "; + break; // Ѵް + } + + if($o[er]) $str = "REGEXP \"$str\""; + else $str = "LIKE \"%$str%\""; + + switch($o[sc]) { + case 'a': $sql .= "(title $str OR text $str)"; + break; + case 'c': $sql .= "(text $str)"; + break; + case 'n': $sql .= "(name $str)"; + break; + case 't': $sql .= "(title $str)"; + break; + case 'r': $sql .= "(no = $o[no] OR reto = $o[no])"; + break; + } + + return $sql; +} + +# ˻ ڿ ̶ Լ +# +# explode - ڿ ڿ +# http://www.php.net/manual/function.explode.php +# rawurldecode - ȣȭ URL ȣȭ +# http://www.php.net/manual/function.rawurldecode.php +# trim - ڿ ڸ +# http://www.php.net/manual/function.trim.php +# stripslashes - +# http://www.php.net/manual/function.stripslashes.php +# quotemeta - +# http://www.php.net/manual/function.quotemeta.php +function search_hl($list) { + global $board; # Խ ⺻ (config/global.ph) + global $o; + + $hl = explode("STR", $board[hl]); + + if(!$o[ss]) return $list; + + $str = rawurldecode($o[ss]); + $str = trim($str); + $str = stripslashes($str); + + if(!$o[er]) $str = quotemeta($str); + + switch($o[sc]) { + case 'n': + $list[name] = eregi_replace($str, "$hl[0]\\0$hl[1]", $list[name]); + break; + case 't': + $list[title] = eregi_replace($str, "$hl[0]\\0$hl[1]", $list[title]); + break; + case 'c': + $list[text] = eregi_replace($str, "$hl[0]\\0$hl[1]", $list[text]); + $list[text] = eregi_replace("]*)>","",$list[text]); + break; + case 'a': + $list[text] = eregi_replace($str, "$hl[0]\\0$hl[1]", $list[text]); + $list[title] = eregi_replace($str, "$hl[0]\\0$hl[1]", $list[title]); + $list[text] = eregi_replace("]*)>","",$list[text]); + break; + } + + return $list; +} + +function text_nl2br($text, $html) { + global $langs; + if($html) { + $text = eregi_replace("<(\\?|%)(.*)(\\?|%)>", "<\\1\\2\\3?>", $text); + $text = eregi_replace("<([/]*)(pre|xmp)>","",$text); + $text = ereg_replace("\r\n", "\n", $text); + $text = auto_link($text); + $text = eregi_replace("(\n)?(\n)?","

    ",$text);
    +    $text = "
    $text
    "; + } else { + $text = htmlspecialchars($text); + # ѱ ° + if ($langs[code] == "ko") $text = ugly_han($text); + $text = "
    \n$text\n
    "; + $text = auto_link($text); + } + return $text; +} + +function delete_tag($text) { + $text = eregi_replace("]*)>","",$text); + $text = eregi_replace("(.*)","",$text); + $text = eregi_replace("<(\/)*(div|layer|body|html|head|meta)[^>]*>","",$text); + $text = eregi_replace("<(style|script|title)(.*)","",$text); + $text = eregi_replace("<[/]*(script|style|title|xmp)>","",$text); + $text = eregi_replace("<(\\?|%)","<\\1",$text); + $text = eregi_replace("(\\?|%)>","\\1>",$text); + $text = chop($text); + + return $text; +} + +# ڿ ̷ ڸ Լ +# +# ѱ ѹƮ ߸ 츦 빮ڰ +# ҹڿ ũ (1.5?) ڿ ڸ +# +# intval - +# http://www.php.net/manual/function.intval.php +# substr - ڿ ߶ +# http://www.php.net/manual/function.substr.php +# chop - ڿ +# http://www.php.net/manual/function.chop.php +function cut_string($s, $l) { + if(strlen($s) <= $l && !eregi("^[a-z]+$", $s)) + return $s; + + for($i = $l; $i >=1; $i--) { + // ѱ byte . + if(is_hangul($s[$i-1])) $hangul++; + else break; + } + + if ($hangul) { + // byte Ȧ̸, ѱ ù° Ʈ̴. + // ѱ ù° Ʈ ̸ + // Ʈ + if ($hangul%2) $l--; + + $s = chop(substr($s, 0, $l)); + } + else { // ڿ ѱ ƴ + for($i = 1; $i <= $l; $i++) { + // 빮 + if(is_alpha($s[$i-1]) == 2) $alpha++; + // ѱ Ÿ ġ + if(is_hangul($s[$i-1])) $last_han=$i; + } + + // ̷ ڿ ڸ ڿ ڸ + // 빮 ̴ 1.3 Ѵ. ڿ ڿ + // ü ̺ ũ ʰ ŭ . + $capitals = intval($alpha * 0.5); + if ( ($l-$last_han) <= $capitals) $capitals=0; + $s = chop(substr($s, 0, $l - $capitals)); + } + + return $s; +} + +# 뿡 ִ URL ãƳ ڵ ũ ִ Լ +# +# eregi_replace - ǥ ̿ ġȯ (ҹ ) +# http://www.php.net/manual/function.eregi-replace.php +function auto_link($str) { + global $color; + $agent = get_agent(); + + $regex[file] = "gz|tgz|tar|gzip|zip|rar|mpeg|mpg|exe|com|rpm|dep|rm|ram|asf|ace|viv|avi|mid|gif|jpg|png|bmp|eps|mov"; + $regex[http] = "(http|https|ftp|telnet|news):\/\/([a-z0-9_\-]+\.[][a-z0-9:;&#@=_~%\?\/\.\,\+\-]+)"; + $regex[mail] = "([a-z0-9_\.\-]+)@([a-z0-9_\-]+\.[a-z0-9\-\._\-]+)"; + $regex[notarget] = "(http|https|ftp|news):\/\/([a-z0-9_\-]+\.[][a-z0-9:;&#@=_~%\?\/\.\,\+\-]+)\/[][a-z0-9:#@_~%\/\.\,\+\-]+\.($regex[file])"; + + # < ±װ ٿ nl2br()
    ±װ + # پ ٱ ˻Ͽ ̾ + $str = eregi_replace("
    \n]+)\n([^<>\n]+)\n([^<>\n]+)>", "", $str); + $str = eregi_replace("\n]+)\n([^\n<>]+)>", "", $str); + + + # Ư ڿ ũ target + $str = eregi_replace("&(quot|gt|lt)","!\\1",$str); + + # html link ȣ + $str = eregi_replace("]*)>","", $str); + $str = eregi_replace("","", $str); + $str = eregi_replace("<([a-z0-9\"'%= ]+) (background|src)=([\"']*)($regex[http])([\"']*)","<\\1 \\2=\"\\5_orig://\\6\"",$str); + if($agent[br] != "MSIE") $str = eregi_replace("\\1", $str); + $str = eregi_replace("($regex[mail])","\\1", $str); + + # ȣ ġȯ ͵ + $str = eregi_replace("!(quot|gt|lt)","&\\1",$str); + $str = eregi_replace("(http|https|ftp|telnet|news)_orig","\\1", $str); + $str = eregi_replace("#-#","@",$str); + + # link 2 ̸ ϳ ٿ + $str = eregi_replace("(]*)>)+]*)>","\\1", $str); + $str = eregi_replace("()+","\\1", $str); + $str = eregi_replace("((\.+)|)","\\2",$str); + $str = eregi_replace("([a-z])(\.)*(\" target=\"_blank)\">","\\1\\3\">",$str); + $str = eregi_replace("([a-z])(\.)*\">","\\1\">",$str); + + # file link target + $str = eregi_replace("($str
    "; + } else if(check_url($url)) { + $str = "$str"; + } else { + $str = "$str"; + } + + return $str; +} + +# File upload Լ +# +# mkdir -> directory +# exec -> shell +# chmod -> file, direcoty +# +function file_upload($updir) { + global $userfile_size, $userfile, $userfile_name; + global $upload, $langs, $table, $exec; + + # 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 > $upload[maxsize]) { + echo ""; + exit; + } + + # file name + $userfile_name = eregi_replace(" ","",$userfile_name); + + # file name Ư ڰ ź + if (eregi("[^a-z0-9\._\-]",$userfile_name)) { + echo""; + exit; + } + + # php, cgi, pl file uploadҽÿ Ҽ phps, cgis, pls filename + $userfile_name = eregi_replace("([\.]*)$","",$userfile_name); + $userfile_name = eregi_replace(".(ph|inc|php[0-9a-z]*|phtml)$", ".phps", $userfile_name); + $userfile_name = eregi_replace("(.*).(cgi|pl|sh|html|htm|shtml|vbs)$", "\\1_\\2.phps", $userfile_name); + + meta_char_check($table,0,1); + meta_char_check($upload[dir]); + + mkdir("data/$table/$upload[dir]/$updir",0755); + exec("$exec[mv] \"$userfile\" \"data/$table/$upload[dir]/$updir/$userfile_name\""); + chmod("data/$table/$upload[dir]/$updir/$userfile_name",0644); + } +} + +# 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; +} +?> 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.ph b/include/prelist.ph new file mode 100644 index 00000000..0b8f20a3 --- /dev/null +++ b/include/prelist.ph @@ -0,0 +1,91 @@ + Ʈ ũ +# $p[name] -> ۾ +# $p[date] -> +# $p[count] -> ȸ +# +# table tag ϱ ؼ Ʒ prelist() Լ +# ؾ +# +function print_prlist($p) { + echo "$p[link] $p[name] - $p[date] $p[count]
    \n"; +} + + +# PHP ؼ 𸣽Ŵٰ Ͻô е ǵ帮 !!! +# table ̸ +# inc include +# $limit ۼ +# $cut ±ڼ +# $cn ̸ +# $cd +# $ce ̸ +# $cc ȸ +# $l ũ ɼ (: target onClick ) +# +function prelist($t,$inc,$limit=3,$cut=30,$cn=0,$cd=0,$ce=0,$cc=0,$l=0) { + global $prlist; + + include "$prlist[path]/config/global.ph"; + if($inc) { + include "$prlist[path]/include/error.ph"; + include "$prlist[path]/include/parse.ph"; + include "$prlist[path]/include/check.ph"; + include "$prlist[path]/include/sql.ph"; + } + + sql_connect($db[server], $db[user], $db[pass]); + sql_select_db($db[name]); + + $sql = "SELECT * FROM $t ORDER BY date DESC LIMIT $limit"; + $result = sql_query($sql); + $total = sql_num_rows($result); + + for ($i=0;$i<$total;$i++) { + mysql_data_seek($result,$i); + $row = mysql_fetch_array($result); + + $p[l] = $l ? " $l" : ""; + $p[no] = $row[no]; + $p[title] = $row[title]; + $p[name] = $cn ? $row[name] : ""; + $p[date] = $cd ? date("y.m.d",$row[date]) : ""; + $p[email] = $ce ? $row[email] : ""; + $p[count] = $cc ? $row[refer] : ""; + $p[preview] = cut_string(htmlspecialchars($row[text]),100); + + if($p[email] && $p[name]) + $p[name] = "$p[name]"; + + 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); + mysql_close(); +} + +?> 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.ph b/include/print.ph new file mode 100644 index 00000000..abc24c78 --- /dev/null +++ b/include/print.ph @@ -0,0 +1,568 @@ +"; +} + +# Խ ϴ "۾ | " κп | ϴ Լ +function separator($bg, $print = 0) { + $separator = "\"|\""; + if($print) echo $separator; + + return $separator; +} + +# ݽ ͽ FORM Էâ ũ ̸ ϱ +# intval - ȯ +# http://www.php.net/manual/function.intval.php +function form_size($size, $print = 0) { + global $langs; + + # Ŭ̾Ʈ Լ (include/get_info.ph) + $agent = get_agent(); + + # ׽ + if($agent[br] == "MOZL") { + if($agent[os] == "NT") { + if($agent[ln] == "KO") $size *= 1.1; # ѱ + else { + if ($langs[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") $size *= 1.0; + } + # ͳ ͽ÷η + if($agent[br] == "MSIE") { + if ($agent[os] == "NT") + if ($langs[code] == "ko") $size *= 2.3; + else $size *= 2.6; + else $size *= 2.3; + } + + if($agent[br] == "LYNX") $size *= 2; + + $size = intval($size); + if($print) echo $size; + + return $size; +} + +# ݽ ͽ FORM Էâ ũ ̸ ϱ +# intval - ȯ +# http://www.php.net/manual/function.intval.php +function form_wrap($print = 0) { + global $board, $langs; + + // Ŭ̾Ʈ Լ (include/get_info.ph) + $agent = get_agent(); + + if ($board[wrap] == "yes" && $agent[os] != "LINUX") { + $wrap[op] = "WRAP=hard"; + $wrap[ment] = " "; + } else { + $wrap[op] = "WRAP=off"; + $wrap[ment] = " $langs[w_ment] "; + } + + if($print) echo $wrap; + return $wrap; +} + +# , ($num)ŭ ϴ Լ +function page_list($table, $pages, $count, $num, $print = 0) { + global $color; # Խ ⺻ (config/global.ph) + 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") + $str .= "<<\n"; + else $str .= "<<\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]) + $str .= ">>\n"; + else + $str .= ">>\n"; + + $str .= "\n"; + + if($print) { + echo $str; + } + return $str; +} + +function page_form($table, $pages, $color, $print = 0) { + global $board; # Խ ⺻ (config/global.ph) + global $o, $langs; # ˻ + + $post = search2url($o, "post"); + + if($pages[cur]) $value = $pages[cur]; + + $str = sprintf(" + + + + + + +
    + $post + + + +
    +\n", form_size(2)); + + if($print) echo $str; + return $str; +} + + +function search_form($table, $pages, $print = 0) { + global $board, $color; # Խ ⺻ (config/global.ph) + global $o, $langs, $PHP_SELF; + + if(eregi("read.php",$PHP_SELF)) $col[font] = "$color[r5_fg]"; + else $col[font] = "$color[l4_fg]"; + + $ss = str_replace("%", "%%", $o[ss]); + $ss = stripslashes($ss); + $ss = htmlspecialchars($ss); + + $sc[$o[sc]] = " SELECTED"; + $st[$o[st]] = " SELECTED"; + $er[$o[er]] = " CHECKED"; + + $str = sprintf(" + + + + + + + + +
    + + + + + + +
    + + + $langs[check_y] + +
    +\n", form_size(9)); + + if($print) echo $str; + return $str; +} + +function print_reply($table, $list, $print = 0) { + if($list[reto]) $result = get_article($table, $list[reto], "num"); + $langss = re_subj($result[num]); + if($list[reto]) $num = "$langss[r_re_subj]"; + else $num = "$langss[r_subj]"; + + if($print) echo $num; + return $num; +} + +# ӵ ׽Ʈ Լ +# +# microtime - н Ÿӽ ũ ʸ +# http://www.php.net/manual/function.microtime.php +function debug($color, $str = "") { + global $debug; + + $time = microtime(); + printf("
    %s [%s][%s]
    \n", $time, $str, ++$debug); +} + +# list page ,ϴ ũ Լ +function list_cmd($str) { + global $o, $color, $table, $pages, $enable, $cenable; + global $board, $langs, $page; + + if (!$page) $page = 1; + $str[search] = search2url($o); + + $str[sepa] = separator($color[n0_fg]); + $str[prev] = "$langs[cmd_priv]"; + $str[next] = "$langs[cmd_next]"; + $str[write] = "$langs[cmd_write]"; + + if(!$pages[pre]) $str[prev] = "$langs[cmd_priv]"; + if(!$pages[nex]) $str[next] = "$langs[cmd_next]"; + if(!$enable[write] || !$cenable[write]) + $str[write] = "$langs[cmd_write]"; + if($o[at] == "s") + $str[all] = "\n$langs[cmd_all]\n$str[sepa]"; + if($o[st] != "t") + $str[today] = "\n$langs[cmd_today]\n$str[sepa]"; + + # Խ ,ϴܿ , , ۾ ũ Լ + echo "\n\n" . + "\n" . + " $str[sepa]$str[all]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]$str[today]\n" . + "\n
    $str[prev]$str[next]$str[write]
    "; +} + +# read page ,ϴ ũ Լ +function read_cmd($str) { + + global $o, $color, $table, $pages, $enable, $board; + global $cenable, $pos, $list, $no, $page, $langs; + + $str[search] = search2url($o); + + if (!$o[ck]) $str[search] = ""; + + $str[prev] = "$langs[cmd_upp]"; + $str[next] = "$langs[cmd_down]"; + $str[write] = "$langs[cmd_write]"; + + if ($rmail[user] == "yes") { + $str[reply] = "$langs[cmd_reply]"; + } else { + $str[reply] = "$langs[cmd_reply]"; + } + + $str[edit] = "$langs[cmd_edit]"; + $str[dele] = "$langs[cmd_del]"; + if(!$enable[re_list]) { + $str[rep] = "$langs[cmd_con]"; + $str[sepa_rep] = $str[sepa]; + } + + if(!$pos[prev]) $str[prev] = "$langs[cmd_upp]"; + if(!$pos[next]) $str[next] = "$langs[cmd_down]"; + if(!$enable[write] || !$cenable[write]) + $str[write] = "$langs[cmd_write]"; + if(!$enable[reply] || !$cenable[reply]) + $str[reply] = "$langs[cmd_reply]"; + if(!$list[passwd]) { + $str[edit] = "$langs[cmd_edit]"; + $str[dele] = "$langs[cmd_del]"; + } + if($list[reyn] || !$enable[delete] || !$cenable[delete]) + $str[dele] = "$langs[cmd_del]"; + if(!$enable[edit] || !$cenable[edit]) + $str[edit] = "$langs[cmd_edit]"; + if(!$enable[re_list] && ($list[reto] || $list[reyn])) { + $reto = $list[reto] ? $list[reto] : $list[no]; + $str[rep] = "$langs[cmd_con]"; + } + + echo "\n\n" . + "\n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa]\n" . + " \n" . + " $str[sepa_rep]\n" . + "\n" . + "
    $langs[cmd_list]$str[prev]$str[next]$str[write]$str[reply]$str[edit]$str[dele]$str[rep]
    "; +} + +function img_lmenu($str,$icons = 20) { + + global $o, $color, $table, $pages, $enable, $cenable, $langs, $page; + + if (!$page) $page = 1; + # theme ˸ image path + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + + $str[search] = search2url($o); + $str[prev] = "\"$langs[cmd_priv]\"
    \n"; + $str[next] = "\"$langs[cmd_next]\"
    \n"; + $str[write] = "\"$langs[cmd_write]\"
    \n"; + + if(!$pages[pre]) $str[prev] = ""; + if(!$pages[nex]) $str[next] = ""; + + if(!$enable[write] || !$cenable[write]) + $str[write] = "\"$langs[cmd_write]\"
    \n"; + if($o[at] == "s") + $str[all] = "\"$langs[cmd_all]\"
    \n"; + if($o[st] != "t") + $str[today] = "\"$langs[cmd_today]\"
    \n"; + + # Խ ,ϴܿ , , ۾ ũ Լ + echo "\n$str[all]" . + "$str[prev]" . + "$str[next]" . + "$str[write]" . + "$str[today]"; +} + +function img_rmenu($str,$icons = 20) { + global $o, $color, $table, $pages, $enable; + global $cenable, $pos, $list, $no, $page, $langs; + + # theme ˸ image path + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + + $str[search] = search2url($o); + + $str[prev] = "\"$langs[cmd_upp]\"
    \n"; + $str[next] = "\"$langs[cmd_down]\"
    \n"; + $str[write] = "\"$langs[cmd_write]\"
    \n"; + + if ($rmail[user] == "yes") + $str[reply] = "\"$langs[cmd_reply]\"
    \n"; + else + $str[reply] = "\"$langs[cmd_reply]\"
    \n"; + + $str[edit] = "\"$langs[cmd_edit]\"
    \n"; + $str[dele] = "\"$langs[cmd_del]\"
    \n"; + $str[rep] = ""; + + if(!$pos[prev]) $str[prev] = ""; + if(!$pos[next]) $str[next] = ""; + + if(!$enable[write] || !$cenable[write]) + $str[write] = "\"$langs[cmd_write]\"
    \n"; + if(!$enable[reply] || !$cenable[reply]) + $str[reply] = "\"$langs[cmd_reply]\"
    \n"; + if(!$list[passwd]) { + $str[edit] = "\"$langs[cmd_edit]\"
    \n"; + $str[dele] = "\"$langs[cmd_del]\"
    \n"; + } + if($list[reyn] || !$enable[delete] || !$cenable[delete]) + $str[dele] = "\"$langs[cmd_del]\"
    \n"; + if(!$enable[edit] || !$cenable[edit]) + $str[edit] = "\"$langs[cmd_edit]\"
    \n"; + if(!$enable[re_list] && ($list[reto] || $list[reyn])) { + $reto = $list[reto] ? $list[reto] : $list[no]; + $str[rep] = "\"$langs[cmd_con]\"
    \n"; + } + + echo "\n\"$langs[cmd_list]\"
    \n" . + "$str[prev]" . + "$str[next]" . + "$str[write]" . + "$str[reply]" . + "$str[edit]" . + "$str[dele]" . + "$str[rep]"; +} + + +# ش ñ Ʈ ѷش. +function article_reply_list($table,$pages) { + global $list, $langs, $upload, $td_width; + + $reto = $list[reto] ? $list[reto] : $list[no]; + $o[ck]=1; + $o[at]=s; + $o[sc]=r; + $o[no]=$reto; + $o[ss]=""; + $o[ln]=4; # read Ʈ ½ cellpaddingŭ ٿ + + echo "

    [ $langs[conj] ]


    +\n"; + + get_list($table, $pages, $o); + + echo " + + + \n"; + + if ($upload[yesno] == "yes") { + if ($cupload[yesno] == "yes") + echo " "; + } + + echo " + + + +
    \n"; +} + + +# preview java script +function print_preview_src() { + global $color, $agnet; + + if($agent[br] == "MSIE") $border = "0"; + else $border = "1"; + + echo " +
    +\n"; +} +?> 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/sendmail.ph b/include/sendmail.ph new file mode 100644 index 00000000..095aaecd --- /dev/null +++ b/include/sendmail.ph @@ -0,0 +1,130 @@ + 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_check.ph b/include/spam_check.ph new file mode 100644 index 00000000..f89fdfd1 --- /dev/null +++ b/include/spam_check.ph @@ -0,0 +1,21 @@ +\n", $spam[$i]); + } +} +?> 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..31bb678d --- /dev/null +++ b/include/sql.ph @@ -0,0 +1,95 @@ +\n%s\n", $error); + print_error($error, 280, 150); + } +} +?> diff --git a/include/tableratio.ph b/include/tableratio.ph new file mode 100644 index 00000000..5b77d892 --- /dev/null +++ b/include/tableratio.ph @@ -0,0 +1,30 @@ + 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 index 9d19c28d..097eca7b 100644 --- a/index.php +++ b/index.php @@ -1,4 +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 index e5951e64..0a5f1872 100644 --- a/list.php +++ b/list.php @@ -1,148 +1,146 @@ -"; - else $print['adpath'] = ">> admin "; - $print['admin'] = "". - "{$print['adpath']}"; -} + ". - "Total {$count['all']} articles / {$pages['all']} Pages {$count['search']} {$count['today']}"; +if($count[all]) { + $str[count] = "$msg[count1] "; + if ($o[at] == 's') $str[count] .= "$msg[count2] "; + else $str[count] .= "$msg[count3]"; + if ($count[today]) $str[count] .= "$msg[count4]"; } 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']}"; - } + $str[count] = "$msg[count5]"; } +$str[p_list] = page_list($table, $pages, $count, $board[plist]); +$str[s_form] = search_form($table, $pages); +$str[p_form] = page_form($table, $pages, $color[l0_fg]); -# SQL ð üũ -$b_time[] = microtime(); +if ($board[img] == "yes") { + $icons[add] = ""; + if (eregi("%",$board[width])) $icons[td] = "1%"; + else $icons[td] = $icons[size]; +} -# Ʈ -$colspan_no = $upload['yesno'] ? "6" : "5"; +# ñ Ʈ ½ preview Ҷ ʿ JavaScript +if ($enable[pre]) print_preview_src(); + +// Խ +echo " +
    + + + + + + +
    $icons[add][ admin ]"; + +// Խ ܿ , , ۾ ũ +if ($board[cmd] == "yes" && $board[img] != "yes") { + $str[align] = ""; + list_cmd($str); +} else echo "$langs[remote] [ " . get_hostname(1) . " ]$icons[add]"; + +echo "
    + + +"; + +// image menu bar +if ($board[img] == "yes") { + echo "\n"; +} -if(trim($notice['subject'])) { - $notice_filno = $colspan_no - 1; +echo "\n"; -# SQL ð -$print['sqltime'] = $sqltime1 + $sqltime2; -$print['sqltime'] = "SQL Time [ {$print['sqltime']} Sec ]"; +// image menu bar +if ($board[img] == "yes") { + if($color[bgcol] != $color[l4_bg]) $srowspan = " rowspan=2"; + echo ""; + img_lmenu($str,$icons[size]); + echo "\n"; +} -# ˻ ̺ -if($o['at'] == "d" || $o['at'] == "dp") - $print['dsearch'] = detail_searchform(); -else { - $page = $page ? $page : "1"; - $print['dserlink'] = "" . - "[ " . $_('detable_search_link') . " ]"; +if($color[bgcol] == $color[l4_bg]) { + $board[cs] = "0"; + $board[blank] = "
    "; +} else $board[cs] = "6"; + +echo "
    +"; + +if($board[img] == "yes" && $color[bgcol] == $color[l4_bg]) echo "\n\n"; + +echo "
    "; + img_lmenu($str,$icons[size]); + echo " + + + + + \n"; + +if ($upload[yesno] == "yes") { + if ($cupload[yesno] == "yes") + echo " "; +} - if($notice['contents']) { - $notice['subject'] = "". - "{$notice['subject']}"; - } else { - $notice['subject'] = "{$notice['subject']}"; - } +echo " + + +\n"; - $print['lists'] = "\n". - "\n". - "\n\n\n"; +$c_time[] = microtime(); // ӵ üũ - # Ʈ ̿ ֱ ڵ - if($lines['design']) { - $lines['design'] = preg_replace("/=[\"']?AA[\"']?/","=\"$colspan_no\"",$lines['design']); - $print['lists'] .= "\n{$lines['design']}\n\n"; - } -} +get_list($table, $pages); -$print['lists'] .= get_list($table, $pages); +$c_time[] = microtime(); // ӵ üũ +$time = get_microtime($c_time[0], $c_time[1]); -# Խ յ ũ -$print['p_list'] = page_list($table, $pages, $count, $board['plist']); +echo " + + + +
    $langs[no]$langs[titl]$langs[name]$langs[file]$langs[date]$langs[hit]
    \"\"". - "{$notice['subject']}
    + $str[count] [ $time sec ] +
    -# SQL ð üũ -$b_time[] = microtime(); -$sqltime2 = get_microtime($b_time[0], $b_time[1]); +
    +$board[blank] + + + + + + + +
    $str[s_form]$str[p_list]
    $str[p_form]
    +
     
    \n". + "\n". + "\n". + "
    \n"; + +if ($board[img] != "yes") { + // Խ ϴܿ , , ۾ ũ + $str[align] = "ALIGN=\"center\""; + list_cmd($str); } -# ˻, -$sform = search_form($o); -$pform = page_form($pages,$o); +echo "
    \n
    \n"; -# ñ Ʈ ½ 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"; +@include("html/tail.ph"); ?> diff --git a/locate.php b/locate.php index 8c3432c6..055cbe02 100644 --- a/locate.php +++ b/locate.php @@ -1,17 +1,14 @@ - 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 index 929de038..debd1b0c 100644 --- a/read.php +++ b/read.php @@ -1,192 +1,201 @@ -\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']; +(.*)(.*) target=(.*)>","",$list[text]); + +if($list[email]) + $list[name] = url_link($list[email], $list[name], $color[r2_fg], $no); + +if($list[url]) { + if(eregi("^http://", $list[url])) + $list[name] .= " [" . url_link($list[url], "$langs[ln_url]", $color[r2_fg]) . "]"; + else + $list[name] .= " [" . url_link("http://$list[url]", "$langs[ln_url]", $color[r3_fg]) . "]"; +} + + +$str[s_form] = search_form($table, $pages); +$str[p_form] = page_form($table, $pages, $color[r0_fg]); +$str[sepa] = separator($color[n0_fg]); + +$c_time[] = microtime(); // ӵ üũ +$time = get_microtime($c_time[0], $c_time[1]); + +if ($board[img] == "yes") { + $icons[add] = ""; + if (eregi("%",$board[width])) $icons[td] = "1%"; + else $icons[td] = $icons[size]; +} + +echo " +
    + + + + + + +
    $icons[add][ admin ]"; + +// Խ б ܿ , , ۾ ũ +$remote = get_hostname(1); +if ($board[cmd] == "yes" && $board[img] != "yes") { + $str[align] = ""; + read_cmd($str); +} else + echo("$langs[writerad] [ $list[host] ]$icons[add]"); + +echo " +
    + + + +"; + +// image menu bar +if ($board[img] == "yes") { + echo "\n"; +} + +echo "\n"; + +// image menu bar +if ($board[img] == "yes") { + if($color[bgcol] != $color[r5_bg]) $srowspan = " rowspan=2"; + echo ""; + img_rmenu($str,$icons[size]); + echo "\n"; +} + +if($color[bgcol] == $color[r5_bg]) { + $board[cs] = "0"; + $board[blank] = "
    "; +} else $board[cs] = "6"; + +echo "
    +"; + +if($board[img] == "yes" && $color[bgcol] == $color[r5_bg]) echo ""; + +echo "\n
    "; + img_rmenu($str,$icons[size]); + echo " + + + + + + + \n"; + +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); + + echo "\n" . + " "; +} + +$board[height] = $icons[size]*7; + +echo " + + + +
    $list[num]: $list[title]
    $langs[name]: $list[name]$langs[date]: $list[date]$langs[hit]: $list[refer]
    \n" . + " \n" . + " \"$list[bofile]\"\n" . + " $list[bofile]\n" . + " \n" . + " - $hfsize\n
    + + + + + +
    + "; + +if ($list[bofile]) { + $tail = check_filetype($list[bofile]); + $preview = viewfile($tail); +} + +echo " +$preview[up] + +$list[text] + +$preview[down]"; + +echo " + +
    \n\n"; + +# ñ Ʈ ½ preview Ҷ ʿ JavaScript +if ($enable[pre] && $enable[re_list] && ($list[reto] || $list[reyn])) print_preview_src(); + +# б⿡ ñ Ʈ +if($enable[re_list] && ($list[reto] || $list[reyn])) article_reply_list($table,$pages); + +echo "
    + +
    +$board[blank] + + + + + + +
    +$str[s_form] + + [ $time sec ] +
    +$str[p_form] +
    +
     
    \n" . + "". + "\n". + "
    \n"; + +if ($board[img] != "yes") { + // Խ б ϴܿ , , ۾ ũ + $str[align] = "ALIGN=\"center\""; + read_cmd($str); } + +echo "
    \n
    "; + +if ($remote != $list[host]) sql_query("UPDATE $table SET refer = refer + 1 WHERE no = $no"); + +@include("html/tail.ph"); +echo $preview[bo]; ?> 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 index 23412137..1123546a 100644 --- a/reply.php +++ b/reply.php @@ -1,125 +1,174 @@ -\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"; +$list[text] = eregi_replace("<([^<>\n]+)\n([^\n<>]+)>", "<\\1 \\2>", $list[text]); +$list[text] = ereg_replace("^", ": ", $list[text]); +$list[text] = ereg_replace("\n", "\n: ", $list[text]); +$list[text] = str_replace(""; + $orig_button = "\n" . + "\n" . + " "; } else { - $text_area = ""; - $orig_button = "\n"; + $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"; +echo " +
    + +
    + + + + + + \n"; + +if($view[email] == "yes") { + echo "\n" . + "\n" . + "\n" . + "\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']; +if($view[url] == "yes") { + echo "\n" . + "\n" . + "\n" . + "\n"; +} -$pages = "&page=$page"; +echo " + + + + + + + + "; + +if ($upload[yesno] == "yes" && $cupload[yesno] == "yes" && $agent[br] != "LYNX") { + echo "\n". + "\n" . + ""; +} else if ($upload[yesno] == "no" && $cupload[yesno] == "yes") { + echo "\n". + "\n" . + ""; +} -sql_close($c); +echo " + + + + + + + + +
    $langs[w_name]$langs[w_name_m]
    $langs[w_mail]$langs[w_mail_m]
    $langs[ln_url]$langs[w_url_m]
    $langs[w_pass]$langs[w_passwd_m]
    HTML + + $langs[u_html] + $langs[un_html] + + $langs[w_html_m]
    $langs[file]\n" . + "". + "
    $langs[file]$langs[upload]
    $langs[titl]
    + + $text_area + +
    + + $wrap[ment] + +
    + +
    + + + + + +
    + + + + + +   +   + + $orig_button + +
    + +
    \n + + +\n
    + +\n"; + +if ($board[img] == "yes") { + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + echo ""; +} else { + echo " + + + + + \n"; +} -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; +echo "\n
    " . + "\"$langs[cmd_list]\"" . + "\"$langs[cmd_priv]\"" . + "\"|\"$langs[cmd_list]\"|\"$langs[cmd_priv]\"|\"
    \n
    \n
    \n"; -# Template file ȣ -meta_char_check($print['theme'], 1, 1); -$bodyType = 'reply'; -require_once 'captcha/captchacommon.php'; -include "theme/{$print['theme']}/index.template"; +@include("html/tail.ph"); ?> 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 index 1f8d520d..4989a77e 100644 --- a/whois.php +++ b/whois.php @@ -1,18 +1,6 @@ -\n" . + echo("\n"; + "\n"); exit; } if (!trim($table) || !trim($host)) { - echo "\n"; exit; } -if ( ! @file_exists("config/global.php") ) { - echo "\n"; -} else { include_once "config/global.php"; } - -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); +@include("config/global.ph"); +@include("include/lang.ph"); ?> - - - -<? echo $host ?> WHOIS Information - - + + + + +WHOIS + + - -
     
    ";
    +
     $server = "whois.krnic.net";
     $port   = "43";
     
    @@ -72,13 +55,12 @@
       fputs($fp,"$host\n");
     
       while(!feof($fp)) {
    -      $list = fgets ($fp, 1024);
    -      //if($count > 11) {
    -      if ( $count > 0 ) {
    -        $list = preg_replace("/^((Phone|ȭ[ ]*ȣ)[\s]*:[ ]*)(.*)/mi", "\\1\\3", $list);
    -        $list = preg_replace("/((Service Name|Name|񽺸|̸).*:)(.*)/mi", "\\1\\3", $list);
    -        $list = preg_replace("/((Org Name|[ ]*[ ]*).*:)(.*)/mi", "\\1\\3", $list);
    -        echo $list;
    +      $list = fgets($fp, 1024);
    +      if($count > 11) {
    +        $list = eregi_replace("((Phone|ȭ ȣ).*:)(.*)", "\\1\\3", $list);
    +        $list = eregi_replace("((IP Address|IP ּ).*:)(.*)", "\\1\\3", $list);
    +        $list = eregi_replace("((Network Name|Ʈũ ̸).*:)(.*)", "\\1\\3", $list);
    +        echo("$list");
           }
           $count++;
       }
    @@ -86,7 +68,7 @@
     } else echo "$errno $errstr whois.krnic.net ῡ  ߽ϴ.";
     ?>
     
    -
    +
    - - + + diff --git a/write.php b/write.php index 4a85211a..8281f43e 100644 --- a/write.php +++ b/write.php @@ -1,76 +1,139 @@ -\n". - "\n"; - -$pre_regist['rname'] = !$pre_regist['rname'] ? "" : "\n"; +enable_write($sadmin[passwd],$admin[passwd],$pcheck,$enable[$kind], $cenable[$kind]); + +@include("html/head.ph"); + +if($board[notice]) print_notice($board[notice]); + +# Browser Lynx϶ multim form +$agent = get_agent(); +if($agent[br] == "LYNX") $board[formtype] = ""; +else $board[formtype] = " ENCTYPE=\"multipart/form-data\""; + +# TEXTAREA wrap option check +$wrap = form_wrap(); + +// image menu ҽÿ wirte ȭ list,read ȭ +if ($board[img] == "yes" && !eregi("%",$board[width])) + $board[width] = $board[width]-$icons[size]*2; +else $size[text] += 4; + +echo " +
    + + +
    + + + + + + \n"; + +if($view[email] == "yes") { + echo "\n" . + "\n" . + "\n" . + "\n"; +} -if(!$nodisable) { - $print['passform'] .= "". - "{$pre_regist['rname']}". - "\n". - "\n\n"; -} elseif($_SESSION[$jsboard]['pos'] == 1) { - $print['passform'] .= "{$pre_regist['rname']}\n"; +if($view[url] == "yes") { + echo "\n" . + "\n" . + "\n" . + "\n"; } -$pages = $page ? "&page=$page" : ""; +echo " + + + + + + + + "; + +if ($upload[yesno] == "yes" && $cupload[yesno] == "yes" && $agent[br] != "LYNX") { + echo "\n". + "\n" . + ""; +} else if ($upload[yesno] == "no" && $cupload[yesno] == "yes") { + echo "\n". + "\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']; +echo " + + + + + + + + +
    $langs[w_name]$langs[w_name_m]
    $langs[w_mail]$langs[w_mail_m]
    $langs[ln_url]$langs[w_url_m]
    $langs[w_pass]$langs[w_passwd_m]
    HTML + + $langs[u_html] + $langs[un_html] + + $langs[w_html_m]
    $langs[file]\n" . + "". + "
    $langs[file]$langs[upload]
    $langs[titl]
    + +
    + $wrap[ment] +
    + +
    + + + + + +
    + + + +   +   + + +
    + +
    + + +\n
    + +\n"; + +if ($board[img] == "yes") { + if ($color[theme]) $themes[img] = get_theme_img($table); + else $themes[img] = "images"; + echo ""; +} else { + echo " + + + + + \n"; +} -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; +echo "\n
    " . + "\"$langs[cmd_list]\"" . + "\"$langs[cmd_priv]\"" . + "\"|\"$langs[cmd_list]\"|\"$langs[cmd_priv]\"|\"
    \n
    \n
    \n"; -meta_char_check($print['theme'], 1, 1); -$bodyType = 'write'; -require_once 'captcha/captchacommon.php'; -require_once "theme/{$print['theme']}/index.template"; +@include("html/tail.ph"); ?>