kartero.org

kartero.org

Git

This commit has been accessed 622 times via Git panel.

commit 4f125f218b4587ddfbbe65bd854cd628fed6ad43
tree eef571af78391fc18cd26dba79c302fba0091eb5
author Engels Antonio <engels@majcms.org> 1297706901 +0800
committer Engels Antonio <engels@majcms.org> 1297706901 +0800

    Initial commit, warts and all

diff --git a/css.php b/css.php
new file mode 100644
index 0000000..ca350d1
--- /dev/null
+++ b/css.php
@@ -0,0 +1,77 @@
+body,p,td {
+       color: #666666;
+       background: #ffffff;
+       font-size: 11px;
+       font-family: arial,helvetica,sans-serif;
+}
+
+a,a:link,a:visited,a:hover,a:active {
+       font-weight: bold;
+       text-decoration: none;
+       color: #666666;
+}
+
+.input {
+       color: #666666;
+       background: #ffffff;
+       border: #999999 solid 1px;
+       width: 100%;
+       font-size: 11px;
+       font-family: arial,helvetica,sans-serif;
+}
+
+.rinput {
+       color: #666666;
+       background: #ffffff;
+       border: #999999 solid 1px;
+       width: 75px;
+       font-size: 11px;
+       font-family: arial,helvetica,sans-serif;
+       text-align: right;
+       padding: 0px 1px 0px 0px;
+}
+
+.ack {
+       color: #74ae0b;
+       background: #cde2a7;
+       border: #74ae0b solid 1px;
+       font-size: 11px;
+       font-weight: bold;
+       font-family: arial,helvetica,sans-serif;
+       text-align: center;
+       padding: 0px 10px 0px 10px;
+       margin: 0px 0px 5px 0px;
+       moz-opacity: 0.9;
+       filter: alpha(opacity=90);
+       opacity: 0.9;
+}
+
+.nak {
+       color: #ff6666;
+       background: #ffbbbb;
+       border: #ff6666 solid 1px;
+       font-size: 11px;
+       font-weight: bold;
+       font-family: arial,helvetica,sans-serif;
+       text-align: center;
+       padding: 0px 10px 0px 10px;
+       margin: 0px 0px 5px 0px;
+       moz-opacity: 0.9;
+       filter: alpha(opacity=90);
+       opacity: 0.9;
+}
+
+.nfo {
+       color: #f3e533;
+       background: #fcffcd;
+       border: #f3e533 solid 1px;
+       font-size: 11px;
+       font-weight: bold;
+       font-family: arial,helvetica,sans-serif;
+       text-align: center;
+       padding: 0px 0px 0px 0px;
+       margin: 0px 0px 5px 0px;
+       moz-opacity: 0.9;
+       filter: alpha(opacity=90);
+       opacity: 0.9;
+}
diff --git a/gpl.txt b/gpl.txt
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/gpl.txt
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  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
+them 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 prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  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.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey 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;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If 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 convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU 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 that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  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.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+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.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            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
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    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 3 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, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program 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, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU 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 Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/images/disable.png b/images/disable.png
new file mode 100644
index 0000000..b1c1e79
Binary files /dev/null and b/images/disable.png differ
diff --git a/images/enable.png b/images/enable.png
new file mode 100644
index 0000000..a174d49
Binary files /dev/null and b/images/enable.png differ
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..0cb3492
--- /dev/null
+++ b/index.php
@@ -0,0 +1,857 @@
+<?php
+
+/* modify the values of $db_host, $db_name, $db_user, $db_pass, and $mail_root for basic configuration */
+
+$db_host = "localhost";
+$db_name = "kartero";
+$db_user = "root";
+$db_pass = "password";
+
+$mail_root = "/var/www/html/mailroot";
+
+/* feel free to hack the succeeding code to suit your needs (basic php and mysql skills required) */
+
+session_start();
+
+function rmdirr($recurse_dirname) {
+
+       if (!file_exists($recurse_dirname)) {
+               return false;
+       }
+
+       if (is_file($recurse_dirname)) {
+               return unlink($recurse_dirname);
+       }
+
+       $recurse_dir = dir($recurse_dirname);
+
+       while (false !== $recurse_entry = $recurse_dir->read()) {
+
+               if ($recurse_entry == '.' || $recurse_entry == '..') {
+                       continue;
+               }
+
+               rmdirr("$recurse_dirname/$recurse_entry");
+       }
+
+       $recurse_dir->close();
+       return rmdir($recurse_dirname);
+}
+
+function ack($ack_string) {
+       echo "<table width=\"100%\"><tr></td><div class=\"ack\">$ack_string</div></td></tr></table>";
+}
+
+function nak($nak_string) {
+       echo "<table width=\"100%\"><tr></td><div class=\"nak\">$nak_string</div></td></tr></table>";
+}
+
+if (file_exists("css.php")) {
+
+       $css = file_get_contents("css.php");
+       $css = str_replace("<style>","",$css);
+       $css = str_replace("</style>","",$css);
+
+       echo "<style>\r\n$css</style>\r\n\r\n";
+}
+
+if (!file_exists("$mail_root")) {
+
+       $mail_dirs = explode("/",$mail_root);
+
+       foreach ($mail_dirs as $mail_dir) {
+      
+               if (!empty($mail_dir)) {
+                       $mail_mkdir = $mail_mkdir . "/" . $mail_dir;
+                       mkdir("$mail_mkdir");
+               }
+       }
+
+       if (!file_exists("$mail_root")) {
+               nak("Can't create '$mail_root' (check filesystem permissions or change '&#36;mail_root' and try again)");
+               exit();
+       }
+}
+
+$db_link = mysql_pconnect($db_host, $db_user, $db_pass);
+
+if (!$db_link) {
+       nak(mysql_error());
+       exit;
+}
+
+$db_query = mysql_query("use $db_name");
+
+if (!$db_query) {
+       $pw_crypt = crypt($db_pass);
+       $db_query = mysql_query("create database $db_name");
+       $db_query = mysql_query("use $db_name");
+       $db_query = mysql_query("create table admins (id varchar(16) not null, pw varchar(64) not null, primary key (id), unique key (id))");
+       $db_query = mysql_query("create table domains (id varchar(128) not null, pw varchar(64) not null, max int(6) default '0', mode int(1) default '1', primary key (id), unique key (id), key id_2 (id))");
+       $db_query = mysql_query("create table users (id varchar(255) not null, pw varchar(64) not null, maildir varchar(255) not null, name varchar(128), domain varchar(128), mode int(1) default '1', host varchar(255), primary key (id), unique key(id), key id_2 (id))");
+       $db_query = mysql_query("create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1', primary key (id), unique key (id), key id_2 (id))");
+       $db_query = mysql_query("insert into admins values('$db_user','$pw_crypt')");
+}
+
+$id_put = trim($_POST['id']);
+
+if (get_magic_quotes_gpc()) {
+       $id_put = stripslashes($id_put);
+}
+
+if (!is_int($id_put)) {
+       $id_put = mysql_real_escape_string($id_put);
+}
+
+$id_put = strip_tags($id_put);
+
+$lvl_put = strip_tags($_POST['lvl']);
+
+if ($lvl_put == "subscriber") {
+       $pw_get = mysql_query("select pw from users where id='$id_put'");
+}
+
+if ($lvl_put == "postmaster") {
+       $pw_get = mysql_query("select pw from domains where id='$id_put'");
+}
+
+if ($lvl_put == "administrator") {
+       $pw_get = mysql_query("select pw from admins where id='$id_put'");
+}
+
+$pw_get = mysql_fetch_row($pw_get);
+$pw_get = $pw_get[0];
+
+$pw_put = $_POST['pw'];
+
+if (get_magic_quotes_gpc()) {
+       $pw_put = stripslashes($pw_put);
+}
+
+if (!is_int($pw_put)) {
+       $pw_put = mysql_real_escape_string($pw_put);
+}
+
+$pw_put = strip_tags($pw_put);
+$pw_put = crypt($pw_put,$pw_get);
+
+if ($pw_put == $pw_get) {
+       $_SESSION['logged_uid'] = $id_put;
+       $_SESSION['logged_lvl'] = $lvl_put;
+}
+
+if (isset($_GET['do']) and ($_GET['do'] == "logout")) {
+       $_SESSION = array();
+       session_destroy();
+       header("Location: .");
+       exit;
+}
+
+/* logo here? */
+
+if (!isset($_SESSION['logged_uid']) and (($pw_put != $pw_get) or !isset($_POST['id']) or !isset($_POST['pw']) or empty($_POST['id']) or empty($_POST['pw']))) {
+       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+       echo "<form method=\"post\">";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><select class=\"input\" name=\"lvl\"><option value=\"subscriber\">subscriber</option><option value=\"postmaster\">postmaster</option><option value=\"administrator\">administrator</option></select></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"submit\" value=\"login\"></td></tr>";
+       echo "</form>";
+       echo "</table>";
+       exit;
+}
+
+if (isset($_SESSION['logged_uid'])) {
+
+       echo "<p><nobr>You are currently logged in to your {$_SESSION['logged_uid']} {$_SESSION['logged_lvl']} account. Click <a href=\"?do=logout\">here</a> to logout.</nobr></p>";
+
+       echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
+       echo "<tr><td colspan=\"3\" valign=\"top\">";
+
+       if ($_SESSION['logged_lvl'] == "subscriber") {
+      
+               $usr_query = mysql_query("select * from users where id='{$_SESSION['logged_uid']}'");
+               $usr_data = mysql_fetch_row($usr_query);
+
+               $dom_query = mysql_query("select mode from domains where id='{$usr_data[4]}'");
+               $dom_data = mysql_fetch_row($dom_query);
+
+               if ($dom_data[0] == 0) {
+                       nak("{$usr_data[4]} disabled by admin - new settings will take effect once it is re-enabled");
+               }
+
+               if ($usr_data[5] == 0) {
+                       nak("{$_SESSION['logged_uid']} disabled by postmaster - new settings will take effect once it is re-enabled");
+               }
+      
+               $usr_name = $usr_data[3];
+      
+               if (isset($_POST['usr_name']) and !empty($_POST['usr_name'])) {
+      
+                       $usr_name = trim($_POST['usr_name']);
+                       $usr_name = ucwords($usr_name);
+      
+                       if ($usr_name != $usr_data[3]) {
+      
+                               $usr_query = mysql_query("update users set name='$usr_name' where id='{$_SESSION['logged_uid']}'");
+      
+                               if (!usr_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       ack("name changed");
+                               }
+                       }
+                       else {
+                               $usr_name = $usr_data[3];
+                       }
+               }
+      
+               $usr_pw0 = $usr_data[1];
+      
+               if (isset($_POST['usr_pw1']) and !empty($_POST['usr_pw1']) and isset($_POST['usr_pw2']) and !empty($_POST['usr_pw2']) and isset($_POST['usr_pw3']) and !empty($_POST['usr_pw3'])) {
+      
+                       $usr_pw1 = trim($_POST['usr_pw1']);
+                       $usr_pw2 = trim($_POST['usr_pw2']);
+                       $usr_pw3 = trim($_POST['usr_pw3']);
+      
+                       if ($usr_pw0 == crypt($usr_pw1,$usr_pw0)) {
+      
+                               if ($usr_pw2 == $usr_pw3) {
+                                      
+                                       $usr_pw = crypt($usr_pw2);
+      
+                                       $usr_query = mysql_query("update users set pw='$usr_pw' where id='{$_SESSION['logged_uid']}'");
+      
+                                       if (!usr_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("password changed");
+                                       }
+                               }
+                               else {
+                                       nak("new passwords do not match");
+                               }
+                       }
+                       else {
+                               nak("current password entered is incorrect");
+                       }
+               }
+       }
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               $dom_query = mysql_query("select mode from domains where id='{$_SESSION['logged_uid']}'");
+               $dom_query = mysql_fetch_row($dom_query);
+      
+               if ($dom_query[0] == "0") {
+                       nak("{$_SESSION['logged_uid']} disabled by admin - new settings will take effect once it is re-enabled");
+               }
+      
+               if (isset($_POST['pm_id']) and isset($_POST['pm_name']) and isset($_POST['pm_pw']) and !empty($_POST['pm_id']) and !empty($_POST['pm_name']) and !empty($_POST['pm_pw'])) {
+      
+                       $pm_id = trim($_POST['pm_id']);
+                       $pm_id = strtolower($pm_id);
+      
+                       if (preg_match("/@/",$pm_id)) {
+                               $pm_id = substr($pm_id,0,strpos($pm_id,"@"));
+                       }
+      
+                       $pm_addr = $pm_id . "@" . $_SESSION['logged_uid'];
+      
+                       $alias_query = mysql_query("select id from aliases where id='$pm_addr'");
+      
+                       if (mysql_fetch_row($alias_query) > 0) {
+                               nak("$pm_addr alias exists");
+                       }
+                       else {
+                               $pm_name = trim($_POST['pm_name']);
+                               $pm_name = ucwords($pm_name);
+      
+                               $pm_pw = trim($_POST['pm_pw']);
+                               $pm_pw = crypt($pm_pw);
+      
+                               $pm_init = substr($pm_id,0,1);
+      
+                               $pm_maildir = "{$_SESSION['logged_uid']}/$pm_init/$pm_id";
+
+                               $pm_host = trim($_POST['pm_host']);
+                               $pm_host = strtolower($pm_host);
+      
+                               $pm_query = mysql_query("insert into users values('$pm_addr','$pm_pw','$pm_maildir/','$pm_name','{$_SESSION['logged_uid']}','1','$pm_host')");
+      
+                               if (!$pm_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       if (!file_exists("$mail_root/{$_SESSION['logged_uid']}")) {
+                                               mkdir("$mail_root/{$_SESSION['logged_uid']}");
+                                       }
+      
+                                       if (!file_exists("$mail_root/{$_SESSION['logged_uid']}/$pm_init")) {
+                                               mkdir("$mail_root/{$_SESSION['logged_uid']}/$pm_init");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir")) {
+                                               mkdir("$mail_root/$pm_maildir");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir/cur")) {
+                                               mkdir("$mail_root/$pm_maildir/cur");
+                                       }
+              
+                                       if (!file_exists("$mail_root/$pm_maildir/new")) {
+                                               mkdir("$mail_root/$pm_maildir/new");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir/tmp")) {
+                                               mkdir("$mail_root/$pm_maildir/tmp");
+                                       }
+      
+                                       ack("$pm_addr added");
+                               }
+                       }
+               }
+
+               if (isset($_POST['pm_mod']) and !empty($_POST['pm_mod'])) {
+                      
+                       $pm_mod = trim($_POST['pm_mod']);
+      
+                       if (isset($_POST['pm_name']) and !empty($_POST['pm_name'])) {
+      
+                               $pm_name = trim($_POST['pm_name']);
+                               $pm_name = ucwords($pm_name);
+      
+                               $pm_query = mysql_query("select name from users where id='$pm_mod'");
+      
+                               $name_get = mysql_fetch_row($pm_query);
+      
+                               if ($name_get[0] != $pm_name) {
+      
+                                       $pm_query = mysql_query("update users set name='$pm_name' where id='$pm_mod'");
+      
+                                       if (!$pm_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$pm_mod complete name updated");
+                                       }
+                               }
+                       }
+      
+                       if (isset($_POST['pm_pass']) and !empty($_POST['pm_pass'])) {
+      
+                               $pm_pass = $_POST['pm_pass'];
+                               $pm_pass = crypt($pm_pass);
+      
+                               $pm_query = mysql_query("update users set pw='$pm_pass' where id='$pm_mod'");
+      
+                               if (!$pm_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       ack("$pm_mod password updated");
+                               }
+                       }
+
+                       if (isset($_POST['pm_host'])) {
+      
+                               $pm_host = trim($_POST['pm_host']);
+                               $pm_host = strtolower($pm_host);
+      
+                               $pm_query = mysql_query("select host from users where id='$pm_mod'");
+      
+                               $host_get = mysql_fetch_row($pm_query);
+      
+                               if ($host_get[0] != $pm_host) {
+      
+                                       $pm_query = mysql_query("update users set host='$pm_host' where id='$pm_mod'");
+      
+                                       if (!$pm_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$pm_mod delivery host updated");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['pm_set']) and !empty($_POST['pm_set']) and isset($_POST['pm_do']) and !empty($_POST['pm_do'])) {
+      
+                       $pm_set = trim($_POST['pm_set']);
+                       $pm_do = trim($_POST['pm_do']);
+      
+                       if ($pm_do == "disable") {
+                               $pm_do = "0";
+                       }
+      
+                       if ($pm_do == "enable") {
+                               $pm_do = "1";
+                       }
+              
+                       $pm_query = mysql_query("update aliases set mode='$pm_do' where alias='$pm_set'");
+                       $pm_query = mysql_query("update users set mode='$pm_do' where id='$pm_set'");
+      
+                       if (!$pm_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+      
+                               $pm_query = mysql_query("select alias from aliases where alias='$pm_set'");
+                               $pm_aka = mysql_num_rows($pm_query);
+      
+                               if ($pm_do == "0") {
+      
+                                       if ($pm_aka > 0) {
+      
+                                               if ($pm_aka < 2) {
+                                                       ack("$pm_set account and 1 alias disabled");
+                                               }
+                                               else {
+                                                       ack("$pm_set account and $pm_aka aliases disabled");
+                                               }
+                                       }
+                                       else {
+                                               ack("$pm_set account disabled");
+                                       }
+                               }
+      
+                               if ($pm_do == "1") {
+      
+                                       if (mysql_fetch_row($pm_query) > 0) {
+      
+                                               if ($pm_aka < 2) {
+                                                       ack("$pm_set account and 1 alias enabled");
+                                               }
+                                               else {
+                                                       ack("$pm_set account and $pm_aka aliases enabled");
+                                               }
+                                       }
+                                       else {
+                                               ack("$pm_set account enabled");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['pm_del']) and !empty($_POST['pm_del'])) {
+                      
+                       $pm_del = trim($_POST['pm_del']);
+      
+                       $pm_query = mysql_query("delete from aliases where alias='$pm_del'");
+                       $pm_query = mysql_query("delete from users where id='$pm_del'");
+      
+                       if (!$pm_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+                               $pm_init = substr($pm_del,0,1);
+                               $pm_box = substr($pm_del,0,strpos($pm_del,"@"));
+      
+                               if (file_exists("$mail_root/{$_SESSION['logged_uid']}/$pm_init/$pm_box")) {
+                                       rmdirr("$mail_root/{$_SESSION['logged_uid']}/$pm_init/$pm_box");
+                               }
+      
+                               if (count(glob("$mail_root/{$_SESSION['logged_uid']}/$pm_init/*")) < 1) {
+                                       rmdir("$mail_root/{$_SESSION['logged_uid']}/$pm_init");
+                               }
+      
+                               ack("$pm_del deleted");
+                       }
+               }
+      
+               if (isset($_POST['alias_add']) and !empty($_POST['alias_add']) and isset($_POST['alias_to']) and !empty($_POST['alias_to'])) {
+      
+                       $alias_add = trim($_POST['alias_add']);
+      
+                       if (preg_match("/@/",$alias_add)) {
+                               $alias_add = substr($alias_add,0,strpos($alias_add,"@"));
+                       }
+      
+                       $alias_add = "$alias_add@{$_SESSION['logged_uid']}";
+      
+                       $alias_to = trim($_POST['alias_to']);
+      
+                       $alias_query = mysql_query("select id from users where id='$alias_add'");
+      
+                       if (mysql_num_rows($alias_query) > 0) {
+                               nak("$alias_add account exists");
+                       }
+                       else {
+                               if (!preg_match("/@/",$alias_to) or preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+      
+                                       if (preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+                                               $alias_to = substr($alias_to,0,strpos($alias_to,"@"));
+                                       }
+              
+                                       $alias_to = "$alias_to@{$_SESSION['logged_uid']}";
+              
+                                       $alias_query = mysql_query("select id from users where id='$alias_to'");
+              
+                                       if (mysql_num_rows($alias_query) < 1) {
+                                               nak("$alias_to does not exist");
+                                       }
+                                       else {
+                                               $alias_query = mysql_query("insert into aliases values('$alias_add','$alias_to','{$_SESSION['logged_uid']}','1')");
+              
+                                               if (!$alias_query) {
+                                                       nak(strtolower(mysql_error()));
+                                               }
+                                               else {
+                                                       ack("$alias_add added");
+                                               }
+                                       }
+                               }
+                               else {
+                                       $alias_query = mysql_query("insert into aliases values('$alias_add','$alias_to','{$_SESSION['logged_uid']}','1')");
+      
+                                       if (!$alias_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$alias_add added");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_mod']) and !empty($_POST['alias_mod']) and isset($_POST['alias_to']) and !empty($_POST['alias_to'])) {
+                      
+                       $alias_mod = trim($_POST['alias_mod']);
+      
+                       $alias_to = trim($_POST['alias_to']);
+      
+                       if (!preg_match("/@/",$alias_to) or preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+      
+                               if (preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+                                       $alias_to = substr($alias_to,0,strpos($alias_to,"@"));
+                               }
+      
+                               $alias_to = "$alias_to@{$_SESSION['logged_uid']}";
+      
+                               $alias_query = mysql_query("select id from users where id='$alias_to'");
+      
+                               if (mysql_num_rows($alias_query) < 1) {
+                                       nak("$alias_to does not exist");
+                               }
+                               else {
+                                       $alias_query = mysql_query("update aliases set alias='$alias_to' where id='$alias_mod'");
+      
+                                       if (!$alias_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$alias_mod updated");
+                                       }
+                               }
+                       }
+                       else {
+      
+                               $alias_query = mysql_query("update aliases set alias='$alias_to' where id='$alias_mod'");
+              
+                               if (!$alias_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       ack("$alias_mod updated");
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_set']) and !empty($_POST['alias_set']) and isset($_POST['alias_do']) and !empty($_POST['alias_do'])) {
+      
+                       $alias_set = trim($_POST['alias_set']);
+                       $alias_do = trim($_POST['alias_do']);
+      
+                       if ($alias_do == "disable") {
+                               $alias_do = "0";
+                               $alias_query = mysql_query("update aliases set mode='$alias_do' where id='$alias_set'");
+      
+                               if (!$alias_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       ack("$alias_set alias disabled");
+                               }
+                       }
+      
+                       if ($alias_do == "enable") {
+      
+                               $alias_query = mysql_query("select alias from aliases where id='$alias_set'");
+                               $alias_recipient = mysql_fetch_row($alias_query);
+                               $alias_recipient = $alias_recipient[0];
+      
+                               $usr_query = mysql_query("select mode from users where id='$alias_recipient'");
+                               $alias_recipient_mode = mysql_fetch_row($usr_query);
+                               $alias_recipient_mode = $alias_recipient_mode[0];
+      
+                               if ($alias_recipient_mode == "0") {
+                                       nak("cannot enable $alias_set alias while $alias_recipient recipient account is disabled");
+                               }
+                               else {
+                                       $alias_do = "1";
+                                       $alias_query = mysql_query("update aliases set mode='$alias_do' where id='$alias_set'");
+              
+                                       if (!$alias_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$alias_set alias enabled");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_del']) and !empty($_POST['alias_del'])) {
+                      
+                       $alias_del = trim($_POST['alias_del']);
+                       $alias_query = mysql_query("delete from aliases where id='$alias_del'");
+      
+                       if (!$alias_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+                               ack("$alias_del deleted");
+                       }
+               }
+       }
+      
+       if ($_SESSION['logged_lvl'] == "administrator") {
+
+               if (isset($_POST['dom_name']) and isset($_POST['dom_pass']) and isset($_POST['dom_max']) and !empty($_POST['dom_name']) and !empty($_POST['dom_pass']) and is_numeric($_POST['dom_max'])) {
+      
+                       $dom_name = trim($_POST['dom_name']);
+      
+                       $dom_pass = trim($_POST['dom_pass']);
+                       $dom_pass = crypt($dom_pass);
+      
+                       $dom_max = trim($_POST['dom_max']);
+      
+                       $dom_query = mysql_query("insert into domains values('$dom_name','$dom_pass','$dom_max','1')");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+                               if (!file_exists("$mail_root/$dom_name")) {
+                                       mkdir("$mail_root/$dom_name");
+                               }
+      
+                               ack("$dom_name added");
+                       }
+               }
+      
+               if (isset($_POST['dom_mod']) and !empty($_POST['dom_mod'])) {
+                      
+                       $dom_mod = trim($_POST['dom_mod']);
+      
+                       if (isset($_POST['dom_pass']) and !empty($_POST['dom_pass'])) {
+      
+                               $dom_pass = $_POST['dom_pass'];
+                               $dom_pass = crypt($dom_pass);
+      
+                               $dom_query = mysql_query("update domains set pw='$dom_pass' where id='$dom_mod'");
+      
+                               if (!$dom_query) {
+                                       nak(strtolower(mysql_error()));
+                               }
+                               else {
+                                       ack("$dom_mod postmaster password updated");
+                               }
+                       }
+      
+                       if (isset($_POST['dom_max']) and is_numeric($_POST['dom_max'])) {
+      
+                               $dom_max = $_POST['dom_max'];
+      
+                               $dom_query = mysql_query("select max from domains where id='$dom_mod'");
+      
+                               $max_get = mysql_fetch_row($dom_query);
+      
+                               if ($max_get[0] != $dom_max) {
+      
+                                       $dom_query = mysql_query("update domains set max='$dom_max' where id='$dom_mod'");
+      
+                                       if (!$dom_query) {
+                                               nak(strtolower(mysql_error()));
+                                       }
+                                       else {
+                                               ack("$dom_mod account limit updated");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['dom_set']) and !empty($_POST['dom_set']) and isset($_POST['dom_do']) and !empty($_POST['dom_do'])) {
+      
+                       $dom_set = trim($_POST['dom_set']);
+                       $dom_do = trim($_POST['dom_do']);
+      
+                       if ($dom_do == "disable") {
+                               $dom_do = "0";
+                       }
+      
+                       if ($dom_do == "enable") {
+                               $dom_do = "1";
+                       }
+              
+                       $dom_query = mysql_query("update domains set mode='$dom_do' where id='$dom_set'");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+                               if ($dom_do == "0") {
+                                       ack("$dom_set disabled");
+                               }
+      
+                               if ($dom_do == "1") {
+                                       ack("$dom_set enabled");
+                               }
+                       }
+               }
+      
+               if (isset($_POST['dom_del']) and !empty($_POST['dom_del'])) {
+                      
+                       $dom_del = trim($_POST['dom_del']);
+      
+                       $dom_query = mysql_query("delete from aliases where domain='$dom_del'");
+                       $dom_query = mysql_query("delete from users where domain='$dom_del'");
+                       $dom_query = mysql_query("delete from domains where id='$dom_del'");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(mysql_error()));
+                       }
+                       else {
+                               if (file_exists("$mail_root/$dom_del")) {
+                                       rmdirr("$mail_root/$dom_del");
+                               }
+                               ack("$dom_del deleted");
+                       }
+               }
+       }
+      
+       echo "</td></tr>";
+
+       echo "<tr><td valign=\"top\">";
+
+       if ($_SESSION['logged_lvl'] == "subscriber") {
+
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/user.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"text\" name=\"usr_name\" value=\"$usr_name\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw1\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw2\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw3\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"></td><td><input class=\"input\" type=\"submit\" value=\"update\"></td></tr>";
+               echo "</form>";
+               echo "</table>";
+       }
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td colspan=\"4\" align=\"center\"><b>status</b></td><td align=\"center\"><b>username</b></td><td align=\"center\"><b>complete name</b></td><td align=\"center\"><b>password</b></td><td align=\"center\"><b>host</b></td><td align=\"center\" colspan=\"2\"><b>action</b></td></tr>";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\">new</td><td align=\"center\">cur</td><td align=\"center\">aka</td><td align=\"center\">rcv</td><td><input class=\"input\" type=\"text\" name=\"pm_id\" autocomplete=\"off\" maxlength=\"255\"></td><td><input class=\"input\" type=\"text\" name=\"pm_name\" autocomplete=\"off\" maxlength=\"128\"></td><td><input class=\"input\" type=\"text\" name=\"pm_pw\" autocomplete=\"off\" maxlength=\"64\"></td><td><input class=\"input\" type=\"text\" name=\"pm_host\" autocomplete=\"off\" maxlength=\"255\"></td><td colspan=\"2\"><input class=\"input\" type=\"submit\" value=\"add\"></td></tr>";
+               echo "</form>";
+      
+               $pm_get = mysql_query("select * from users where domain='{$_SESSION['logged_uid']}' order by id");
+      
+               while ($pm_row = mysql_fetch_array($pm_get)) {
+      
+                       if ($pm_row[5] == "1") {
+                               $pm_do = "disable";
+                               $pm_bg = "#ffffff";
+                       }
+      
+                       if ($pm_row[5] == "0") {
+                               $pm_do = "enable";
+                               $pm_bg = "#eeeeee";
+                       }
+      
+                       $msg_new = "$mail_root/{$_SESSION['logged_uid']}/" . substr($pm_row[0],0,1) . "/" . substr($pm_row[0],0,strpos($pm_row[0],"@")) . "/new/*";
+                       $msg_new = count(glob($msg_new));
+      
+                       $msg_cur = "$mail_root/{$_SESSION['logged_uid']}/" . substr($pm_row[0],0,1) . "/" . substr($pm_row[0],0,strpos($pm_row[0],"@")) . "/cur/*";
+                       $msg_cur = count(glob($msg_cur));
+      
+                       $pm_aka = mysql_query("select * from aliases where alias='{$pm_row[0]}'");
+                       $pm_aka = mysql_num_rows($pm_aka);
+      
+                       echo "<tr bgcolor=\"$pm_bg\"><td align=\"right\">$msg_new</td><td align=\"right\">$msg_cur</td><td align=\"right\">$pm_aka</td><form method=\"post\"><input type=\"hidden\" name=\"pm_set\" value=\"{$pm_row[0]}\"><input type=\"hidden\" name=\"pm_do\" value=\"$pm_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$pm_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"pm_mod\" value=\"{$pm_row[0]}\"><td><b>{$pm_row[0]}</b></td><td><input class=\"input\" type=\"text\" name=\"pm_name\" maxlength=\"128\" autocomplete=\"off\" value=\"{$pm_row[3]}\"></td><td><input class=\"input\" type=\"text\" name=\"pm_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td><input class=\"input\" type=\"text\" name=\"pm_host\" maxlength=\"255\" autocomplete=\"off\" value=\"{$pm_row[6]}\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"pm_del\" value=\"{$pm_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete {$pm_row[0]} plus all messages and aliases associated with this account?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+
+       if ($_SESSION['logged_lvl'] == "administrator") {
+      
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td colspan=\"2\" align=\"center\"><b>status</b></td><td align=\"center\"><nobr><b>domain name</b></nobr></td><td align=\"center\"><nobr><b>account limit</b></nobr></td><td align=\"center\"><nobr><b>postmaster password</b></nobr></td><td align=\"center\" colspan=\"2\"><b>action</b></td></tr>";
+               echo "<form method=\"post\"><tr bgcolor=\"#ffffff\"><td align=\"center\">usr</td><td align=\"center\">rcv</td><td align=\"center\"><input class=\"input\" type=\"text\" name=\"dom_name\" maxlength=\"128\" autocomplete=\"off\"></td><td align=\"center\"><input class=\"rinput\" type=\"text\" name=\"dom_max\" maxlength=\"6\" autocomplete=\"off\" value=\"0\"></td><td align=\"center\"><input class=\"input\" type=\"text\" name=\"dom_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td align=\"center\" colspan=\"2\"><input class=\"input\" type=\"submit\" value=\"add\" autocomplete=\"off\"></td></tr></form>";
+      
+               $dom_get = mysql_query("select * from domains order by id");
+      
+               while ($dom_row = mysql_fetch_array($dom_get)) {
+
+                       $dom_usr = mysql_query("select * from users where domain='{$dom_row[0]}'");
+                       $dom_usr = mysql_num_rows($dom_usr);
+      
+                       if ($dom_row[3] == "1") {
+                               $dom_do = "disable";
+                               $dom_bg = "#ffffff";
+                       }
+      
+                       if ($dom_row[3] == "0") {
+                               $dom_do = "enable";
+                               $dom_bg = "#eeeeee";
+                       }
+      
+                       echo "<tr bgcolor=\"$dom_bg\"><td align=\"right\">$dom_usr</td><form method=\"post\"><input type=\"hidden\" name=\"dom_set\" value=\"{$dom_row[0]}\"><input type=\"hidden\" name=\"dom_do\" value=\"$dom_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$dom_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"dom_mod\" value=\"{$dom_row[0]}\"><td><b>{$dom_row[0]}</b></td><td><input class=\"rinput\" type=\"text\" name=\"dom_max\" maxlength=\"6\" autocomplete=\"off\" value=\"{$dom_row[2]}\"></td><td><input class=\"input\" type=\"text\" name=\"dom_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"dom_del\" value=\"{$dom_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete {$dom_row[0]} plus all accounts and messages associated with this domain?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+      
+       echo "</td>";
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               echo "<td width=\"10\"></td><td valign=\"top\">";
+
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\"><b>alias</b></td><td align=\"center\"><b>recipient</b></td><td align=\"center\" colspan=\"3\"><b>action</b></td></tr>";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"text\" name=\"alias_add\" autocomplete=\"off\" maxlength=\"255\"></td><td><input class=\"input\" type=\"text\" name=\"alias_to\" autocomplete=\"off\" maxlength=\"128\"></td><td colspan=\"3\"><input class=\"input\" type=\"submit\" value=\"add\"></td></tr>";
+               echo "</form>";
+      
+               $get_aliases = mysql_query("select * from aliases where domain='{$_SESSION['logged_uid']}' order by id");
+      
+               while ($aliases_row = mysql_fetch_array($get_aliases)) {
+      
+                       if ($aliases_row[3] == "1") {
+                               $alias_do = "disable";
+                               $alias_bg = "#ffffff";
+                       }
+      
+                       if ($aliases_row[3] == "0") {
+                               $alias_do = "enable";
+                               $alias_bg = "#eeeeee";
+                       }
+      
+                       echo "<tr bgcolor=\"$alias_bg\"><form method=\"post\"><input type=\"hidden\" name=\"alias_mod\" value=\"{$aliases_row[0]}\"><td><b>{$aliases_row[0]}</b></td><td><input class=\"input\" type=\"text\" name=\"alias_to\" maxlength=\"255\" autocomplete=\"off\" value=\"{$aliases_row[1]}\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"alias_set\" value=\"{$aliases_row[0]}\"><input type=\"hidden\" name=\"alias_do\" value=\"$alias_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$alias_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"alias_del\" value=\"{$aliases_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete the {$aliases_row[0]} alias of {$aliases_row[1]}?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+
+       echo "</td></tr>";
+       echo "</table>";
+}
+
+mysql_close($db_link);
+
+?>
diff --git a/pgsql.php b/pgsql.php
new file mode 100644
index 0000000..5d2e561
--- /dev/null
+++ b/pgsql.php
@@ -0,0 +1,854 @@
+<?php
+
+/* modify the values of $db_host, $db_name, $db_user, $db_pass, and $mail_root for basic configuration */
+
+$db_host = "localhost";
+$db_port = "5432";
+$db_name = "kartero";
+$db_user = "postgres";
+$db_pass = "password";
+
+$mail_root = "/var/www/html/mailroot";
+
+/* feel free to hack the succeeding code to suit your needs (basic php and mysql skills required) */
+
+session_start();
+
+function rmdirr($recurse_dirname) {
+
+       if (!file_exists($recurse_dirname)) {
+               return false;
+       }
+
+       if (is_file($recurse_dirname)) {
+               return unlink($recurse_dirname);
+       }
+
+       $recurse_dir = dir($recurse_dirname);
+
+       while (false !== $recurse_entry = $recurse_dir->read()) {
+
+               if ($recurse_entry == '.' || $recurse_entry == '..') {
+                       continue;
+               }
+
+               rmdirr("$recurse_dirname/$recurse_entry");
+       }
+
+       $recurse_dir->close();
+       return rmdir($recurse_dirname);
+}
+
+function ack($ack_string) {
+       echo "<table width=\"100%\"><tr></td><div class=\"ack\">$ack_string</div></td></tr></table>";
+}
+
+function nak($nak_string) {
+       echo "<table width=\"100%\"><tr></td><div class=\"nak\">$nak_string</div></td></tr></table>";
+}
+
+if (file_exists("css.php")) {
+
+       $css = file_get_contents("css.php");
+       $css = str_replace("<style>","",$css);
+       $css = str_replace("</style>","",$css);
+
+       echo "<style>\r\n$css</style>\r\n\r\n";
+}
+
+if (!file_exists("$mail_root")) {
+
+       $mail_dirs = explode("/",$mail_root);
+
+       foreach ($mail_dirs as $mail_dir) {
+      
+               if (!empty($mail_dir)) {
+                       $mail_mkdir = $mail_mkdir . "/" . $mail_dir;
+                       mkdir("$mail_mkdir");
+               }
+       }
+
+       if (!file_exists("$mail_root")) {
+               nak("Can't create '$mail_root' (check filesystem permissions or change '&#36;mail_root' and try again)");
+               exit();
+       }
+}
+
+$db_link = pg_pconnect("host=$db_host port=$db_port user=$db_user password=$db_pass dbname=$db_name");
+
+if (!$db_link) {
+       nak(pg_last_error());
+       exit;
+}
+
+$pw_crypt = crypt("password");
+//$db_query = pg_query($db_link,"create database $db_name");
+//$db_query = pg_query($db_link,"use $db_name");
+$db_query = pg_query($db_link,"create table admins (id varchar(16) not null, pw varchar(64) not null, primary key (id), unique key (id))");
+$db_query = pg_query($db_link,"create table domains (id varchar(128) not null, pw varchar(64) not null, max int(6) default '0', mode int(1) default '1', primary key (id), unique key (id), key id_2 (id))");
+$db_query = pg_query($db_link,"create table users (id varchar(255) not null, pw varchar(64) not null, maildir varchar(255) not null, name varchar(128), domain varchar(128), mode int(1) default '1', host varchar(255), primary key (id), unique key(id), key id_2 (id))");
+$db_query = pg_query($db_link,"create table aliases (id varchar(255) not null, alias varchar(255) not null, domain varchar(128), mode int(1) default '1', primary key (id), unique key (id), key id_2 (id))");
+$db_query = pg_query($db_link,"insert into admins values('root','$pw_crypt')");
+
+$id_put = trim($_POST['id']);
+
+if (get_magic_quotes_gpc()) {
+       $id_put = stripslashes($id_put);
+}
+
+if (!is_int($value)) {
+       $id_put = pg_escape_string($id_put);
+}
+
+$id_put = strip_tags($id_put);
+
+$lvl_put = strip_tags($_POST['lvl']);
+
+if ($lvl_put == "subscriber") {
+       $pw_get = pg_query($db_link,"select pw from users where id='$id_put'");
+}
+
+if ($lvl_put == "postmaster") {
+       $pw_get = pg_query($db_link,"select pw from domains where id='$id_put'");
+}
+
+if ($lvl_put == "administrator") {
+       $pw_get = pg_query($db_link,"select pw from admins where id='$id_put'");
+}
+
+$pw_get = pg_fetch_row($pw_get);
+$pw_get = $pw_get[0];
+
+$pw_put = $_POST['pw'];
+
+if (get_magic_quotes_gpc()) {
+       $pw_put = stripslashes($pw_put);
+}
+
+if (!is_int($value)) {
+       $pw_put = pg_escape_string($pw_put);
+}
+
+$pw_put = strip_tags($pw_put);
+$pw_put = crypt($pw_put,$pw_get);
+
+if ($pw_put == $pw_get) {
+       $_SESSION['logged_uid'] = $id_put;
+       $_SESSION['logged_lvl'] = $lvl_put;
+}
+
+if (isset($_GET['do']) and ($_GET['do'] == "logout")) {
+       $_SESSION = array();
+       session_destroy();
+       header("Location: .");
+       exit;
+}
+
+/* logo here? */
+
+if (!isset($_SESSION['logged_uid']) and (($pw_put != $pw_get) or !isset($_POST['id']) or !isset($_POST['pw']) or empty($_POST['id']) or empty($_POST['pw']))) {
+       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+       echo "<form method=\"post\">";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><select class=\"input\" name=\"lvl\"><option value=\"subscriber\">subscriber</option><option value=\"postmaster\">postmaster</option><option value=\"administrator\">administrator</option></select></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+       echo "<tr bgcolor=\"#ffffff\"><td width=\"150\"><input class=\"input\" type=\"submit\" value=\"login\"></td></tr>";
+       echo "</form>";
+       echo "</table>";
+       exit;
+}
+
+if (isset($_SESSION['logged_uid'])) {
+
+       echo "<p><nobr>You are currently logged in to your {$_SESSION['logged_uid']} {$_SESSION['logged_lvl']} account. Click <a href=\"?do=logout\">here</a> to logout.</nobr></p>";
+
+       echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
+       echo "<tr><td colspan=\"3\" valign=\"top\">";
+
+       if ($_SESSION['logged_lvl'] == "subscriber") {
+      
+               $usr_query = pg_query($db_link,"select * from users where id='{$_SESSION['logged_uid']}'");
+               $usr_data = pg_fetch_row($usr_query);
+
+               $dom_query = pg_query($db_link,"select mode from domains where id='{$usr_data[4]}'");
+               $dom_data = pg_fetch_row($dom_query);
+
+               if ($dom_data[0] == 0) {
+                       nak("{$usr_data[4]} disabled by admin - new settings will take effect once it is re-enabled");
+               }
+
+               if ($usr_data[5] == 0) {
+                       nak("{$_SESSION['logged_uid']} disabled by postmaster - new settings will take effect once it is re-enabled");
+               }
+      
+               $usr_name = $usr_data[3];
+      
+               if (isset($_POST['usr_name']) and !empty($_POST['usr_name'])) {
+      
+                       $usr_name = trim($_POST['usr_name']);
+                       $usr_name = ucwords($usr_name);
+      
+                       if ($usr_name != $usr_data[3]) {
+      
+                               $usr_query = pg_query($db_link,"update users set name='$usr_name' where id='{$_SESSION['logged_uid']}'");
+      
+                               if (!usr_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       ack("name changed");
+                               }
+                       }
+                       else {
+                               $usr_name = $usr_data[3];
+                       }
+               }
+      
+               $usr_pw0 = $usr_data[1];
+      
+               if (isset($_POST['usr_pw1']) and !empty($_POST['usr_pw1']) and isset($_POST['usr_pw2']) and !empty($_POST['usr_pw2']) and isset($_POST['usr_pw3']) and !empty($_POST['usr_pw3'])) {
+      
+                       $usr_pw1 = trim($_POST['usr_pw1']);
+                       $usr_pw2 = trim($_POST['usr_pw2']);
+                       $usr_pw3 = trim($_POST['usr_pw3']);
+      
+                       if ($usr_pw0 == crypt($usr_pw1,$usr_pw0)) {
+      
+                               if ($usr_pw2 == $usr_pw3) {
+                                      
+                                       $usr_pw = crypt($usr_pw2);
+      
+                                       $usr_query = pg_query($db_link,"update users set pw='$usr_pw' where id='{$_SESSION['logged_uid']}'");
+      
+                                       if (!usr_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("password changed");
+                                       }
+                               }
+                               else {
+                                       nak("new passwords do not match");
+                               }
+                       }
+                       else {
+                               nak("current password entered is incorrect");
+                       }
+               }
+       }
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               $dom_query = pg_query($db_link,"select mode from domains where id='{$_SESSION['logged_uid']}'");
+               $dom_query = pg_fetch_row($dom_query);
+      
+               if ($dom_query[0] == "0") {
+                       nak("{$_SESSION['logged_uid']} disabled by admin - new settings will take effect once it is re-enabled");
+               }
+      
+               if (isset($_POST['pm_id']) and isset($_POST['pm_name']) and isset($_POST['pm_pw']) and !empty($_POST['pm_id']) and !empty($_POST['pm_name']) and !empty($_POST['pm_pw'])) {
+      
+                       $pm_id = trim($_POST['pm_id']);
+                       $pm_id = strtolower($pm_id);
+      
+                       if (preg_match("/@/",$pm_id)) {
+                               $pm_id = substr($pm_id,0,strpos($pm_id,"@"));
+                       }
+      
+                       $pm_addr = $pm_id . "@" . $_SESSION['logged_uid'];
+      
+                       $alias_query = pg_query($db_link,"select id from aliases where id='$pm_addr'");
+      
+                       if (pg_fetch_row($alias_query) > 0) {
+                               nak("$pm_addr alias exists");
+                       }
+                       else {
+                               $pm_name = trim($_POST['pm_name']);
+                               $pm_name = ucwords($pm_name);
+      
+                               $pm_pw = trim($_POST['pm_pw']);
+                               $pm_pw = crypt($pm_pw);
+      
+                               $pm_init = substr($pm_id,0,1);
+      
+                               $pm_maildir = "{$_SESSION['logged_uid']}/$pm_init/$pm_id";
+
+                               $pm_host = trim($_POST['pm_host']);
+                               $pm_host = strtolower($pm_host);
+      
+                               $pm_query = pg_query($db_link,"insert into users values('$pm_addr','$pm_pw','$pm_maildir/','$pm_name','{$_SESSION['logged_uid']}','1','$pm_host')");
+      
+                               if (!$pm_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       if (!file_exists("$mail_root/{$_SESSION['logged_uid']}")) {
+                                               mkdir("$mail_root/{$_SESSION['logged_uid']}");
+                                       }
+      
+                                       if (!file_exists("$mail_root/{$_SESSION['logged_uid']}/$pm_init")) {
+                                               mkdir("$mail_root/{$_SESSION['logged_uid']}/$pm_init");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir")) {
+                                               mkdir("$mail_root/$pm_maildir");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir/cur")) {
+                                               mkdir("$mail_root/$pm_maildir/cur");
+                                       }
+              
+                                       if (!file_exists("$mail_root/$pm_maildir/new")) {
+                                               mkdir("$mail_root/$pm_maildir/new");
+                                       }
+      
+                                       if (!file_exists("$mail_root/$pm_maildir/tmp")) {
+                                               mkdir("$mail_root/$pm_maildir/tmp");
+                                       }
+      
+                                       ack("$pm_addr added");
+                               }
+                       }
+               }
+
+               if (isset($_POST['pm_mod']) and !empty($_POST['pm_mod'])) {
+                      
+                       $pm_mod = trim($_POST['pm_mod']);
+      
+                       if (isset($_POST['pm_name']) and !empty($_POST['pm_name'])) {
+      
+                               $pm_name = trim($_POST['pm_name']);
+                               $pm_name = ucwords($pm_name);
+      
+                               $pm_query = pg_query($db_link,"select name from users where id='$pm_mod'");
+      
+                               $name_get = pg_fetch_row($pm_query);
+      
+                               if ($name_get[0] != $pm_name) {
+      
+                                       $pm_query = pg_query($db_link,"update users set name='$pm_name' where id='$pm_mod'");
+      
+                                       if (!$pm_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$pm_mod complete name updated");
+                                       }
+                               }
+                       }
+      
+                       if (isset($_POST['pm_pass']) and !empty($_POST['pm_pass'])) {
+      
+                               $pm_pass = $_POST['pm_pass'];
+                               $pm_pass = crypt($pm_pass);
+      
+                               $pm_query = pg_query($db_link,"update users set pw='$pm_pass' where id='$pm_mod'");
+      
+                               if (!$pm_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       ack("$pm_mod password updated");
+                               }
+                       }
+
+                       if (isset($_POST['pm_host'])) {
+      
+                               $pm_host = trim($_POST['pm_host']);
+                               $pm_host = strtolower($pm_host);
+      
+                               $pm_query = pg_query($db_link,"select host from users where id='$pm_mod'");
+      
+                               $host_get = pg_fetch_row($pm_query);
+      
+                               if ($host_get[0] != $pm_host) {
+      
+                                       $pm_query = pg_query($db_link,"update users set host='$pm_host' where id='$pm_mod'");
+      
+                                       if (!$pm_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$pm_mod delivery host updated");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['pm_set']) and !empty($_POST['pm_set']) and isset($_POST['pm_do']) and !empty($_POST['pm_do'])) {
+      
+                       $pm_set = trim($_POST['pm_set']);
+                       $pm_do = trim($_POST['pm_do']);
+      
+                       if ($pm_do == "disable") {
+                               $pm_do = "0";
+                       }
+      
+                       if ($pm_do == "enable") {
+                               $pm_do = "1";
+                       }
+              
+                       $pm_query = pg_query($db_link,"update aliases set mode='$pm_do' where alias='$pm_set'");
+                       $pm_query = pg_query($db_link,"update users set mode='$pm_do' where id='$pm_set'");
+      
+                       if (!$pm_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+      
+                               $pm_query = pg_query($db_link,"select alias from aliases where alias='$pm_set'");
+                               $pm_aka = pg_num_rows($pm_query);
+      
+                               if ($pm_do == "0") {
+      
+                                       if ($pm_aka > 0) {
+      
+                                               if ($pm_aka < 2) {
+                                                       ack("$pm_set account and 1 alias disabled");
+                                               }
+                                               else {
+                                                       ack("$pm_set account and $pm_aka aliases disabled");
+                                               }
+                                       }
+                                       else {
+                                               ack("$pm_set account disabled");
+                                       }
+                               }
+      
+                               if ($pm_do == "1") {
+      
+                                       if (pg_fetch_row($pm_query) > 0) {
+      
+                                               if ($pm_aka < 2) {
+                                                       ack("$pm_set account and 1 alias enabled");
+                                               }
+                                               else {
+                                                       ack("$pm_set account and $pm_aka aliases enabled");
+                                               }
+                                       }
+                                       else {
+                                               ack("$pm_set account enabled");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['pm_del']) and !empty($_POST['pm_del'])) {
+                      
+                       $pm_del = trim($_POST['pm_del']);
+      
+                       $pm_query = pg_query($db_link,"delete from aliases where alias='$pm_del'");
+                       $pm_query = pg_query($db_link,"delete from users where id='$pm_del'");
+      
+                       if (!$pm_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+                               $pm_init = substr($pm_del,0,1);
+                               $pm_box = substr($pm_del,0,strpos($pm_del,"@"));
+      
+                               if (file_exists("$mail_root/{$_SESSION['logged_uid']}/$pm_init/$pm_box")) {
+                                       rmdirr("$mail_root/{$_SESSION['logged_uid']}/$pm_init/$pm_box");
+                               }
+      
+                               if (count(glob("$mail_root/{$_SESSION['logged_uid']}/$pm_init/*")) < 1) {
+                                       rmdir("$mail_root/{$_SESSION['logged_uid']}/$pm_init");
+                               }
+      
+                               ack("$pm_del deleted");
+                       }
+               }
+      
+               if (isset($_POST['alias_add']) and !empty($_POST['alias_add']) and isset($_POST['alias_to']) and !empty($_POST['alias_to'])) {
+      
+                       $alias_add = trim($_POST['alias_add']);
+      
+                       if (preg_match("/@/",$alias_add)) {
+                               $alias_add = substr($alias_add,0,strpos($alias_add,"@"));
+                       }
+      
+                       $alias_add = "$alias_add@{$_SESSION['logged_uid']}";
+      
+                       $alias_to = trim($_POST['alias_to']);
+      
+                       $alias_query = pg_query($db_link,"select id from users where id='$alias_add'");
+      
+                       if (pg_num_rows($alias_query) > 0) {
+                               nak("$alias_add account exists");
+                       }
+                       else {
+                               if (!preg_match("/@/",$alias_to) or preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+      
+                                       if (preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+                                               $alias_to = substr($alias_to,0,strpos($alias_to,"@"));
+                                       }
+              
+                                       $alias_to = "$alias_to@{$_SESSION['logged_uid']}";
+              
+                                       $alias_query = pg_query($db_link,"select id from users where id='$alias_to'");
+              
+                                       if (pg_num_rows($alias_query) < 1) {
+                                               nak("$alias_to does not exist");
+                                       }
+                                       else {
+                                               $alias_query = pg_query($db_link,"insert into aliases values('$alias_add','$alias_to','{$_SESSION['logged_uid']}','1')");
+              
+                                               if (!$alias_query) {
+                                                       nak(strtolower(pg_last_error()));
+                                               }
+                                               else {
+                                                       ack("$alias_add added");
+                                               }
+                                       }
+                               }
+                               else {
+                                       $alias_query = pg_query($db_link,"insert into aliases values('$alias_add','$alias_to','{$_SESSION['logged_uid']}','1')");
+      
+                                       if (!$alias_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$alias_add added");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_mod']) and !empty($_POST['alias_mod']) and isset($_POST['alias_to']) and !empty($_POST['alias_to'])) {
+                      
+                       $alias_mod = trim($_POST['alias_mod']);
+      
+                       $alias_to = trim($_POST['alias_to']);
+      
+                       if (!preg_match("/@/",$alias_to) or preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+      
+                               if (preg_match("/@{$_SESSION['logged_uid']}/",$alias_to)) {
+                                       $alias_to = substr($alias_to,0,strpos($alias_to,"@"));
+                               }
+      
+                               $alias_to = "$alias_to@{$_SESSION['logged_uid']}";
+      
+                               $alias_query = pg_query($db_link,"select id from users where id='$alias_to'");
+      
+                               if (pg_num_rows($alias_query) < 1) {
+                                       nak("$alias_to does not exist");
+                               }
+                               else {
+                                       $alias_query = pg_query($db_link,"update aliases set alias='$alias_to' where id='$alias_mod'");
+      
+                                       if (!$alias_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$alias_mod updated");
+                                       }
+                               }
+                       }
+                       else {
+      
+                               $alias_query = pg_query($db_link,"update aliases set alias='$alias_to' where id='$alias_mod'");
+              
+                               if (!$alias_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       ack("$alias_mod updated");
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_set']) and !empty($_POST['alias_set']) and isset($_POST['alias_do']) and !empty($_POST['alias_do'])) {
+      
+                       $alias_set = trim($_POST['alias_set']);
+                       $alias_do = trim($_POST['alias_do']);
+      
+                       if ($alias_do == "disable") {
+                               $alias_do = "0";
+                               $alias_query = pg_query($db_link,"update aliases set mode='$alias_do' where id='$alias_set'");
+      
+                               if (!$alias_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       ack("$alias_set alias disabled");
+                               }
+                       }
+      
+                       if ($alias_do == "enable") {
+      
+                               $alias_query = pg_query($db_link,"select alias from aliases where id='$alias_set'");
+                               $alias_recipient = pg_fetch_row($alias_query);
+                               $alias_recipient = $alias_recipient[0];
+      
+                               $usr_query = pg_query($db_link,"select mode from users where id='$alias_recipient'");
+                               $alias_recipient_mode = pg_fetch_row($usr_query);
+                               $alias_recipient_mode = $alias_recipient_mode[0];
+      
+                               if ($alias_recipient_mode == "0") {
+                                       nak("cannot enable $alias_set alias while $alias_recipient recipient account is disabled");
+                               }
+                               else {
+                                       $alias_do = "1";
+                                       $alias_query = pg_query($db_link,"update aliases set mode='$alias_do' where id='$alias_set'");
+              
+                                       if (!$alias_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$alias_set alias enabled");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['alias_del']) and !empty($_POST['alias_del'])) {
+                      
+                       $alias_del = trim($_POST['alias_del']);
+                       $alias_query = pg_query($db_link,"delete from aliases where id='$alias_del'");
+      
+                       if (!$alias_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+                               ack("$alias_del deleted");
+                       }
+               }
+       }
+      
+       if ($_SESSION['logged_lvl'] == "administrator") {
+
+               if (isset($_POST['dom_name']) and isset($_POST['dom_pass']) and isset($_POST['dom_max']) and !empty($_POST['dom_name']) and !empty($_POST['dom_pass']) and is_numeric($_POST['dom_max'])) {
+      
+                       $dom_name = trim($_POST['dom_name']);
+      
+                       $dom_pass = trim($_POST['dom_pass']);
+                       $dom_pass = crypt($dom_pass);
+      
+                       $dom_max = trim($_POST['dom_max']);
+      
+                       $dom_query = pg_query($db_link,"insert into domains values('$dom_name','$dom_pass','$dom_max','1')");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+                               if (!file_exists("$mail_root/$dom_name")) {
+                                       mkdir("$mail_root/$dom_name");
+                               }
+      
+                               ack("$dom_name added");
+                       }
+               }
+      
+               if (isset($_POST['dom_mod']) and !empty($_POST['dom_mod'])) {
+                      
+                       $dom_mod = trim($_POST['dom_mod']);
+      
+                       if (isset($_POST['dom_pass']) and !empty($_POST['dom_pass'])) {
+      
+                               $dom_pass = $_POST['dom_pass'];
+                               $dom_pass = crypt($dom_pass);
+      
+                               $dom_query = pg_query($db_link,"update domains set pw='$dom_pass' where id='$dom_mod'");
+      
+                               if (!$dom_query) {
+                                       nak(strtolower(pg_last_error()));
+                               }
+                               else {
+                                       ack("$dom_mod postmaster password updated");
+                               }
+                       }
+      
+                       if (isset($_POST['dom_max']) and is_numeric($_POST['dom_max'])) {
+      
+                               $dom_max = $_POST['dom_max'];
+      
+                               $dom_query = pg_query($db_link,"select max from domains where id='$dom_mod'");
+      
+                               $max_get = pg_fetch_row($dom_query);
+      
+                               if ($max_get[0] != $dom_max) {
+      
+                                       $dom_query = pg_query($db_link,"update domains set max='$dom_max' where id='$dom_mod'");
+      
+                                       if (!$dom_query) {
+                                               nak(strtolower(pg_last_error()));
+                                       }
+                                       else {
+                                               ack("$dom_mod account limit updated");
+                                       }
+                               }
+                       }
+               }
+      
+               if (isset($_POST['dom_set']) and !empty($_POST['dom_set']) and isset($_POST['dom_do']) and !empty($_POST['dom_do'])) {
+      
+                       $dom_set = trim($_POST['dom_set']);
+                       $dom_do = trim($_POST['dom_do']);
+      
+                       if ($dom_do == "disable") {
+                               $dom_do = "0";
+                       }
+      
+                       if ($dom_do == "enable") {
+                               $dom_do = "1";
+                       }
+              
+                       $dom_query = pg_query($db_link,"update domains set mode='$dom_do' where id='$dom_set'");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+                               if ($dom_do == "0") {
+                                       ack("$dom_set disabled");
+                               }
+      
+                               if ($dom_do == "1") {
+                                       ack("$dom_set enabled");
+                               }
+                       }
+               }
+      
+               if (isset($_POST['dom_del']) and !empty($_POST['dom_del'])) {
+                      
+                       $dom_del = trim($_POST['dom_del']);
+      
+                       $dom_query = pg_query($db_link,"delete from aliases where domain='$dom_del'");
+                       $dom_query = pg_query($db_link,"delete from users where domain='$dom_del'");
+                       $dom_query = pg_query($db_link,"delete from domains where id='$dom_del'");
+      
+                       if (!$dom_query) {
+                               nak(strtolower(pg_last_error()));
+                       }
+                       else {
+                               if (file_exists("$mail_root/$dom_del")) {
+                                       rmdirr("$mail_root/$dom_del");
+                               }
+                               ack("$dom_del deleted");
+                       }
+               }
+       }
+      
+       echo "</td></tr>";
+
+       echo "<tr><td valign=\"top\">";
+
+       if ($_SESSION['logged_lvl'] == "subscriber") {
+
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/user.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"text\" name=\"usr_name\" value=\"$usr_name\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw1\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw2\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"><img src=\"images/pass.png\" border=\"0\" width=\"16\" height=\"16\"></td><td><input class=\"input\" type=\"password\" name=\"usr_pw3\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\" valign=\"middle\"></td><td><input class=\"input\" type=\"submit\" value=\"update\"></td></tr>";
+               echo "</form>";
+               echo "</table>";
+       }
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td colspan=\"4\" align=\"center\"><b>status</b></td><td align=\"center\"><b>username</b></td><td align=\"center\"><b>complete name</b></td><td align=\"center\"><b>password</b></td><td align=\"center\"><b>host</b></td><td align=\"center\" colspan=\"2\"><b>action</b></td></tr>";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\">new</td><td align=\"center\">cur</td><td align=\"center\">aka</td><td align=\"center\">rcv</td><td><input class=\"input\" type=\"text\" name=\"pm_id\" autocomplete=\"off\" maxlength=\"255\"></td><td><input class=\"input\" type=\"text\" name=\"pm_name\" autocomplete=\"off\" maxlength=\"128\"></td><td><input class=\"input\" type=\"text\" name=\"pm_pw\" autocomplete=\"off\" maxlength=\"64\"></td><td><input class=\"input\" type=\"text\" name=\"pm_host\" autocomplete=\"off\" maxlength=\"255\"></td><td colspan=\"2\"><input class=\"input\" type=\"submit\" value=\"add\"></td></tr>";
+               echo "</form>";
+      
+               $pm_get = pg_query($db_link,"select * from users where domain='{$_SESSION['logged_uid']}' order by id");
+      
+               while ($pm_row = pg_fetch_array($pm_get)) {
+      
+                       if ($pm_row[5] == "1") {
+                               $pm_do = "disable";
+                               $pm_bg = "#ffffff";
+                       }
+      
+                       if ($pm_row[5] == "0") {
+                               $pm_do = "enable";
+                               $pm_bg = "#eeeeee";
+                       }
+      
+                       $msg_new = "$mail_root/{$_SESSION['logged_uid']}/" . substr($pm_row[0],0,1) . "/" . substr($pm_row[0],0,strpos($pm_row[0],"@")) . "/new/*";
+                       $msg_new = count(glob($msg_new));
+      
+                       $msg_cur = "$mail_root/{$_SESSION['logged_uid']}/" . substr($pm_row[0],0,1) . "/" . substr($pm_row[0],0,strpos($pm_row[0],"@")) . "/cur/*";
+                       $msg_cur = count(glob($msg_cur));
+      
+                       $pm_aka = pg_query($db_link,"select * from aliases where alias='{$pm_row[0]}'");
+                       $pm_aka = pg_num_rows($pm_aka);
+      
+                       echo "<tr bgcolor=\"$pm_bg\"><td align=\"right\">$msg_new</td><td align=\"right\">$msg_cur</td><td align=\"right\">$pm_aka</td><form method=\"post\"><input type=\"hidden\" name=\"pm_set\" value=\"{$pm_row[0]}\"><input type=\"hidden\" name=\"pm_do\" value=\"$pm_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$pm_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"pm_mod\" value=\"{$pm_row[0]}\"><td><b>{$pm_row[0]}</b></td><td><input class=\"input\" type=\"text\" name=\"pm_name\" maxlength=\"128\" autocomplete=\"off\" value=\"{$pm_row[3]}\"></td><td><input class=\"input\" type=\"text\" name=\"pm_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td><input class=\"input\" type=\"text\" name=\"pm_host\" maxlength=\"255\" autocomplete=\"off\" value=\"{$pm_row[6]}\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"pm_del\" value=\"{$pm_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete {$pm_row[0]} plus all messages and aliases associated with this account?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+
+       if ($_SESSION['logged_lvl'] == "administrator") {
+      
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td colspan=\"2\" align=\"center\"><b>status</b></td><td align=\"center\"><nobr><b>domain name</b></nobr></td><td align=\"center\"><nobr><b>account limit</b></nobr></td><td align=\"center\"><nobr><b>postmaster password</b></nobr></td><td align=\"center\" colspan=\"2\"><b>action</b></td></tr>";
+               echo "<form method=\"post\"><tr bgcolor=\"#ffffff\"><td align=\"center\">usr</td><td align=\"center\">rcv</td><td align=\"center\"><input class=\"input\" type=\"text\" name=\"dom_name\" maxlength=\"128\" autocomplete=\"off\"></td><td align=\"center\"><input class=\"rinput\" type=\"text\" name=\"dom_max\" maxlength=\"6\" autocomplete=\"off\" value=\"0\"></td><td align=\"center\"><input class=\"input\" type=\"text\" name=\"dom_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td align=\"center\" colspan=\"2\"><input class=\"input\" type=\"submit\" value=\"add\" autocomplete=\"off\"></td></tr></form>";
+      
+               $dom_get = pg_query($db_link,"select * from domains order by id");
+      
+               while ($dom_row = pg_fetch_array($dom_get)) {
+
+                       $dom_usr = pg_query($db_link,"select * from users where domain='{$dom_row[0]}'");
+                       $dom_usr = pg_num_rows($dom_usr);
+      
+                       if ($dom_row[3] == "1") {
+                               $dom_do = "disable";
+                               $dom_bg = "#ffffff";
+                       }
+      
+                       if ($dom_row[3] == "0") {
+                               $dom_do = "enable";
+                               $dom_bg = "#eeeeee";
+                       }
+      
+                       echo "<tr bgcolor=\"$dom_bg\"><td align=\"right\">$dom_usr</td><form method=\"post\"><input type=\"hidden\" name=\"dom_set\" value=\"{$dom_row[0]}\"><input type=\"hidden\" name=\"dom_do\" value=\"$dom_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$dom_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"dom_mod\" value=\"{$dom_row[0]}\"><td><b>{$dom_row[0]}</b></td><td><input class=\"rinput\" type=\"text\" name=\"dom_max\" maxlength=\"6\" autocomplete=\"off\" value=\"{$dom_row[2]}\"></td><td><input class=\"input\" type=\"text\" name=\"dom_pass\" maxlength=\"64\" autocomplete=\"off\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"dom_del\" value=\"{$dom_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete {$dom_row[0]} plus all accounts and messages associated with this domain?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+      
+       echo "</td>";
+
+       if ($_SESSION['logged_lvl'] == "postmaster") {
+      
+               echo "<td width=\"10\"></td><td valign=\"top\">";
+
+               echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
+               echo "<tr bgcolor=\"#ffffff\"><td align=\"center\"><b>alias</b></td><td align=\"center\"><b>recipient</b></td><td align=\"center\" colspan=\"3\"><b>action</b></td></tr>";
+               echo "<form method=\"post\">";
+               echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"text\" name=\"alias_add\" autocomplete=\"off\" maxlength=\"255\"></td><td><input class=\"input\" type=\"text\" name=\"alias_to\" autocomplete=\"off\" maxlength=\"128\"></td><td colspan=\"3\"><input class=\"input\" type=\"submit\" value=\"add\"></td></tr>";
+               echo "</form>";
+      
+               $get_aliases = pg_query($db_link,"select * from aliases where domain='{$_SESSION['logged_uid']}' order by id");
+      
+               while ($aliases_row = pg_fetch_array($get_aliases)) {
+      
+                       if ($aliases_row[3] == "1") {
+                               $alias_do = "disable";
+                               $alias_bg = "#ffffff";
+                       }
+      
+                       if ($aliases_row[3] == "0") {
+                               $alias_do = "enable";
+                               $alias_bg = "#eeeeee";
+                       }
+      
+                       echo "<tr bgcolor=\"$alias_bg\"><form method=\"post\"><input type=\"hidden\" name=\"alias_mod\" value=\"{$aliases_row[0]}\"><td><b>{$aliases_row[0]}</b></td><td><input class=\"input\" type=\"text\" name=\"alias_to\" maxlength=\"255\" autocomplete=\"off\" value=\"{$aliases_row[1]}\"></td><td><input class=\"input\" type=\"submit\" value=\"mod\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"alias_set\" value=\"{$aliases_row[0]}\"><input type=\"hidden\" name=\"alias_do\" value=\"$alias_do\"><td align=\"center\" valign=\"middle\" width=\"10\"><input type=\"image\" src=\"images/{$alias_do}.png\"></td></form><form method=\"post\"><input type=\"hidden\" name=\"alias_del\" value=\"{$aliases_row[0]}\"><td><input class=\"input\" type=\"submit\" value=\"del\" onclick=\"if (confirm('Do you really want to delete the {$aliases_row[0]} alias of {$aliases_row[1]}?')) {return true;} else {return false;}\"></td></form></tr>";
+               }
+      
+               echo "</table>";
+       }
+
+       echo "</td></tr>";
+       echo "</table>";
+}
+
+pg_close($db_link);
+
+?>
diff --git a/rel.txt b/rel.txt
new file mode 100644
index 0000000..c653a39
--- /dev/null
+++ b/rel.txt
@@ -0,0 +1 @@
+20100123
\ No newline at end of file
 
filedropkartero.git-41992ae.tar.bz2 new
412.12 KB
28 downloads
filedropkartero.git-41992ae.zip
448.41 KB
12 downloads
filedropkartero.git-b404ba2.tar.bz2
411.70 KB
26 downloads
filedropkartero.git-b404ba2.zip
447.96 KB
9 downloads
filedropkartero.git-a7684d9.tar.bz2
411.72 KB
261 downloads
filedropkartero.git-a7684d9.zip
447.96 KB
373 downloads
filedropkartero.git-83512be.tar.bz2
410.26 KB
252 downloads
filedropkartero.git-83512be.zip
445.30 KB
208 downloads
filedropkartero.git-1954b25.tar.bz2
410.21 KB
245 downloads
filedropkartero.git-1954b25.zip
445.30 KB
205 downloads
filedropkartero.git-2f7c910.tar.bz2
410.25 KB
236 downloads
filedropkartero.git-2f7c910.zip
445.29 KB
191 downloads
filedropkartero.git-6317ffb.tar.bz2
410.40 KB
218 downloads
filedropkartero.git-6317ffb.zip
445.28 KB
173 downloads
filedropkartero.git-60ccd7a.tar.bz2
410.40 KB
205 downloads
filedropkartero.git-60ccd7a.zip
445.20 KB
169 downloads
filedropkartero.git-ea6f885.tar.bz2
410.47 KB
9 downloads
filedropkartero.git-ea6f885.zip
445.26 KB
149 downloads
filedropkartero.git-7f580e5.zip
445.17 KB
139 downloads
filedropkartero.git-7f580e5.tar.bz2
410.18 KB
163 downloads
filedropkartero.git-b9364de.tar.bz2
409.41 KB
153 downloads
filedropkartero.git-b9364de.zip
444.09 KB
396 downloads
filedropkartero.git-e9bcd78.zip
444.03 KB
377 downloads
filedropkartero.git-e9bcd78.tar.bz2
409.39 KB
422 downloads
filedropkartero.git-96c60ff.tar.bz2
407.96 KB
416 downloads
filedropkartero.git-96c60ff.zip
441.87 KB
350 downloads
filedropkartero.git-4357b59.tar.bz2
407.17 KB
408 downloads
filedropkartero.git-4357b59.zip
440.69 KB
352 downloads
filedropkartero.git-c6ff319.tar.bz2
407.28 KB
407 downloads
filedropkartero.git-c6ff319.zip
440.70 KB
333 downloads
filedropkartero.git-8b87a29.tar.bz2
407.27 KB
388 downloads
filedropkartero.git-8b87a29.zip
440.71 KB
332 downloads
filedropkartero.git-ee42942.tar.bz2
406.49 KB
347 downloads
filedropkartero.git-ee42942.zip
439.92 KB
310 downloads
filedropkartero.git-867e7e6.tar.bz2
406.75 KB
370 downloads
filedropkartero.git-867e7e6.zip
440.03 KB
313 downloads
filedropkartero.git-3f3fc02.tar.bz2
406.38 KB
365 downloads
filedropkartero.git-3f3fc02.zip
439.71 KB
337 downloads
filedropkartero.git-b6f779d.tar.bz2
406.55 KB
384 downloads
filedropkartero.git-b6f779d.zip
440.00 KB
297 downloads
filedropkartero.git-83f24b0.zip
439.12 KB
279 downloads
filedropkartero.git-52316ec.tar.bz2
406.17 KB
340 downloads
filedropkartero.git-52316ec.zip
439.18 KB
303 downloads
filedropkartero.git-83f24b0.tar.bz2
405.84 KB
336 downloads
filedropkartero.git-8a42d47.tar.bz2
405.73 KB
302 downloads
filedropkartero.git-8a42d47.zip
439.02 KB
275 downloads
filedropkartero.git-830c9cb.tar.bz2
406.08 KB
305 downloads
filedropkartero.git-830c9cb.zip
439.08 KB
273 downloads
filedropkartero.git-ebec1be.tar.bz2
406.16 KB
308 downloads
filedropkartero.git-ebec1be.zip
439.09 KB
303 downloads
filedropkartero.git-7c0b70f.tar.bz2
402.43 KB
292 downloads
filedropkartero.git-7c0b70f.zip
435.91 KB
266 downloads
filedropkartero.git-80edc03.tar.bz2
402.75 KB
306 downloads
filedropkartero.git-80edc03.zip
435.84 KB
278 downloads
filedropkartero.git-b408c23.tar.bz2
402.19 KB
298 downloads
filedropkartero.git-b408c23.zip
435.59 KB
282 downloads
filedropkartero.git-29c0e1f.tar.bz2
401.84 KB
301 downloads
filedropkartero.git-29c0e1f.zip
435.25 KB
294 downloads
filedropkartero.git-9086094.tar.bz2
401.94 KB
302 downloads
filedropkartero.git-9086094.zip
435.34 KB
295 downloads
filedropkartero.git-47ca624.tar.bz2
402.10 KB
300 downloads
filedropkartero.git-47ca624.zip
435.51 KB
262 downloads
filedropkartero.git-81314a5.zip
435.53 KB
282 downloads
filedropkartero.git-81314a5.tar.bz2
402.25 KB
297 downloads
filedropkartero.git-cae7074.zip
435.20 KB
278 downloads
filedropkartero.git-cae7074.tar.bz2
401.98 KB
313 downloads
filedropkartero.git-cc68e56.tar.bz2
402.07 KB
295 downloads
filedropkartero.git-cc68e56.zip
435.16 KB
308 downloads
filedropkartero.git-230f35d.tar.bz2
401.43 KB
281 downloads
filedropkartero.git-230f35d.zip
434.68 KB
295 downloads
filedropkartero.git-5ae58a2.tar.bz2
401.54 KB
284 downloads
filedropkartero.git-5ae58a2.zip
434.68 KB
268 downloads
filedropkartero.git-a591f4b.tar.bz2
401.76 KB
282 downloads
filedropkartero.git-a591f4b.zip
435.17 KB
276 downloads
filedropkartero.git-36876c8.tar.bz2
400.44 KB
280 downloads
filedropkartero.git-36876c8.zip
432.36 KB
298 downloads
filedropkartero.git-a34c9ed.tar.bz2
400.57 KB
304 downloads
filedropkartero.git-a34c9ed.zip
432.27 KB
289 downloads
filedropkartero.git-e828148.zip
433.58 KB
268 downloads
filedropkartero.git-e828148.tar.bz2
400.88 KB
291 downloads
filedropkartero.git-476cdda.tar.bz2
400.60 KB
321 downloads
filedropkartero.git-476cdda.zip
432.26 KB
281 downloads
filedropkartero.git-054c286.tar.bz2
98.09 KB
366 downloads
filedropkartero.git-054c286.zip
109.53 KB
341 downloads
filedropkartero.git-071b099.tar.bz2
98.76 KB
369 downloads
filedropkartero.git-071b099.zip
110.21 KB
341 downloads
filedropkartero.git-551c38d.tar.bz2
98.51 KB
374 downloads
filedropkartero.git-551c38d.zip
110.20 KB
333 downloads
filedropkartero.git-569dc0c.tar.bz2
98.40 KB
369 downloads
filedropkartero.git-569dc0c.zip
109.86 KB
325 downloads
filedropkartero.git-58a052b.tar.bz2
97.95 KB
368 downloads
filedropkartero.git-58a052b.zip
109.36 KB
337 downloads
filedropkartero.git-43a5af3.tar.bz2
97.80 KB
362 downloads
filedropkartero.git-43a5af3.zip
109.30 KB
335 downloads
filedropkartero.git-bbe069d.tar.bz2
98.03 KB
376 downloads
filedropkartero.git-bbe069d.zip
109.19 KB
339 downloads
filedropkartero.git-02f97e1.tar.bz2
97.76 KB
342 downloads
filedropkartero.git-02f97e1.zip
109.24 KB
431 downloads
filedropkartero.git-d82e393.tar.bz2
97.74 KB
374 downloads
filedropkartero.git-d82e393.zip
109.24 KB
340 downloads
filedropkartero.git-7cdd1f5.tar.bz2
98.03 KB
357 downloads
filedropkartero.git-7cdd1f5.zip
109.24 KB
321 downloads
filedropkartero.git-40825aa.tar.bz2
97.71 KB
358 downloads
filedropkartero.git-40825aa.zip
109.16 KB
358 downloads
filedropkartero.git-3dd941b.tar.bz2
97.69 KB
356 downloads
filedropkartero.git-3dd941b.zip
109.12 KB
332 downloads
filedropkartero.git-50f1e46.tar.bz2
97.65 KB
365 downloads
filedropkartero.git-50f1e46.zip
109.02 KB
335 downloads
filedropkartero.git-fdf9225.tar.bz2
93.19 KB
396 downloads
filedropkartero.git-fdf9225.zip
104.25 KB
345 downloads
filedropkartero.git-21415da.tar.bz2
93.24 KB
353 downloads
filedropkartero.git-21415da.zip
104.22 KB
346 downloads
filedropkartero.git-aff5e89.tar.bz2
93.17 KB
373 downloads
filedropkartero.git-aff5e89.zip
104.22 KB
337 downloads
filedropkartero.git-b27ef39.tar.bz2
91.97 KB
373 downloads
filedropkartero.git-b27ef39.zip
102.80 KB
362 downloads
filedropkartero.git-3d6e8a2.tar.bz2
91.99 KB
355 downloads
filedropkartero.git-3d6e8a2.zip
102.77 KB
359 downloads
filedropkartero.git-1442b69.tar.bz2
91.79 KB
351 downloads
filedropkartero.git-1442b69.zip
102.50 KB
362 downloads
filedropkartero.git-6d15918.tar.bz2
91.56 KB
374 downloads
filedropkartero.git-6d15918.zip
102.28 KB
330 downloads
filedropkartero.git-45140d8.tar.bz2
91.52 KB
376 downloads
filedropkartero.git-45140d8.zip
102.23 KB
335 downloads
filedropkartero.git-d5b48e5.tar.bz2
91.35 KB
364 downloads
filedropkartero.git-d5b48e5.zip
102.01 KB
347 downloads
filedropkartero.git-e007e55.tar.bz2
91.35 KB
376 downloads
filedropkartero.git-e007e55.zip
102.01 KB
319 downloads
filedropkartero.git-30fd7e3.tar.bz2
90.87 KB
352 downloads
filedropkartero.git-30fd7e3.zip
101.44 KB
348 downloads
filedropkartero.git-421a4a7.tar.bz2
88.02 KB
91 downloads
filedropkartero.git-421a4a7.zip
97.96 KB
323 downloads
filedropkartero.git-b49b8bc.tar.bz2
88.09 KB
394 downloads
filedropkartero.git-b49b8bc.zip
97.99 KB
340 downloads
filedropkartero.git-1cc9571.tar.bz2
87.74 KB
371 downloads
filedropkartero.git-1cc9571.zip
97.70 KB
344 downloads
filedropkartero.git-159152f.tar.bz2
87.60 KB
369 downloads
filedropkartero.git-159152f.zip
97.52 KB
350 downloads
filedropkartero.git-35caaf3.tar.bz2
87.74 KB
353 downloads
filedropkartero.git-35caaf3.zip
97.57 KB
333 downloads
filedropkartero.git-3c9d305.zip
96.67 KB
336 downloads
filedropkartero.git-3c9d305.tar.bz2
86.77 KB
359 downloads
filedropkartero.git-14cb2af.tar.bz2
86.41 KB
358 downloads
filedropkartero.git-14cb2af.zip
96.13 KB
340 downloads
filedropkartero.git-e8f00cb.tar.bz2
86.46 KB
378 downloads
filedropkartero.git-e8f00cb.zip
96.21 KB
329 downloads
filedropkartero.git-bdab380.tar.bz2
86.14 KB
371 downloads
filedropkartero.git-bdab380.zip
95.79 KB
332 downloads
filedropkartero.git-48f9134.tar.bz2
85.78 KB
375 downloads
filedropkartero.git-48f9134.zip
95.48 KB
343 downloads
filedropkartero.git-adb9757.tar.bz2
85.67 KB
364 downloads
filedropkartero.git-adb9757.zip
95.37 KB
334 downloads
filedropkartero.git-1601cbd.zip
95.30 KB
346 downloads
filedropkartero.git-1601cbd.tar.bz2
85.69 KB
346 downloads
filedropkartero.git-18a5106.tar.bz2
85.72 KB
347 downloads
filedropkartero.git-18a5106.zip
95.48 KB
349 downloads
filedropkartero.git-a5b1caa.tar.bz2
85.61 KB
381 downloads
filedropkartero.git-a5b1caa.zip
95.36 KB
342 downloads
filedropkartero.git-effff82.zip
97.06 KB
355 downloads
filedropkartero.git-effff82.tar.bz2
87.13 KB
369 downloads
filedropkartero.git-b70d364.tar.bz2
84.09 KB
407 downloads
filedropkartero.git-b70d364.zip
93.67 KB
348 downloads
filedropkartero.git-48f0e53.tar.bz2
84.16 KB
381 downloads
filedropkartero.git-48f0e53.zip
93.66 KB
342 downloads
filedropkartero.git-c17135e.tar.bz2
84.09 KB
364 downloads
filedropkartero.git-c17135e.zip
93.57 KB
328 downloads
filedropkartero.git-a2e2848.tar.bz2
85.59 KB
367 downloads
filedropkartero.git-a2e2848.zip
100.10 KB
341 downloads
filedropkartero.git-1f683db.tar.bz2
83.55 KB
367 downloads
filedropkartero.git-1f683db.zip
93.24 KB
337 downloads
filedropkartero.git-d342596.tar.bz2
83.57 KB
367 downloads
filedropkartero.git-d342596.zip
93.28 KB
328 downloads
filedropkartero.git-e0131d5.tar.bz2
83.55 KB
368 downloads
filedropkartero.git-e0131d5.zip
93.27 KB
345 downloads
filedropkartero.git-ad467e8.tar.bz2
83.13 KB
377 downloads
filedropkartero.git-ad467e8.zip
92.78 KB
334 downloads
filedropkartero.git-b20e27d.tar.bz2
83.46 KB
382 downloads
filedropkartero.git-b20e27d.zip
93.19 KB
360 downloads
filedropkartero.git-eefd8fe.zip
92.67 KB
366 downloads
filedropkartero.git-eefd8fe.tar.bz2
83.01 KB
368 downloads
filedropkartero.git-bea685a.zip
96.88 KB
341 downloads
filedropkartero.git-bea685a.tar.bz2
84.44 KB
361 downloads
filedropkartero.git-a8bd019.tar.bz2
84.25 KB
377 downloads
filedropkartero.git-a8bd019.zip
96.60 KB
336 downloads
filedropkartero.git-cbc914d.tar.bz2
84.38 KB
370 downloads
filedropkartero.git-cbc914d.zip
96.64 KB
325 downloads
filedropkartero.git-09a2e70.tar.bz2
84.40 KB
349 downloads
filedropkartero.git-09a2e70.zip
96.70 KB
349 downloads
filedropkartero.git-641dc05.tar.bz2
84.37 KB
369 downloads
filedropkartero.git-641dc05.zip
96.73 KB
337 downloads
filedropkartero.git-cde49c6.tar.bz2
84.26 KB
379 downloads
filedropkartero.git-cde49c6.zip
96.59 KB
340 downloads
filedropkartero.git-1d004e0.tar.bz2
77.42 KB
380 downloads
filedropkartero.git-1d004e0.zip
87.56 KB
22 downloads
filedropkartero.git-1f0bf17.tar.bz2
77.47 KB
377 downloads
filedropkartero.git-1f0bf17.zip
87.56 KB
336 downloads
filedropkartero.git-265e63c.tar.bz2
77.43 KB
358 downloads
filedropkartero.git-265e63c.zip
87.52 KB
369 downloads
filedropkartero.git-635a5db.zip
87.60 KB
338 downloads
filedropkartero.git-a041f85.tar.bz2
77.37 KB
382 downloads
filedropkartero.git-a041f85.zip
87.52 KB
368 downloads
filedropkartero.git-ae049a7.tar.bz2
77.44 KB
379 downloads
filedropkartero.git-ae049a7.zip
87.52 KB
338 downloads
filedropkartero.git-eef571a.tar.bz2
20.56 KB
491 downloads
filedropkartero.git-eef571a.zip
25.69 KB
468 downloads
filedropkartero.git-0bc16f5.tar.bz2
82.61 KB
398 downloads
filedropkartero.git-0bc16f5.zip
94.75 KB
375 downloads
filedropkartero.git-2afc0f7.tar.bz2
83.61 KB
397 downloads
filedropkartero.git-2afc0f7.zip
96.00 KB
392 downloads
filedropkartero.git-3529bdf.tar.bz2
77.72 KB
363 downloads
filedropkartero.git-3529bdf.zip
87.92 KB
369 downloads
filedropkartero.git-49aac92.tar.bz2
78.98 KB
408 downloads
filedropkartero.git-49aac92.zip
90.01 KB
371 downloads
filedropkartero.git-5d48f21.tar.bz2
78.65 KB
11 downloads
filedropkartero.git-5d48f21.zip
89.51 KB
400 downloads
filedropkartero.git-635a5db.tar.bz2
77.50 KB
420 downloads
filedropkartero.git-6e34786.tar.bz2
77.76 KB
430 downloads
filedropkartero.git-6e34786.zip
88.09 KB
413 downloads
filedropkartero.git-7dc2fd2.tar.bz2
83.51 KB
478 downloads
filedropkartero.git-7dc2fd2.zip
95.99 KB
419 downloads
filedropkartero.git-9cad005.tar.bz2
78.85 KB
474 downloads
filedropkartero.git-9cad005.zip
90.00 KB
462 downloads
filedropkartero.git-b303f61.tar.bz2
82.57 KB
511 downloads
filedropkartero.git-b303f61.zip
94.78 KB
135 downloads
filedropkartero.git-c15ef85.tar.bz2
77.76 KB
166 downloads
filedropkartero.git-c15ef85.zip
88.16 KB
156 downloads
filedropkartero.git-c99e84d.tar.bz2
83.58 KB
188 downloads
filedropkartero.git-c99e84d.zip
96.01 KB
170 downloads
filedropkartero.git-e5009e6.tar.bz2
78.73 KB
198 downloads
filedropkartero.git-e5009e6.zip
89.69 KB
184 downloads
filedropkartero.git-0502d01.tar.bz2
83.54 KB
213 downloads
filedropkartero.git-0502d01.zip
96.00 KB
195 downloads
filedropkartero.git-44ca46d.tar.bz2
83.73 KB
226 downloads
filedropkartero.git-44ca46d.zip
96.20 KB
204 downloads
filedropkartero.git-834f923.tar.bz2
83.75 KB
229 downloads
filedropkartero.git-834f923.zip
96.14 KB
214 downloads