AJAX Chat

This commit is contained in:
flash 2022-02-06 17:08:09 +01:00
commit 524a12f184
108 changed files with 17131 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
[Tt]humbs.db
[Dd]esktop.ini
.DS_Store
public/lib/config-db.php

662
LICENCE Normal file
View File

@ -0,0 +1,662 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are 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.
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.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
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 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 work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero 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 Affero 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 Affero 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 Affero 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.
Copyright (C) 2007-2008 Sebastian Tschan (blueimp) <https://blueimp.net/>
Copyright (C) 2008-2014 Phil Nicolcev (frug) <https://github.com/frug/>
Copyright (C) 2015, 2022 flashwave <https://flash.moe>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
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 AGPL, see
<https://www.gnu.org/licenses/>.

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# AJAX Chat
This is/was our fork of [AJAX Chat](https://github.com/frug/AJAX-Chat) from back before the Sock Chat days.
I'm pretty sure it's based on AJAX Chat 0.8.4 but I'm not sure. It's probably kind of impossible to run this fork yourself, not that you'd want to anyway.
Unfortunately AGPL requires I use the same licence for my additions so you'll have to deal with that. Also AGPL requires me to include the full licence text, which AJAX Chat didn't actually do itself so I'll do an attempt at recreating it.
There's probably a bunch of copyright violations in this repository but I don't really care.
I'm providing this pretty much as-is, aside from the adjustments I will be making to make this run on [ajaxchat.flashii.net](https://ajaxchat.flashii.net) for preservation of the Classic experience. If you review some of the Language used you'll understand this disclaimer, however historical accuracy is of utmost importance.

7
public/.htaccess Normal file
View File

@ -0,0 +1,7 @@
RewriteEngine on
Options +FollowSymLinks
Options -Indexes
RewriteRule ^logs$ index.php?view=logs
RewriteRule ^mobile$ index.php?view=mobile
RewriteRule ^chat$ index.php
RewriteRule ^desktop$ index.php

BIN
public/FABridge.swf Normal file

Binary file not shown.

View File

@ -0,0 +1,98 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
@import url('meta.modern.ajaxchat.css');
@media screen,projection,handheld {
/* Buttons */
#content #bbCodeContainer input, #content #logoutChannelContainer input, #content #submitButton, #loginForm #loginButton {
background-color:#000;
color:#f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #222, #000);
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color:#000;
color:#fafafa;
border: 1px solid #808080;
}
/* Status Icon */
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
/* Other Theme Elements */
#loginContent {
background-color:#000;
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#212121;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#000;
color:#FFF;
}
#content h1 {
color:#FFF;
}
#content a {
color:#FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
border-color:gray;
background-color:#000;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#212121;
}
#content .rowOdd {
background-color:#000;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#212121;
color:#FFF;
}
}

View File

@ -0,0 +1,106 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*
* Blue Style by nookls
* nookls.org
*/
@import url('meta.modern.ajaxchat.css');
@media screen,projection,handheld {
/* Buttons */
#content #bbCodeContainer input, #content #logoutChannelContainer input, #content #submitButton, #loginForm #loginButton {
background-color:#002545;
color:#f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #002545, #000);
background-image: -webkit-linear-gradient(top, #002545, #000);
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color:#002545;
color:#fafafa;
border: 1px solid #808080;
}
/* Status Icon */
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
/* Other Theme Elements */
#loginContent {
background-color:#000;
color:#FFF;
}
#loginContent {
background-color:#002545;
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#002545;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#002545;
color:#FFF;
}
#content h1 {
color:#FFF;
}
#content a {
color:#FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
border-color:#003D8E;
background-color:#002545;
}
#content #colorCodesContainer a {
border-color:#003D8E;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#0D355D;
}
#content .rowOdd {
background-color:#002545;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#0D355D;
color:#FFF;
}
}

View File

@ -0,0 +1,108 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
* This style is made by freakyfurball\moegami
* http://zeniea.com/
*/
@import url('meta.legacy.ajaxchat.css');
/*
* Colors
*/
@media screen,projection,handheld {
#loginContent {
background-color: #000000;
background-image: -linear-gradient(to bottom, #4c3b52, #000000);
color: #999999;
}
#loginContent h1 {
color: #98ba8c;
}
#loginContent a {
color: #9775a3;
}
#loginContent input, #loginContent select {
background-color: #312634;
color: 9775a3;
}
#loginContent #loginFormContainer #loginButton {
background-color: #312634;
color: #9775a3;
}
#loginContent #errorContainer {
color: red;
}
#content {
background-color: #000000;
background-image: linear-gradient(to bottom, #4c3b52, #000000);
color: #999999;
}
#content h1 {
color: #FFFFFF;
}
#content a {
color: #9775a3;
}
#content input, #content select, #content textarea {
background-color: #312634;
color: #999999;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #bbCodeContainer, #content #colorCodesContainer, #content #emoticonsContainer {
border-color: gray;
background-color: #231b26;
}
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton {
background-color: #312634;
color: #999999;
}
#content #colorCodesContainer a {
border-color: #312634;
}
#content #optionsContainer input {
background-color: transparent;
}
#content .rowEven {
background-color: #312634;
}
#content .rowOdd {
background-color: #4c3b52;
}
#content #chatList .chatBotErrorMessage {
color: red;
}
#content #chatList a {
color: #9775a3;
}
#content #chatList .delete {
background: url('../images/delete.png') no-repeat right;
}
#content #chatList .deleteSelected {
border-color: red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color: #312634;
color: #999999;
}
#content #settingsContainer #settingsList input.playback {
background: url('../images/playback.png') no-repeat;
}
}

View File

@ -0,0 +1,104 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
@import url('meta.legacy.ajaxchat.css');
/*
* Colors
*/
@media screen,projection,handheld {
#loginContent {
background-color:#000;
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#212121;
color:#FFF;
}
#loginContent #loginFormContainer #loginButton {
background-color:#212121;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#000;
color:#FFF;
}
#content h1 {
color:#FFF;
}
#content a {
color:#FFF;
}
#content input, #content select, #content textarea {
background-color:#212121;
color:#FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #bbCodeContainer, #content #colorCodesContainer, #content #emoticonsContainer {
border-color:gray;
background-color:#000;
}
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton {
background-color:#212121;
color:#FFF;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#212121;
}
#content .rowOdd {
background-color:#000;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .delete {
background:url('../images/delete.png') no-repeat right;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#212121;
color:#FFF;
}
#content #settingsContainer #settingsList input.playback {
background:url('../images/playback.png') no-repeat;
}
}

108
public/css/Mio.ajaxchat.css Normal file
View File

@ -0,0 +1,108 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
* Style by Flashwave for Flashii.net
*/
@import url('meta.legacy.ajaxchat.css');
/*
* Colors
*/
@media screen,projection,handheld {
#loginContent {
background-color: #FBEEFF;
color: #000;
background-image: url('../images/fade-purple.png');
background-repeat: repeat-x;
}
#loginContent h1 {
color: #000;
}
#loginContent a {
color: #000;
}
#userNameField, #passwordField {
padding: 2px 4px 3px 4px;
border: 1px solid #AAA;
outline: none;
font-family: arial,helvetica,sans-serif;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color: #FBEEFF;
color: #000;
background-image: url('../images/fade-purple.png');
background-repeat: repeat-x;
}
#content h1 {
color:#306;
}
#content a {
color:#000;
}
#content textarea {
border: 1px solid #AAA;
outline: none;
font-family: arial,helvetica,sans-serif;
color:#000;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #bbCodeContainer, #content #colorCodesContainer, #content #emoticonsContainer {
border: 1px solid #9475B2;
}
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
#content #colorCodesContainer a {
border: 1px solid #9475B2;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color: #C9BBCC;
}
#content .rowOdd {
background-color: #FBEEFF;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .delete {
background:url('../images/delete.png') no-repeat right;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color: #9475B2;
color: #306;
}
#content #settingsContainer #settingsList input.playback {
background:url('../images/playback.png') no-repeat;
}
#content .user {
color: #000;
}
}

View File

@ -0,0 +1,136 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
@import url('meta.modern.ajaxchat.css');
@media screen,projection,handheld {
/* Buttons */
#content #bbCodeContainer input, #content #logoutChannelContainer input, #content #submitButton, #loginForm #loginButton {
background-color:#000;
color:#f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #110033, #000000);
background-image: -webkit-linear-gradient(top, #110033, #000000);
}
#loginContent #loginButton {
background-color:#000;
color:#f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #110033, #000000);
background-image: -webkit-linear-gradient(top, #110033, #000000);
}
#loginContent input {
background-color:#000;
color:#f0f0f0;
border: 1px solid #808080;
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color:#000;
color:#fafafa;
border: 1px solid #808080;
}
/* Status Icon */
#content #statusIconContainer {
width: 25px;
height: 26px;
}
#content .statusContainerOff {
background-image: url('../images/linkgood.gif');
}
#content .statusContainerOn {
background-image: url('../images/linkyellow.gif');
}
#content .statusContainerAlert {
background-image: url('../images/linkbad.gif');
}
/* Other Theme Elements */
#loginContent {
background-color:#000;
background-image:url('../images/pclouds.jpg');
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#212121;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#000;
background-image:url('../images/pclouds.jpg');
color:#FFF;
}
#content h1 {
color:#FFF;
}
#content a {
color:#FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
border-color:gray;
background-color:transparent;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
}
#content .rowOdd {
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
color:#FFF;
}
/* Username colors
#content .guest {
color: #FF9999;
}
#content .user {
color: #FFFFFF;
}
#content .moderator {
color: #AA0000;
}
#content .admin {
color: #9900CC;
}
#content .chatBot {
color: #9E8DA7;
}
#content .purple {
color: #FF9900;
}
#content .cmod {
color: #0033FF;
}*/
}

View File

@ -0,0 +1,129 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license Modified MIT License
* @link https://blueimp.net/ajax/
*/
@import url('meta.legacy.ajaxchat.css');
@import url('meta.terminal.ajaxchat.css');
@media screen,projection,handheld {
/* Buttons */
#content #bbCodeContainer input, #content input, #content #submitButton, #loginForm #loginButton {
background-color:#000;
color:#00ff2b;
border: 1px solid #00ff2b;
font-family:monospace;
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color:#000;
color:#00ff2b;
border: 1px solid #00ff2b;
font-family:monospace;
}
/* Status Icon */
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
/* Other Theme Elements */
#loginContent {
background-color:#000;
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#212121;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#000;
color:#00ff2b;
}
#content h1 {
color:#00ff2b;
}
#content a {
color:#00ff2b;
}
#content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
border-color:#00ff2b;
background-color:#000;
}
#content #chatList {
color:#00ff2b;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#000;
}
#content .rowOdd {
background-color:#000;
}
#content .guest {
text-shadow:0px 0px 5px gray;
}
#content .user {
text-shadow:0px 0px 5px #FFF;
}
#content .moderator {
text-shadow:0px 0px 5px #0A0;
}
#content .admin {
text-shadow:0px 0px 5px #A00;
}
#content .chatBot, #content .bots {
text-shadow:0px 0px 5px #9E8DA7;
}
#content .purple {
text-shadow:0px 0px 5px #824CA0;
}
#content .cmod {
text-shadow:0px 0px 5px #09F;
}
#content .donator {
text-shadow:0px 0px 5px #EE9400;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#000;
color:#00ff2b;
}
}

View File

@ -0,0 +1,111 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*
* Color palette inspired by phpBB style "prosilver":
* http://www.phpbb.com/
*/
@import url('meta.legacy.ajaxchat.css');
/*
* Colors
*/
@media screen,projection,handheld {
#loginContent {
background-color:#F9F9F9;
color:#28313F;
}
#loginContent h1 {
color:#333333;
}
#loginContent a {
color:#333333;
}
#loginContent input, #loginContent select {
background-color:#FFF;
color:#333333;
}
#loginContent #loginFormContainer #loginButton {
background-color:#F7F5F1;
color:#333333;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#F9F9F9;
color:#28313F;
}
#content h1 {
color:#333333;
}
#content a {
color:#333333;
}
#content input, #content select, #content textarea {
background-color:#FFF;
color:#333333;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #bbCodeContainer, #content #colorCodesContainer, #content #emoticonsContainer {
border-color:#105289;
background-color:#FFF;
}
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton {
background-color:#F7F5F1;
color:#333333;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#E1EBF2;
}
#content .rowOdd {
background-color:#ECF3F7;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#D31141;
}
#content #chatList .delete {
background:url('../images/delete.png') no-repeat right;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#E1EBF2;
color:#105289;
}
#content #settingsContainer #settingsList input.playback {
background:url('../images/playback.png') no-repeat;
}
#content .user {
color: #000;
}
}

69
public/css/chatlogin.css Normal file
View File

@ -0,0 +1,69 @@
h1, h3 {
font-weight: 100;
margin: 0px;
}
h1 {
font-size: 3em;
text-shadow: 0px 0px .5em #F1F1F1;
}
h3 {
display: inline-block;
box-shadow: 0px 0px .5em #700;
min-width: 300px;
font-size: 15px;
padding: 2px;
margin: 10px;
background: linear-gradient(180deg, #900, #600) #700;
}
div.copyright {
font-size: 12px;
color: #CCC;
}
form {
margin: 10px;
}
form input[type="text"], form input[type="password"] {
height: 18px;
width: 288px;
}
form input[type="text"] {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
form input[type="submit"] {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background: #404;
box-shadow: 0px 0px 1em #707 inset;
color: #FFF;
font-weight: 700;
border-color: #808;
}
form *:not(option) {
height: 30px;
display: block;
margin: 1px auto;
width: 300px;
padding: 5px;
border: 1px #888 solid;
background: transparent;
box-shadow: 0px 0px 1em #888 inset
}
a {
color: inherit;
text-decoration: none;
transition: text-shadow .2s;
}
a:hover {
text-shadow: 0px 0px 1em #F1F1F1;
}

View File

@ -0,0 +1,486 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
/* Import Username and Text colour CSS file */
@import url('textcolours.ajaxchat.css');
/* word-wrap fix */
* {
word-wrap: break-word !important;
}
/*
* Borders
*/
#content img {
border:none;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #bbCodeContainer, #content #colorCodesContainer, #content #emoticonsContainer, #content #colorCodesContainer a {
border-width:1px;
border-style:solid;
}
#content #chatList .deleteSelected {
border-width:1px;
border-style:dotted;
}
#content #helpContainer #helpList table, #content #settingsContainer #settingsList table {
border-collapse:collapse;
}
/*
* Fonts
*/
#loginContent {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#loginContent h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#loginContent a {
text-decoration:none;
}
#loginContent a:hover {
text-decoration:underline;
}
#loginContent #loginRegisteredUsers {
font-size:0.8em;
}
#loginContent #copyright {
font-size:0.8em;
}
#content {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#content h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#content h3 {
font-size:1.0em;
}
#content a {
text-decoration:none;
}
#content a:hover {
text-decoration:underline;
}
#content #copyright {
font-size:0.8em;
}
#content #chatList span.dateTime {
font-size:0.7em;
}
#content #chatList .chatBotMessage {
font-style:italic;
}
#content #chatList .chatBotErrorMessage {
font-style:italic;
}
#content #chatList .privmsg {
font-style:italic;
}
#content #chatList .action {
font-style:italic;
}
#content #chatList q {
font-variant:small-caps;
}
#content #chatList code {
font-size:1.2em;
}
#content #onlineListContainer #onlineList div {
font-size:0.9em;
}
#content #helpContainer #helpList td {
font-size:0.9em;
}
#content #helpContainer #helpList td.code {
font-style:italic;
}
#content #settingsContainer #settingsList td {
font-size:0.9em;
}
/*
* Positioning
*/
#loginContent {
position:absolute;
width:100%;
height:100%;
}
#loginContent #loginHeadlineContainer {
margin-left:100px;
margin-right:100px;
margin-top:100px;
}
#loginContent #loginFormContainer {
margin-left:100px;
margin-right:100px;
}
#loginContent #loginFormContainer div {
margin-bottom:7px;
}
#loginContent #loginRegisteredUsers {
padding-top:5px;
}
#loginContent #errorContainer {
margin-left:100px;
margin-right:100px;
}
#loginContent #copyright {
margin-top:20px;
margin-left:100px;
margin-right:100px;
}
#content {
position:absolute;
width:100%;
height:100%;
}
#content #copyright {
position:absolute;
right:20px;
top:20px;
}
#content #headlineContainer {
position:absolute;
left:20px;
top:5px;
}
#content #logoutChannelContainer {
position:absolute;
left:20px;
top:50px;
}
#content #statusIconContainer {
position:absolute;
right:20px;
top:50px;
width: 22px;
height: 22px;
}
#content #chatList {
position:absolute;
left:20px;
right:230px;
top:85px;
bottom:150px;
overflow:auto;
}
#content #inputFieldContainer {
position:absolute;
left:20px;
right:20px;
bottom:95px;
padding-right:4px;
}
#content #submitButtonContainer {
position:absolute;
right:20px;
bottom:60px;
}
#content #onlineListContainer {
position:absolute;
right:20px;
top:85px;
width:200px;
bottom:150px;
}
#content #helpContainer {
position:absolute;
right:20px;
top:85px;
width:360px;
bottom:150px;
}
#content #settingsContainer {
position:absolute;
right:20px;
top:85px;
width:360px;
bottom:150px;
}
#content #bbCodeContainer {
position:absolute;
left:20px;
bottom:20px;
padding:3px;
}
#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
padding:3px;
z-index:1;
}
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
}
#content #optionsContainer {
position:absolute;
right:20px;
bottom:20px;
padding:3px;
padding-right:0px;
}
#content #bbCodeContainer input {
padding-left:4px;
padding-right:4px;
}
#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}
#content #optionsContainer input {
vertical-align:middle;
}
#content #optionsContainer input.button {
width:22px;
height:22px;
}
#content #emoticonsContainer a {
margin-left:1px;
margin-right:1px;
}
#content #emoticonsContainer img {
vertical-align:middle;
margin-bottom:2px;
}
#content #headlineContainer h1 {
margin-left:auto;
margin-top:12px;
}
#content #chatList div {
padding-left:10px;
padding-top:2px;
padding-right:10px;
padding-bottom:2px;
}
#content #chatList img {
vertical-align:middle;
margin-bottom:2px;
}
#content #chatList cite {
margin-right:5px;
}
#content #chatList .bbCodeImage {
vertical-align:top;
overflow:auto;
margin:5px;
}
#content #chatList .delete {
display:block;
float:right;
width:10px;
height:10px;
margin-top:2px;
padding-left:5px;
}
#content #inputFieldContainer #inputField {
width:100%;
height:40px;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
height:30px;
padding-left:10px;
padding-top:4px;
padding-right:10px;
padding-bottom:4px;
margin:0px;
text-align:center;
}
#content #onlineListContainer #onlineList, #content #helpContainer #helpList, #content #settingsContainer #settingsList {
position:absolute;
left:0px;
right:0px;
top:25px;
bottom:0px;
overflow:auto;
}
#content #onlineListContainer #onlineList div {
padding-left:10px;
padding-top:2px;
padding-right:10px;
padding-bottom:2px;
}
#content #onlineListContainer #onlineList a {
display:block;
}
#content #onlineListContainer #onlineList ul {
margin-left:0px;
margin-top:5px;
margin-bottom:5px;
padding-left:20px;
}
#content #helpContainer #helpList td, #content #settingsContainer #settingsList td {
padding-left:10px;
padding-top:4px;
padding-right:10px;
padding-bottom:4px;
vertical-align:top;
}
#content #settingsContainer #settingsList td {
vertical-align:middle;
}
#content #settingsContainer #settingsList td.setting {
width:115px;
}
#content #settingsContainer #settingsList input.text {
width:100px;
}
#content #settingsContainer #settingsList select.left {
text-align:right;
}
#content #settingsContainer #settingsList input.button {
width:22px;
height:22px;
vertical-align:middle;
margin-bottom:2px;
}
/*
* Misc
*/
@media screen,projection,handheld {
#content #bbCodeContainer input, #content #optionsContainer input.button, #content #settingsContainer #settingsList input.button {
cursor:pointer;
}
}
/* Buttons */
#content #optionsContainer #helpButton {
background:url('../images/help.png') no-repeat;
}
#content #optionsContainer #settingsButton {
background:url('../images/settings.png') no-repeat;
}
#content #optionsContainer #onlineListButton {
background:url('../images/users.png') no-repeat;
}
#content #optionsContainer #audioButton {
background:url('../images/audio.png') no-repeat 0px 0px;
}
#content #optionsContainer #audioButton.off {
background-position: 0px 100%;
}
#content #optionsContainer #autoScrollButton {
background:url('../images/autoscroll.png') no-repeat 0px 0px;
}
#content #optionsContainer #autoScrollButton.off {
background-position: 0px 100%;
}
#content #settingsContainer #settingsList input.playback {
background:url('../images/playback.png') no-repeat;
}
/*
* Print layout
*/
@media print {
#content {
position:static;
}
#content #copyright {
display:none;
}
#content #headlineContainer {
display:none;
}
#content #logoutChannelContainer {
display:none;
}
#content #statusIconContainer {
display:none;
}
#content #chatList {
position:static;
overflow:visible;
}
#content #inputFieldContainer {
display:none;
}
#content #submitButtonContainer {
display:none;
}
#content #onlineListContainer {
display:none;
}
#content #helpContainer {
display:none;
}
#content #settingsContainer {
display:none;
}
#content #bbCodeContainer {
display:none;
}
#content #colorCodesContainer {
display:none;
}
#content #emoticonsContainer {
display:none;
}
#content #optionsContainer {
display:none;
}
#content #chatList div {
padding-bottom:5px;
}
#content #chatList img {
vertical-align:middle;
margin-bottom:2px;
}
#content #chatList cite {
margin-right:5px;
}
#content #chatList .delete {
display:none;
}
#content #chatList {
border:none;
}
#content {
font-family:'times new roman', times, serif;
font-size:1.0em;
text-align:justify;
}
#content #chatList code {
font-size:0.8em;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
}

View File

@ -0,0 +1,451 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
/* Import Username and Text colour CSS file */
@import url('textcolours.ajaxchat.css');
/* word-wrap fix */
* {
word-wrap: break-word !important;
}
/* Positioning */
#loginContent {
position:absolute;
width:100%;
height:100%;
}
#loginContent #loginHeadlineContainer {
margin: 100px 100px 0 100px;
}
#loginContent #loginFormContainer, #loginContent #errorContainer {
margin: 0 100px;
}
#loginContent #loginFormContainer div {
margin-bottom:7px;
}
#loginContent #loginRegisteredUsers {
padding-top:5px;
}
#loginContent #copyright {
margin: 20px 100px 0 100px;
}
#content {
position:absolute;
width:100%;
height:100%;
}
#content #copyright {
position:absolute;
right:20px;
top:20px;
}
#content #headlineContainer {
position:absolute;
left:20px;
top:5px;
}
#content #logoutChannelContainer {
position:absolute;
left:20px;
top:50px;
}
#content #logoutChannelContainer select{
width: 105px;
height: 22px;
}
#content #statusIconContainer {
position:absolute;
right:20px;
top:50px;
width: 22px;
height: 22px;
}
#content #chatList {
position:absolute;
left:20px;
right:230px;
top:85px;
bottom:150px;
overflow:auto;
}
#content #inputFieldContainer {
position:absolute;
left:20px;
right:20px;
bottom:95px;
padding-right:4px;
}
#content #submitButtonContainer {
position:absolute;
right:20px;
bottom:60px;
}
#content #onlineListContainer {
position:absolute;
right:20px;
top:85px;
width:200px;
bottom:150px;
}
#content #helpContainer {
position:absolute;
right:20px;
top:85px;
width:360px;
bottom:150px;
}
#content #settingsContainer {
position:absolute;
right:20px;
top:85px;
width:360px;
bottom:150px;
}
#content #bbCodeContainer {
position:absolute;
left:20px;
bottom:20px;
padding:3px;
}
#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
padding:3px;
z-index:1;
}
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
}
#content #optionsContainer {
position:absolute;
right:20px;
bottom:20px;
padding:3px;
padding-right:0px;
}
#content #bbCodeContainer input, #content #logoutButton, #content #mobileButton, #content #submitButton, #loginContent #loginButton {
padding: 4px 10px;
}
#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}
#content #optionsContainer input {
vertical-align:middle;
}
#content #optionsContainer input.button {
width:22px;
height:22px;
}
#content #emoticonsContainer a {
margin-left:1px;
margin-right:1px;
}
#content #emoticonsContainer img {
vertical-align:middle;
margin-bottom:2px;
}
#content #headlineContainer h1 {
margin-left:auto;
margin-top:12px;
}
#content #chatList div {
padding: 2px 10px;
}
#content #chatList img {
vertical-align:middle;
margin-bottom:2px;
}
#content #chatList cite {
margin-right:5px;
}
#content #chatList .bbCodeImage {
vertical-align:top;
overflow:auto;
margin:5px;
}
#content #chatList .delete {
display:block;
float:right;
width:10px;
height:10px;
margin-top:2px;
padding-left:5px;
background:url('../images/delete.png') no-repeat right;
}
#content #inputFieldContainer #inputField {
width:100%;
height:40px;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
height:30px;
padding: 4px 10px;
margin:0px;
text-align:center;
}
#content #onlineListContainer #onlineList, #content #helpContainer #helpList, #content #settingsContainer #settingsList {
position:absolute;
left:0px;
right:0px;
top:25px;
bottom:0px;
overflow:auto;
}
#content #onlineListContainer #onlineList div {
padding: 2px 10px;
}
#content #onlineListContainer #onlineList a {
display:block;
}
#content #onlineListContainer #onlineList ul {
margin: 5px 0;
padding-left:20px;
}
#content #helpContainer #helpList td, #content #settingsContainer #settingsList td {
padding: 4px 10px;
vertical-align:top;
}
#content #settingsContainer #settingsList td {
vertical-align:middle;
}
#content #settingsContainer #settingsList td.setting {
width:115px;
}
#content #settingsContainer #settingsList input.text {
width:100px;
}
#content #settingsContainer #settingsList select.left {
text-align:right;
}
#content #settingsContainer #settingsList input.button {
width:22px;
height:22px;
vertical-align:middle;
margin-bottom:2px;
}
/* Buttons */
#content #optionsContainer #helpButton {
background:url('../images/help.png') no-repeat;
}
#content #optionsContainer #settingsButton {
background:url('../images/settings.png') no-repeat;
}
#content #optionsContainer #onlineListButton {
background:url('../images/users.png') no-repeat;
}
#content #optionsContainer #audioButton {
background:url('../images/audio.png') no-repeat 0px 0px;
}
#content #optionsContainer #audioButton.off {
background-position: 0px 100%;
}
#content #optionsContainer #autoScrollButton {
background:url('../images/autoscroll.png') no-repeat 0px 0px;
}
#content #optionsContainer #autoScrollButton.off {
background-position: 0px 100%;
}
#content #settingsContainer #settingsList input.playback {
background:url('../images/playback.png') no-repeat;
}
/* Borders */
#content img {
border:none;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer,
#content #colorCodesContainer a, #content textarea {
border-width:1px;
border-style:solid;
}
#content #chatList .deleteSelected {
border-width:1px;
border-style:dotted;
}
#content #helpContainer #helpList table, #content #settingsContainer #settingsList table {
border-collapse:collapse;
}
/* Misc */
#content #bbCodeContainer input, #content #optionsContainer input.button, #content #settingsContainer #settingsList input.button, #content #logoutButton, #content #mobileButton, #content #submitButton, #loginContent #loginButton {
cursor:pointer;
}
/* Fonts */
#loginContent {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#loginContent h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#loginContent a {
text-decoration:none;
}
#loginContent a:hover {
text-decoration:underline;
}
#loginContent #loginRegisteredUsers {
font-size:0.8em;
}
#loginContent #copyright {
font-size:0.8em;
}
#content {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#content h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#content h3 {
font-size:1.0em;
}
#content a {
text-decoration:none;
}
#content a:hover {
text-decoration:underline;
}
#content #copyright {
font-size:0.8em;
}
#content #chatList span.dateTime {
font-size:0.7em;
}
#content #chatList .chatBotMessage {
font-style:italic;
}
#content #chatList .chatBotErrorMessage {
font-style:italic;
}
#content #chatList .privmsg {
font-style:italic;
}
#content #chatList .action {
font-style:italic;
}
#content #chatList q {
font-variant:small-caps;
}
#content #chatList code {
font-size:1.2em;
}
#content #onlineListContainer #onlineList div {
font-size:0.9em;
}
#content #helpContainer #helpList td {
font-size:0.9em;
}
#content #helpContainer #helpList td.code {
font-style:italic;
}
#content #settingsContainer #settingsList td {
font-size:0.9em;
}
/*
* Print layout
*/
@media print {
#content {
position:static;
}
#content #copyright {
display:none;
}
#content #headlineContainer {
display:none;
}
#content #logoutChannelContainer {
display:none;
}
#content #statusIconContainer {
display:none;
}
#content #chatList {
position:static;
overflow:visible;
}
#content #inputFieldContainer {
display:none;
}
#content #submitButtonContainer {
display:none;
}
#content #onlineListContainer {
display:none;
}
#content #helpContainer {
display:none;
}
#content #settingsContainer {
display:none;
}
#content #bbCodeContainer {
display:none;
}
#content #colorCodesContainer {
display:none;
}
#content #emoticonsContainer {
display:none;
}
#content #optionsContainer {
display:none;
}
#content #chatList div {
padding-bottom:5px;
}
#content #chatList img {
vertical-align:middle;
margin-bottom:2px;
}
#content #chatList cite {
margin-right:5px;
}
#content #chatList .delete {
display:none;
}
#content #chatList {
border:none;
}
#content {
font-family:'times new roman', times, serif;
font-size:1.0em;
text-align:justify;
}
#content #chatList code {
font-size:0.8em;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
}

View File

@ -0,0 +1,115 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license Modified MIT License
* @link https://blueimp.net/ajax/
*/
/* word-wrap fix */
* {
word-wrap: break-word !important;
}
/* Fonts */
#loginContent {
font-family:monospace;
font-size:0.8em;
}
#loginContent h1 {
font-size:1.3em;
font-family:monospace;
font-weight:bold;
}
#loginContent a {
text-decoration:none;
}
#loginContent a:hover {
text-decoration:underline;
}
#loginContent #loginRegisteredUsers {
font-size:0.8em;
}
#loginContent #copyright {
font-size:0.8em;
}
/*#content {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#content h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}*/
#content {
font-family:monospace;
font-size:14px;
}
#content h1 {
font-size:14px;
font-family:monospace;
font-weight:bold;
}
#content h3 {
font-size:1.0em;
}
#content a {
text-decoration:none;
}
#content a:hover {
text-decoration:underline;
}
#content #copyright {
font-size:0.8em;
}
#content #chatList span.dateTime {
font-size:0.7em;
}
#content #chatList span.guest {
font-weight:bold;
}
#content #chatList span.user {
font-weight:bold;
}
#content #chatList span.moderator {
font-weight:bold;
}
#content #chatList span.admin {
font-weight:bold;
}
#content #chatList span.chatBot {
font-weight:bold;
font-style:italic;
}
#content #chatList .chatBotMessage {
font-style:italic;
}
#content #chatList .chatBotErrorMessage {
font-style:italic;
}
#content #chatList .privmsg {
font-style:italic;
}
#content #chatList .action {
font-style:italic;
}
#content #chatList q {
font-variant:small-caps;
}
#content #chatList code {
font-size:1.2em;
}
#content #onlineListContainer #onlineList div {
font-size:0.9em;
}
#content #helpContainer #helpList td {
font-size:0.9em;
}
#content #helpContainer #helpList td.code {
font-style:italic;
}
#content #settingsContainer #settingsList td {
font-size:0.9em;
}

851
public/css/mio.css Normal file
View File

@ -0,0 +1,851 @@
/*
Flashii.net Style Codename "Mio"
By Flashwave <http://flash.moe>
*/
@charset "utf-8";
html {
color: #000000;
font: 12px/20px Georgia, "Times New Roman", Times, serif;
}
body {
margin: 0px;
padding: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
background: linear-gradient(180deg, #C2AFFE, #FBEEFF) repeat-x scroll center top #FBEEFF;
background-size: auto 200px;
text-align: center;
}
img.logo {
height: 150px;
width: 450px;
border: 0px;
background: url('https://static.flash.moe/logos/logo.png') no-repeat scroll left top transparent;
background-size: cover;
}
.clear {
clear: both !important;
float: none !important;
}
.hidden {
display: none !important;
visibility: hidden !important;
}
div.navbar a {
color: #000000;
text-decoration: none;
}
div.navbar a:hover {
color: #609;
}
hr {
color: #9475B2;
background: #9475B2;
height: 1px;
border: 0px;
}
div.navbar ul {
display: table;
margin: 0px auto;
clear: both;
text-align: center;
margin-top: 5px;
border-top: 1px solid;
min-width: 880px;
max-width: 1024px;
}
div.navbar li {
float: left;
display: block;
text-align: center;
margin-top: -1px;
position: relative;
left: 217.5px;
z-index: 1;
}
li.notcurrent {
background: none repeat scroll 0% 0% #C9BBCC;
border-width: 1px 1px 1px medium;
border-style: solid solid solid none;
border-color: inherit;
border-image: none;
padding: 2px 1em;
}
li.current {
background: none repeat scroll 0% 0% #FBEEFF;
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
border-color: inherit;
border-image: none;
padding: 2px 1em;
padding-bottom: 4px;
margin-left:-1px;
border-top: medium none;
}
li.first {
border-left: 1px solid;
}
li.fill {
border-top: 1px solid;
padding-bottom: 4px;
width: 100px !important;
}
div.pagecontent, div.profile {
margin: 0px auto;
margin-top: 5px;
min-width: 880px;
max-width: 1024px;
border: solid 1px #9475B2;
background: #FBEEFF;
}
div.profile {
min-height: 246px;
}
div.profile_cont {
text-align: left;
padding: 0px 20px;
}
div.profile_cont hr {
border: 0px solid #000;
height: 1px;
color: #000;
background: #000;
width: 75%;
}
div.mioboards, div.mioblog, div.miowhois {
margin: 0px auto;
margin-top: 5px;
min-width: 660px;
max-width: 924px;
border: solid 1px #9475B2;
}
div.miochatquote {
margin: 0px auto;
margin-top: 5px;
border: solid 1px #9475B2;
display: inline-block;
}
div.miochatquote .chatquote {
text-align: left;
color: #FFF;
min-width: 500px;
}
div.miochatquote .chatquote div .dateTime {
font-size: 9px;
}
div.miochatquote .chatquote div {
padding: 1px 5px 1px 7px;
}
div.miochatquote .chatquote div:nth-child(odd) {
background: #000;
}
div.miochatquote .chatquote div:nth-child(even) {
background: #212121;
}
div.miodonate {
margin: 0px auto;
margin-top: 5px;
min-width: 660px;
max-width: 924px;
border: solid 1px #9475B2;
}
div.miodonate h3 {
margin: 0px;
}
div.miodonate hr {
margin-bottom: 0px;
}
div.miodonate h2 {
margin: 0px;
background: #9475B2;
border: solid 1px #9475B2;
text-align: right;
float: right;
border-bottom-left-radius: 12px;
display: inline-block;
margin-top: -1px;
padding: 5px;
}
div.miodonate ul {
list-style: square outside none;
}
div.miodonate li {
list-style: none outside none;
background: #9475B2;
margin: 0px;
width: 815px;
margin: 8px;
height: 20px;
display: list-item;
box-shadow: 0 0 10px grey;
border-radius: 3px;
font-size: 140%;
padding: 10px;
}
div.mioucpbar {
min-width: 880px;
max-width: 1024px;
}
div.miobottom{
margin: 0px auto;
overflow: auto;
height: auto !important;
}
div.miobinner {
position: relative;
left: -50%;
float: right;
clear: both;
text-align: left;
}
h3.miotitle {
background-color: #9475B2;
color: #330066;
margin-top: 0px;
text-align: left;
padding: 3px;
}
h2.miotitle {
background-color: #9475B2;
color: #330066;
margin: 0px;
text-align: center;
padding: 3px;
}
h1.miotitle {
color: #330066;
margin: 0px;
text-align: center;
}
body.miomessage {
margin-top: 20%;
text-align: center;
}
h1.miomessage {
color: #440077;
font-size: 36pt;
}
.miosub {
color: #330066;
font-size: 8pt;
}
div.mioboxcontent {
text-align: left;
margin: 0px;
line-height: 130%;
overflow: auto;
width: 100%;
}
div.mioboxcontent h4 {
text-decoration: underline;
display: inline;
}
div.mioboards div.mioboxcontent {
padding: 0.25em 0.5em 0px;
padding-left: 20px;
}
div.miocolumn {
float: left;
width: 25%;
display: block;
}
a.boardlink {
text-decoration: none;
color: inherit;
}
a.boardlink:hover,a.boardlink:active {
text-decoration: underline;
}
div.postcontent {
text-align: left;
padding: 0px 10px 0px 10px;
}
h3.title {
margin-top: 0px;
background-color: #9475B2;
text-align: left;
padding: 3px;
}
h1.title{
margin-top: 0px;
background-color: #9475B2;
text-align: left;
padding: 5px;
}
ol,dl {
text-align: left;
}
dl {
padding-left: 10px;
}
dt.q {
font-weight: bold;
color: #550088;
}
dd.a {
border-bottom: solid 1px #9475B2;
padding-right: 10px;
margin-bottom: 5px;
}
span.permalink {
float: right;
}
span.permalink a {
text-decoration: none;
}
span.permalink a:hover {
text-decoration: underline;
}
input[type="text"],input[type="password"],input[type="date"],textarea {
margin: 0px 2px 0px 0px;
padding: 2px 4px 3px;
border: 1px solid #AAA;
outline: medium none;
font-family: arial,helvetica,sans-serif;
font-size: 10pt;
}
select {
padding: 1px 2px 2px;
border: 1px solid #AAA;
outline: medium none;
font-family: arial,helvetica,sans-serif;
font-size: 10pt;
}
div.copyright{
padding-top: 5px;
font-size: 11px;
line-height: 15px;
}
div.copyright a {
text-decoration: none;
}
.prof_avatar{
max-height: 200px;
max-width: 200px;
border: 1px solid #9475B2;
}
div.prof_avatar_cont{
text-align: right;
float: right;
width: 200px;
height: 200px;
clear: both;
margin-top: -6px;
margin-right: -11px;
}
div.prof_options {
font-size: 10px;
text-transform: uppercase;
}
div.prof_options a, div.prof_options a:visited {
color: #111;
text-decoration: none;
}
div.prof_options a:hover, div.prof_options a:active {
color: #111;
text-decoration: underline;
}
div.ucp_avatar_cont {
text-align: center;
font-weight: bold;
}
.windowbutton-container {
float: right;
margin-top: -2px;
margin-right: -2px;
margin-left: -2px;
margin-bottom: -2px;
}
.closebutton {
cursor: pointer;
height: 23px;
width: 23px;
border: 0px;
background: url('https://static.flash.moe/images/window-sprite.png') no-repeat scroll 0px 0px transparent;
}
.maxbutton {
cursor: pointer;
height: 23px;
width: 23px;
border: 0px;
background: url('https://static.flash.moe/images/window-sprite.png') no-repeat scroll 0px -23px transparent;
}
.minbutton {
cursor: pointer;
height: 23px;
width: 23px;
border: 0px;
background: url('https://static.flash.moe/images/window-sprite.png') no-repeat scroll 0px -46px transparent;
}
.donate-btn {
cursor: pointer;
height: 26px;
width: 90px;
border: 0px;
background: url('https://static.flash.moe/images/donate-btn.png') no-repeat scroll 0px 0px transparent;
}
div.topLeftBar {
color: #000000;
position: absolute;
left: 0px;
background: #FBEEFF;
padding: 1px 9px;
border: 1px #9475B2 solid;
border-top: 0px;
border-left: 0px;
box-shadow: 0 0 1.5em #808080;
z-index: 997;
}
div.topLeftBar a {
color: inherit;
text-decoration: none;
}
div.topLeftBar a:hover {
text-decoration: underline;
}
div.manageReportsContainer {
text-align: left;
width: 800px;
}
div.manageReportsContainer > fieldset {
border: #9475B2 solid 1px;
margin: 5px;
}
div.manageReportsContainer > fieldset > legend {
border: #9475B2 solid 1px;
background: #9475B2;
color: #306;
padding: 1px 5px;
}
div.manageReportsContainer > fieldset > span > .reportText {
font-size: 10px;
line-height: 130%;
}
table.miotable {
width:100%;
}
table.miotablestandalone {
margin: 0px auto;
margin-top: 5px;
min-width: 880px;
max-width: 1024px;
border: solid 1px #9475B2;
}
.ucptable tr {
width: 100%;
}
.ucptable td {
width: 50%;
}
.ucptable input[type="text"],.ucptable input[type="date"] {
width: 373px;
}
.miotable tr.head {
background:#9475B2;
text-align:center;
font-weight:bold;
}
.miotable tr.ucpmenu td {
width:25%;
}
.miotable a {
text-decoration:none;
}
.miotable a:hover {
text-decoration:underline;
}
.miotable tr.online a {
color:green;
}
.miotable tr.semionline a {
color:orange;
}
.miotable tr.offline a {
color:red;
}
.miotable td {
padding: 5px;
}
.miotable tr.online {
color: green;
background: rgba(0,45,0,0.9);}
.miotable tr.semionline {
color: orange;
background: rgba(51,24,0,0.9);
}
.miotable tr.offline {
color: red;
background: rgba(51,0,0,0.9);
}
.registerbutton, .loginbutton {
display: block;
background: #9475B2;
color: #330066;
padding: 10px;
font-size: 20px;
text-decoration: none;
transition: text-shadow 0.2s;
}
.registerbutton:hover, .loginbutton:hover {
text-shadow: 0px 0px 8px #F1F1F1;
}
/* Flashii Bar */
div.flashii-bar .barAvatar {
margin-bottom: -5px;
height: 20px;
width: 20px;
}
div.flashii-bar {
color: #000000;
position: absolute;
right: 0px;
background: #FBEEFF;
padding: 1px 9px;
/*border-radius: 0px 0px 0px 8px;*/
border: 1px #9475B2 solid;
border-top: 0px;
border-right: 0px;
/*box-shadow: 0 0 1px grey;*/
box-shadow: 0 0 1.5em #808080;
z-index: 997;
}
div.flashii-black {
background: rgba(0,0,0,0.5);
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
height: 100%;
width: 100%;
z-index: 998;
}
div.flashii-bar a {
color: inherit;
text-decoration: none;
}
div.flashii-bar a:hover {
text-decoration: underline;
}
div.flashii-horizon {
background-color: transparent;
text-align: center;
position: absolute;
top: 30%;
left: 0px;
width: 100%;
height: 1px;
overflow: visible;
visibility: visible;
display: block;
z-index: 999;
}
div#flashii-login,div#flashii-register {
min-width: 333px;
max-width: 462px;
border: solid 1px #9475B2;
z-index: 999;
background: #FBEEFF;
margin: 0px auto;
}
div#flashii-login h3,div#flashii-register h3 {
background-color: #9475B2;
color: rgb(51,0,102);
margin-top: 0px;
text-align: left;
padding: 3px;
}
div#flashii-login h3 a,div#flashii-register h3 a {
float: right;
color: inherit;
text-decoration: none;
}
div#flashii-login table,div#flashii-register table {
margin: 0px auto;
text-align: left;
}
div#flashii-login tr td:first-child,div#flashii-register tr td:first-child{
background: #C9BBCC;
border: 1px #746677 solid;
color: #400070;
font-weight: bold;
padding: 0px 5px;
font-size: 10pt;
width: 35% !important;
}
div#flashii-login table tr:last-child td, div#flashii-register table tr:last-child td{
background: transparent !important;
border: none !important;
color: inherit !important;
font-weight: normal !important;
padding: 0 0 !important;
font-size: inherit !important;
text-align: center;
}
div#flashii-login #recaptcha_response_field,div#flashii-login input[type="text"],div#flashii-login input[type="password"],div#flashii-register #recaptcha_response_field,div#flashii-register input[type="text"],div#flashii-register input[type="password"] {
margin: 0px 2px 0px 0px;
padding: 2px 4px 3px;
border: 1px solid #AAA;
outline: medium none;
font-family: arial,helvetica,sans-serif;
font-size: 10pt;
width: 292px;
}
#recaptcha_widget img {
cursor: pointer;
}
div#recaptcha_image {
margin: 0px 2px 0px 0px;
border: 1px solid #AAA;
outline: medium none;
}
#recaptcha_response_field {
margin-top: 4px !important;
}
.recaptcha_custom_buttons {
font-size: smaller;
}
/* some more shit */
.group-select {
margin: 0px auto;
text-align: center;
min-width: 330px !important;
max-width: 945px;
}
.group-select a {
color: inherit;
}
.group-select-user {
background: #9475B2;
float: left;
margin: 10px;
text-align: center;
width: 275px;
height: 175px;
padding: 10px;
transition: background 0.5s, box-shadow 0.2s;
box-shadow: inset 0px 0px 1.5em #000;
}
.group-select-user:hover {
background: #8364A1;
cursor: pointer;
box-shadow: inset 0px 0px 2em #000;
}
.group-select-user-avatar {
min-height: 150px;
min-width: 150px;
margin: auto auto;
}
.group-select-user-avatar img {
max-height: 150px;
max-width: 150px;
border: 0px;
padding: 0px;
margin: 0px;
}
.membersPage {
width: 100%;
padding: 10px 0px;
overflow: hidden;
text-align: center;
}
.membersPage a {
color: inherit;
}
.membersPage .groupBox, .membersPage .userBox {
background: #9475B2;
margin: 10px;
text-align: center;
display: inline-block;
vertical-align: top;
transition: background 0.5s, box-shadow 0.2s;
}
.membersPage .groupBox {
padding: 7px;
font-size: 15px;
min-width: 150px;
box-shadow: inset 0px 0px 1em #000;
}
.membersPage .userBox {
padding: 10px;
line-height: 330%;
width: 200px;
height: 230px;
box-shadow: inset 0px 0px 1.5em #000;
}
.membersPage .groupBox:hover, .membersPage .userBox:hover {
background: #8364A1;
cursor: pointer;
}
.membersPage .groupBox:hover {
box-shadow: inset 0px 0px 1em #000;
}
.membersPage .userBox:hover {
box-shadow: inset 0px 0px 1.5em #000;
}
.membersPage .userBox img {
width: 200px;
height: 200px;
display: block;
margin: 0px auto;
}
.membersPage .userBox .userBoxUserName {
font-weight: 700;
}
.news-post-time {
text-align: right;
font-size: .8em;
margin-right: 10px;
margin-bottom: 7px;
}
.news-poster {
float: right;
text-align: right;
margin-top: -3px;
margin-left: 5px;
}
.news-poster img {
max-width: 120px;
max-height: 120px;
border: 1px solid #9475B2;
}
.news-poster h2 {
line-height: 11px;
margin: -5px 0px 0px;
font-weight: 100;
background: #9475B2;
border-bottom-left-radius: 10px;
font-size: 1.5em;
padding: 5px !important;
height: 15px;
}
.news-comments-container {
margin: 5px auto 0px;
}

View File

@ -0,0 +1,439 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
@import url('textcolours.ajaxchat.css');
/* Fonts */
#loginContent {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#loginContent h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#loginContent a {
text-decoration:none;
}
#loginContent a:hover {
text-decoration:underline;
}
#loginContent #loginRegisteredUsers {
font-size:0.8em;
}
#loginContent #copyright {
font-size:0.8em;
}
#content {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
}
#content h1 {
font-size:1.3em;
font-family:"Trebuchet MS", Verdana, Arial, sans-serif;
font-weight:bold;
}
#content h3 {
font-size:1.0em;
}
#content a {
text-decoration:none;
}
#content a:hover {
text-decoration:underline;
}
#content #copyright {
font-size:0.8em;
}
#content #chatList span.dateTime {
font-size:0.7em;
}
#content #chatList .chatBotMessage {
font-style:italic;
}
#content #chatList .chatBotErrorMessage {
font-style:italic;
}
#content #chatList .privmsg {
font-style:italic;
}
#content #chatList .action {
font-style:italic;
}
#content #chatList q {
font-variant:small-caps;
}
#content #chatList code {
font-size:1.2em;
}
#content #onlineListContainer #onlineList div {
font-size:0.9em;
}
#content #helpContainer #helpList td {
font-size:0.9em;
}
#content #helpContainer #helpList td.code {
font-style:italic;
}
#content #settingsContainer #settingsList td {
font-size:0.9em;
}
/* Positioning */
#loginContent {
position:absolute;
width:100%;
height:100%;
}
#loginContent #loginHeadlineContainer {
margin: 100px 100px 0 100px;
}
#loginContent #loginFormContainer, #loginContent #errorContainer {
margin: 0 100px;
}
#loginContent #loginFormContainer div {
margin-bottom:7px;
}
#loginContent #loginRegisteredUsers {
padding-top:5px;
}
#loginContent #copyright {
margin: 20px 100px 0 100px;
}
#content {
position:absolute;
width:100%;
height:100%;
}
#content #copyright {
position:absolute;
right:10px;
top:10px;
}
#content #headlineContainer {
position:absolute;
left:10px;
top:3px;
}
#content #logoutChannelContainer {
position:absolute;
left:10px;
top:50px;
}
#content #logoutChannelContainer select{
width: 105px;
height: 22px;
}
#content #statusIconContainer {
position:absolute;
width: 22px;
height: 22px;
}
#content #chatList {
position:absolute;
left:10px;
right:10px;
top:40px;
bottom:70px;
overflow:auto;
}
#content #inputFieldContainer {
position:absolute;
left:10px;
right:10px;
bottom:42px;
padding-right:4px;
}
#content #submitButtonContainer {
position:absolute;
right:10px;
bottom:38px;
padding:3px;
}
#content #onlineListContainer {
position:absolute;
left:10px;
right:10px;
top:40px;
bottom:70px;
}
#content #helpContainer {
position:absolute;
right:10px;
top:85px;
width:360px;
bottom:150px;
}
#content #settingsContainer {
position:absolute;
left:10px;
right:10px;
top:40px;
bottom:70px;
}
#content #bbCodeContainer {
position:absolute;
left:10px;
bottom:10px;
padding:3px;
}
#content #colorCodesContainer {
position:absolute;
left:10px;
bottom:37px;
padding:3px;
z-index:1;
}
#content #emoticonsContainer {
position:absolute;
left:10px;
bottom:57px;
padding:3px;
}
#content #optionsContainer {
position:absolute;
right:10px;
top:5px;
padding:3px;
margin-left:auto;
margin-top:2px;
}
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton, #loginContent #loginButton {
padding: 1px 2px;
}
#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}
#content #optionsContainer input {
vertical-align:middle;
}
#content #optionsContainer input.button {
width:22px;
height:22px;
}
#content #emoticonsContainer a {
margin-left:1px;
margin-right:1px;
}
#content #emoticonsContainer img {
vertical-align:middle;
margin-bottom:2px;
}
#content #headlineContainer h1 {
margin-left:auto;
margin-top:6px;
}
#content #chatList div {
padding: 2px 10px;
}
#content #chatList img {
vertical-align:middle;
margin-bottom:2px;
}
#content #chatList cite {
margin-right:5px;
}
#content #chatList .bbCodeImage {
vertical-align:top;
overflow:auto;
margin:5px;
}
#content #chatList .delete {
display:block;
float:right;
width:10px;
height:10px;
margin-top:2px;
padding-left:5px;
background:url('../images/delete.png') no-repeat right;
}
#content #inputFieldContainer #inputField {
width:100%;
height:18px;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
height:30px;
padding: 4px 10px;
margin:0px;
text-align:center;
}
#content #onlineListContainer #onlineList, #content #helpContainer #helpList, #content #settingsContainer #settingsList {
position:absolute;
left:0px;
top:25px;
right:0px;
bottom:0px;
overflow:auto;
}
#content #onlineListContainer #onlineList div {
padding: 2px 10px;
}
#content #onlineListContainer #onlineList a {
display:block;
}
#content #onlineListContainer #onlineList ul {
margin: 5px 0;
padding-left:10px;
}
#content #helpContainer #helpList td, #content #settingsContainer #settingsList td {
vertical-align:top;
}
#content #settingsContainer #settingsList td {
vertical-align:middle;
}
#content #settingsContainer #settingsList td.setting {
}
#content #settingsContainer #settingsList input.text {
width:100px;
}
#content #settingsContainer #settingsList select.left {
text-align:right;
}
#content #settingsContainer #settingsList input.button {
height:22px;
vertical-align:middle;
margin-bottom:2px;
}
/* Buttons */
#content #optionsContainer #helpButton {
background:url('../images/help.png') no-repeat;
}
#content #optionsContainer #settingsButton {
background:url('../images/settings.png') no-repeat;
}
#content #optionsContainer #onlineListButton {
background:url('../images/users.png') no-repeat;
}
#content #optionsContainer #audioButton {
background:url('../images/audio.png') no-repeat;
}
#content #optionsContainer #audioButton.off {
background:url('../images/audio-off.png') no-repeat;
}
#content #optionsContainer #autoScrollButton {
background:url('../images/autoscroll.png') no-repeat;
}
#content #optionsContainer #autoScrollButton.off {
background:url('../images/autoscroll-off.png') no-repeat;
}
/* Borders */
#content img {
border:none;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer,
#content #colorCodesContainer a, #content textarea {
border-width:1px;
border-style:solid;
}
#content #chatList .deleteSelected {
border-width:1px;
border-style:dotted;
}
#content #helpContainer #helpList table, #content #settingsContainer #settingsList table {
border-collapse:collapse;
}
/* Misc */
#content #bbCodeContainer input, #content #optionsContainer input.button, #content #settingsContainer #settingsList input.button, #content #logoutButton, #content #submitButton, #loginContent #loginButton {
cursor:pointer;
}
@media screen,projection,handheld {
/* Buttons */
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton, #loginForm #loginButton {
background-color:#000;
color:#f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #222, #000);
background-image: -webkit-linear-gradient(top, #222, #000);
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color:#000;
color:#fafafa;
border: 1px solid #808080;
}
/* Status Icon */
#content #statusIconContainer {
background-image: url('../images/loading-sprite.png');
}
#content .statusContainerOff {
background-position: 0px 0px;
}
#content .statusContainerOn {
background-position: 0px -22px;
}
#content .statusContainerAlert {
background-position: 0px -44px;
}
/* Other Theme Elements */
#loginContent {
background-color:#000;
color:#FFF;
}
#loginContent h1 {
color:#FFF;
}
#loginContent a {
color:#FFF;
}
#loginContent input, #loginContent select {
background-color:#212121;
color:#FFF;
}
#loginContent #errorContainer {
color:red;
}
#content {
background-color:#000;
color:#FFF;
}
#content h1 {
color:#FFF;
}
#content a {
color:#FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
border-color:gray;
background-color:#000;
}
#content #colorCodesContainer a {
border-color:black;
}
#content #optionsContainer input {
background-color:transparent;
}
#content .rowEven {
background-color:#212121;
}
#content .rowOdd {
background-color:#000;
}
#content #chatList .chatBotErrorMessage {
color:red;
}
#content #chatList a {
color:#1E90FF;
}
#content #chatList .deleteSelected {
border-color:red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color:#212121;
color:#FFF;
}
}

View File

@ -0,0 +1,410 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @author Philip Nicolcev
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
@import url('textcolours.ajaxchat.css');
/* Fonts */
#content, #loginContent {
font-family: "Segoe UI", sans-serif;
}
#loginContent {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
}
#loginContent h1 {
font-size: 1.3em;
font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
font-weight: bold;
}
#loginContent a {
text-decoration: none;
}
#loginContent a: hover {
text-decoration: underline;
}
#loginContent #loginRegisteredUsers {
font-size: 0.8em;
}
#loginContent #copyright {
font-size: 0.8em;
}
#content {
font-size: 0.8em;
}
#content h1 {
font-size: 1.3em;
font-weight: bold;
}
#content h3 {
font-size: 1.0em;
}
#content a {
text-decoration: none;
}
#content a: hover {
text-decoration: underline;
}
#content #copyright {
font-size: 0.8em;
}
#content #chatList span.dateTime {
font-size: 0.7em;
}
#content #chatList .chatBotMessage {
font-style: italic;
}
#content #chatList .chatBotErrorMessage {
font-style: italic;
}
#content #chatList .privmsg {
font-style: italic;
}
#content #chatList .action {
font-style: italic;
}
#content #chatList q {
font-variant: small-caps;
}
#content #chatList code {
font-size: 1.2em;
}
#content #onlineListContainer #onlineList div {
font-size: 0.9em;
}
#content #helpContainer #helpList td {
font-size: 0.9em;
}
#content #helpContainer #helpList td.code {
font-style: italic;
}
#content #settingsContainer #settingsList td {
font-size: 0.9em;
}
/* Positioning */
#loginContent {
position: absolute;
width: 100%;
height: 100%;
}
#loginContent #loginHeadlineContainer {
margin: 100px 100px 0 100px;
}
#loginContent #loginFormContainer, #loginContent #errorContainer {
margin: 0 100px;
}
#loginContent #loginFormContainer div {
margin-bottom: 7px;
}
#loginContent #loginRegisteredUsers {
padding-top: 5px;
}
#loginContent #copyright {
margin: 20px 100px 0 100px;
}
#content {
position: absolute;
width: 100%;
height: 100%;
}
#content #copyright {
position: absolute;
right: 10px;
top: 10px;
}
#content #headlineContainer {
position: absolute;
left: 10px;
top: 3px;
}
#content #logoutChannelContainer {
position: absolute;
left: 10px;
top: 50px;
}
#content #logoutChannelContainer select{
width: 105px;
height: 22px;
}
#content #chatList {
position: absolute;
left: 0px;
right: 0px;
top: 40px;
bottom: 70px;
overflow: auto;
}
#content #onlineListContainer, #content #settingsContainer {
position: absolute;
left: 10px;
right: 10px;
top: 40px;
bottom: 70px;
}
#content #bbCodeContainer {
position: absolute;
left: 10px;
bottom: 10px;
padding: 3px;
display: block;
}
#content #colorCodesContainer {
position: absolute;
left: 10px;
bottom: 37px;
padding: 3px;
z-index: 1;
}
#content #emoticonsContainer {
position: absolute;
left: 10px;
bottom: 57px;
padding: 3px;
}
#content #optionsContainer {
position: absolute;
right: 10px;
top: 5px;
padding: 3px;
margin-left: auto;
margin-top: 2px;
}
#content #bbCodeContainer input, #content .actionButton, #loginContent #loginButton {
padding: 1px 2px;
}
#content #colorCodesContainer a {
display: block;
float: left;
width: 20px;
height: 20px;
}
#content #optionsContainer input {
vertical-align: middle;
}
#content #optionsContainer input.button {
width: 22px;
height: 22px;
}
#content #emoticonsContainer a {
margin-left: 1px;
margin-right: 1px;
}
#content #emoticonsContainer img {
vertical-align: middle;
margin-bottom: 2px;
}
#content #headlineContainer h1 {
margin-left: auto;
margin-top: 6px;
}
#content #chatList div {
padding: 3px 10px;
}
#content #chatList img {
vertical-align: middle;
margin-bottom: 2px;
}
#content #chatList cite {
margin-right: 5px;
}
#content #chatList .bbCodeImage {
vertical-align: top;
overflow: auto;
margin: 5px;
}
#content #chatList .delete {
display: block;
float: right;
width: 10px;
height: 10px;
margin-top: 2px;
padding-left: 5px;
background: url('../images/delete.png') no-repeat right;
}
#content #inputField {
position: absolute;
bottom: 0px;
left: 0px;
width: calc(100% - 53px);
height: 40px;
display: inline-block;
margin: 0px !important;
}
#content #submitButton {
position: absolute;
bottom: 0px;
right: 0px;
width: 50px;
height: 41px;
margin: 0px !important;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
height: 30px;
padding: 4px 10px;
margin: 0px;
text-align: center;
}
#content #onlineListContainer #onlineList, #content #helpContainer #helpList, #content #settingsContainer #settingsList {
position: absolute;
left: 0px;
top: 25px;
right: 0px;
bottom: 0px;
overflow: auto;
}
#content #onlineListContainer #onlineList div {
padding: 2px 10px;
}
#content #onlineListContainer #onlineList a {
display: block;
}
#content #onlineListContainer #onlineList ul {
margin: 5px 0;
padding-left: 10px;
}
#content #helpContainer #helpList td, #content #settingsContainer #settingsList td {
vertical-align: top;
}
#content #settingsContainer #settingsList td {
vertical-align: middle;
}
#content #settingsContainer #settingsList td.setting {
}
#content #settingsContainer #settingsList input.text {
width: 100px;
}
#content #settingsContainer #settingsList select.left {
text-align: right;
}
#content #settingsContainer #settingsList input.button {
height: 22px;
vertical-align: middle;
margin-bottom: 2px;
}
/* Buttons */
#content #optionsContainer #settingsButton {
background: url('../images/settings.png') no-repeat;
}
#content #optionsContainer #onlineListButton {
background: url('../images/users.png') no-repeat;
}
#content #optionsContainer #audioButton {
background: url('../images/audio.png') no-repeat 0px 0px;
}
#content #optionsContainer #audioButton.off {
background-position: 0px 100%;
}
#content #optionsContainer #autoScrollButton {
background: url('../images/autoscroll.png') no-repeat;
}
#content #optionsContainer #autoScrollButton.off {
background: url('../images/autoscroll-off.png') no-repeat;
}
/* Borders */
#content img {
border: none;
}
#content #chatList .deleteSelected {
border-width: 1px;
border-style: dotted;
}
#content #helpContainer #helpList table, #content #settingsContainer #settingsList table {
border-collapse: collapse;
}
/* Misc */
#content #bbCodeContainer input, #content #optionsContainer input.button, #content #settingsContainer #settingsList input.button, #content .actionButton, #loginContent #loginButton {
cursor: pointer;
}
/* Buttons */
#content #bbCodeContainer input, #content .actionButton, #loginForm #loginButton {
background-color: #000;
color: #f0f0f0;
border: 1px solid #808080;
background-image: linear-gradient(to bottom, #222, #000);
}
#content select, #loginForm select, #loginForm input, #content textarea {
background-color: #000;
color: #fafafa;
border: 1px solid #808080;
}
/* Status Icon */
#content #statusIconContainer {
height: 1px;
}
#content .statusContainerOff {
background: #2F2;
}
#content .statusContainerOn {
background: #FF2;
}
#content .statusContainerAlert {
background: #F22;
}
/* Other Theme Elements */
#loginContent {
background-color: #000;
color: #FFF;
}
#loginContent h1 {
color: #FFF;
}
#loginContent a {
color: #FFF;
}
#loginContent input, #loginContent select {
background-color: #212121;
color: #FFF;
}
#loginContent #errorContainer {
color: red;
}
#content {
background-color: #000;
color: #FFF;
}
#content h1 {
color: #FFF;
}
#content a {
color: #FFF;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer, #content textarea {
background-color: #444;
}
#content #colorCodesContainer a {
border-color: black;
}
#content #optionsContainer input {
background-color: transparent;
}
#content .rowEven {
background-color: #212121;
}
#content .rowOdd {
background-color: #000;
}
#content #chatList .chatBotErrorMessage {
color: red;
}
#content #chatList a {
color: #1E90FF;
}
#content #chatList .deleteSelected {
border-color: red;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
background-color: #212121;
color: #FFF;
}

View File

@ -0,0 +1,219 @@
/* Color Container */
a.Silver {
background-color: #C0C0C0;
}
a.Citrine {
background-color: #F2D839;
}
a.Orange {
background-color: #FFA500;
}
a.Pumpkin {
background-color: #FF7518;
}
a.Red {
background-color: #F50000;
}
a.Crimson {
background-color: #C00000;
}
a.Ruby {
background-color: #E0115F;
}
a.Amaranth {
background-color: #E52B50;
}
a.Thulite {
background-color: #DE6FA1;
}
a.Pink {
background-color: #FF6FF2;
}
a.Purpureus {
background-color: #9A4EAE;
}
a.Antisia {
background-color: #915C83;
}
a.Cerulean {
background-color: #007BA7;
}
a.Cobalt {
background-color: #0047AB;
}
a.Aqua {
background-color: #20E4FF;
}
a.Mint {
background-color: #39F2B1;
}
a.Keppel {
background-color: #3AB09E;
}
a.Teal {
background-color: #008585;
}
a.Green {
background-color: #008500;
}
a.Chartreuse {
background-color: #7FFF00;
}
a.Nitrate {
background-color: #95CC00;
}
a.Lilive {
background-color: #C0C000;
}
a.Daive {
background-color: #858500;
}
a.Zaffre {
background-color: #0014A8;
}
a.Amethyst {
background-color: #9966CC;
}
/* Text Color */
#content .Silver {
color: #C0C0C0;
}
#content .Citrine {
color: #F2D839;
}
#content .Orange {
color: #FFA500;
}
#content .Pumpkin {
color: #FF7518;
}
#content .Red {
color: #F50000;
}
#content .Crimson {
color: #C00000;
}
#content .Ruby {
color: #E0115F;
}
#content .Amaranth {
color: #E52B50;
}
#content .Irresistible {
color: #B3446C;
}
#content .Thulite {
color: #DE6FA1;
}
#content .Pink {
color: #FF6FF2;
}
#content .Purpureus {
color: #9A4EAE;
}
#content .Antisia {
color: #915C83;
}
#content .Cerulean {
color: #007BA7;
}
#content .Cobalt {
color: #0047AB;
}
#content .Aqua {
color: #20E4FF;
}
#content .Turquoise {
color: #40E0D0;
}
#content .Mint {
color: #39F2B1;
}
#content .Keppel {
color: #3AB09E;
}
#content .Teal {
color: #008585;
}
#content .Green {
color: #008500;
}
#content .Lime {
color: #BFFF00;
}
#content .Chartreuse {
color: #7FFF00;
}
#content .Nitrate {
color: #95CC00;
}
#content .Lilive {
color: #C0C000;
}
#content .Daive {
color: #858500;
}
#content .Zaffre {
color: #0014A8;
}
#content .Amethyst {
color: #9966CC;
}
/* Username colors */
#content .guest {
color: gray;
}
#content #chatList span.guest {
font-weight: bold;
}
#content .user {
color: #FFF;
}
#content #chatList span.user {
font-weight: bold;
}
#content .moderator {
color: #0A0;
}
#content #chatList span.moderator {
font-weight: bold;
}
#content .admin {
color: #A00;
}
#content #chatList span.admin {
font-weight: bold;
}
#content .chatBot {
color: #9E8DA7;
}
#content #chatList span.chatBot {
font-weight: bold;
font-style: italic;
}
#content .purple {
color: #824CA0;
}
#content #chatList span.purple {
font-weight: bold;
}
#content .cmod {
color: #09F;
}
#content #chatList span.cmod {
font-weight: bold;
}
#content .bots {
color: #9E8DA7;
}
#content #chatList span.bots {
font-weight: bold;
}
#content .donator {
color: #EE9400;
}
#content #chatList span.donator {
font-weight: bold;
}

1220
public/css/yuuno.css Normal file

File diff suppressed because it is too large Load Diff

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

70
public/ie5-6.css Normal file
View File

@ -0,0 +1,70 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
/*
* Positioning adjustments for IE versions < 7
*/
body {
width:100%;
height:100%;
}
#content #chatList {
position:static;
margin-right:230px;
margin-left:20px;
margin-top:85px;
height:360px;
}
#content #onlineListContainer {
height:360px;
}
#content #helpContainer {
height:360px;
}
#content #settingsContainer {
height:360px;
}
#content #inputFieldContainer {
top:460px;
padding:0px;
}
#content #submitButtonContainer {
top:517px;
}
#content #bbCodeContainer {
top:550px;
}
#content #colorCodesContainer {
top:516px;
}
#content #emoticonsContainer {
top:517px;
}
#content #optionsContainer {
top:555px;
}
#content #inputFieldContainer #inputField {
width:94%;
}
#content #onlineListContainer #onlineList {
width:100%;
height:335px;
overflow:auto;
}
#content #helpContainer #helpList {
width:100%;
height:335px;
overflow:auto;
}
#content #settingsContainer #settingsList {
width:100%;
height:335px;
overflow:auto;
}

BIN
public/images/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
public/images/delete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
public/images/gothic.woff Normal file

Binary file not shown.

BIN
public/images/help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
public/images/linkbad.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

BIN
public/images/linkgood.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
public/images/pclouds.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

BIN
public/images/pixel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
public/images/playback.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

BIN
public/images/settings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
public/images/users.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

24
public/index.php Normal file
View File

@ -0,0 +1,24 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Show all errors:
ini_set('display_errors', 'On');
error_reporting(-1);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
// Include Flashii System stuff:
//require('/var/www/flashii.net/system/core/modules.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat:
$ajaxChat = new CustomAJAXChat();

591
public/js/FABridge.js Normal file
View File

@ -0,0 +1,591 @@
/*
/*
Copyright 2006 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* The Bridge class, responsible for navigating AS instances
*/
function FABridge(target,bridgeName)
{
this.target = target;
this.remoteTypeCache = {};
this.remoteInstanceCache = {};
this.remoteFunctionCache = {};
this.localFunctionCache = {};
this.bridgeID = FABridge.nextBridgeID++;
this.name = bridgeName;
this.nextLocalFuncID = 0;
FABridge.instances[this.name] = this;
FABridge.idMap[this.bridgeID] = this;
return this;
}
// type codes for packed values
FABridge.TYPE_ASINSTANCE = 1;
FABridge.TYPE_ASFUNCTION = 2;
FABridge.TYPE_JSFUNCTION = 3;
FABridge.TYPE_ANONYMOUS = 4;
FABridge.initCallbacks = {}
FABridge.argsToArray = function(args)
{
var result = [];
for (var i = 0; i < args.length; i++)
{
result[i] = args[i];
}
return result;
}
function instanceFactory(objID)
{
this.fb_instance_id = objID;
return this;
}
function FABridge__invokeJSFunction(args)
{
var funcID = args[0];
var throughArgs = args.concat();//FABridge.argsToArray(arguments);
throughArgs.shift();
var bridge = FABridge.extractBridgeFromID(funcID);
return bridge.invokeLocalFunction(funcID, throughArgs);
}
FABridge.addInitializationCallback = function(bridgeName, callback)
{
var inst = FABridge.instances[bridgeName];
if (inst != undefined)
{
callback.call(inst);
return;
}
var callbackList = FABridge.initCallbacks[bridgeName];
if(callbackList == null)
{
FABridge.initCallbacks[bridgeName] = callbackList = [];
}
callbackList.push(callback);
}
function FABridge__bridgeInitialized(bridgeName) {
var objects = document.getElementsByTagName("object");
var ol = objects.length;
var activeObjects = [];
if (ol > 0) {
for (var i = 0; i < ol; i++) {
if (typeof objects[i].SetVariable != "undefined") {
activeObjects[activeObjects.length] = objects[i];
}
}
}
var embeds = document.getElementsByTagName("embed");
var el = embeds.length;
var activeEmbeds = [];
if (el > 0) {
for (var j = 0; j < el; j++) {
if (typeof embeds[j].SetVariable != "undefined") {
activeEmbeds[activeEmbeds.length] = embeds[j];
}
}
}
var aol = activeObjects.length;
var ael = activeEmbeds.length;
var searchStr = "bridgeName="+ bridgeName;
if ((aol == 1 && !ael) || (aol == 1 && ael == 1)) {
FABridge.attachBridge(activeObjects[0], bridgeName);
}
else if (ael == 1 && !aol) {
FABridge.attachBridge(activeEmbeds[0], bridgeName);
}
else {
var flash_found = false;
if (aol > 1) {
for (var k = 0; k < aol; k++) {
var params = activeObjects[k].childNodes;
for (var l = 0; l < params.length; l++) {
var param = params[l];
if (param.nodeType == 1 && param.tagName.toLowerCase() == "param" && param["name"].toLowerCase() == "flashvars" && param["value"].indexOf(searchStr) >= 0) {
FABridge.attachBridge(activeObjects[k], bridgeName);
flash_found = true;
break;
}
}
if (flash_found) {
break;
}
}
}
if (!flash_found && ael > 1) {
for (var m = 0; m < ael; m++) {
var flashVars = activeEmbeds[m].attributes.getNamedItem("flashVars").nodeValue;
if (flashVars.indexOf(searchStr) >= 0) {
FABridge.attachBridge(activeEmbeds[m], bridgeName);
break;
}
}
}
}
return true;
}
// used to track multiple bridge instances, since callbacks from AS are global across the page.
FABridge.nextBridgeID = 0;
FABridge.instances = {};
FABridge.idMap = {};
FABridge.refCount = 0;
FABridge.extractBridgeFromID = function(id)
{
var bridgeID = (id >> 16);
return FABridge.idMap[bridgeID];
}
FABridge.attachBridge = function(instance, bridgeName)
{
var newBridgeInstance = new FABridge(instance, bridgeName);
FABridge[bridgeName] = newBridgeInstance;
/* FABridge[bridgeName] = function() {
return newBridgeInstance.root();
}
*/
var callbacks = FABridge.initCallbacks[bridgeName];
if (callbacks == null)
{
return;
}
for (var i = 0; i < callbacks.length; i++)
{
callbacks[i].call(newBridgeInstance);
}
delete FABridge.initCallbacks[bridgeName]
}
// some methods can't be proxied. You can use the explicit get,set, and call methods if necessary.
FABridge.blockedMethods =
{
toString: true,
get: true,
set: true,
call: true
};
FABridge.prototype =
{
// bootstrapping
root: function()
{
return this.deserialize(this.target.getRoot());
},
//clears all of the AS objects in the cache maps
releaseASObjects: function()
{
return this.target.releaseASObjects();
},
//clears a specific object in AS from the type maps
releaseNamedASObject: function(value)
{
if(typeof(value) != "object")
{
return false;
}
else
{
var ret = this.target.releaseNamedASObject(value.fb_instance_id);
return ret;
}
},
//create a new AS Object
create: function(className)
{
return this.deserialize(this.target.create(className));
},
// utilities
makeID: function(token)
{
return (this.bridgeID << 16) + token;
},
// low level access to the flash object
//get a named property from an AS object
getPropertyFromAS: function(objRef, propName)
{
if (FABridge.refCount > 0)
{
throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
}
else
{
FABridge.refCount++;
retVal = this.target.getPropFromAS(objRef, propName);
retVal = this.handleError(retVal);
FABridge.refCount--;
return retVal;
}
},
//set a named property on an AS object
setPropertyInAS: function(objRef,propName, value)
{
if (FABridge.refCount > 0)
{
throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
}
else
{
FABridge.refCount++;
retVal = this.target.setPropInAS(objRef,propName, this.serialize(value));
retVal = this.handleError(retVal);
FABridge.refCount--;
return retVal;
}
},
//call an AS function
callASFunction: function(funcID, args)
{
if (FABridge.refCount > 0)
{
throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
}
else
{
FABridge.refCount++;
retVal = this.target.invokeASFunction(funcID, this.serialize(args));
retVal = this.handleError(retVal);
FABridge.refCount--;
return retVal;
}
},
//call a method on an AS object
callASMethod: function(objID, funcName, args)
{
if (FABridge.refCount > 0)
{
throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");
}
else
{
FABridge.refCount++;
args = this.serialize(args);
retVal = this.target.invokeASMethod(objID, funcName, args);
retVal = this.handleError(retVal);
FABridge.refCount--;
return retVal;
}
},
// responders to remote calls from flash
//callback from flash that executes a local JS function
//used mostly when setting js functions as callbacks on events
invokeLocalFunction: function(funcID, args)
{
var result;
var func = this.localFunctionCache[funcID];
if(func != undefined)
{
result = this.serialize(func.apply(null, this.deserialize(args)));
}
return result;
},
// Object Types and Proxies
// accepts an object reference, returns a type object matching the obj reference.
getTypeFromName: function(objTypeName)
{
return this.remoteTypeCache[objTypeName];
},
//create an AS proxy for the given object ID and type
createProxy: function(objID, typeName)
{
var objType = this.getTypeFromName(typeName);
instanceFactory.prototype = objType;
var instance = new instanceFactory(objID);
this.remoteInstanceCache[objID] = instance;
return instance;
},
//return the proxy associated with the given object ID
getProxy: function(objID)
{
return this.remoteInstanceCache[objID];
},
// accepts a type structure, returns a constructed type
addTypeDataToCache: function(typeData)
{
newType = new ASProxy(this, typeData.name);
var accessors = typeData.accessors;
for (var i = 0; i < accessors.length; i++)
{
this.addPropertyToType(newType, accessors[i]);
}
var methods = typeData.methods;
for (var i = 0; i < methods.length; i++)
{
if (FABridge.blockedMethods[methods[i]] == undefined)
{
this.addMethodToType(newType, methods[i]);
}
}
this.remoteTypeCache[newType.typeName] = newType;
return newType;
},
//add a property to a typename; used to define the properties that can be called on an AS proxied object
addPropertyToType: function(ty, propName)
{
var c = propName.charAt(0);
var setterName;
var getterName;
if(c >= "a" && c <= "z")
{
getterName = "get" + c.toUpperCase() + propName.substr(1);
setterName = "set" + c.toUpperCase() + propName.substr(1);
}
else
{
getterName = "get" + propName;
setterName = "set" + propName;
}
ty[setterName] = function(val)
{
this.bridge.setPropertyInAS(this.fb_instance_id, propName, val);
}
ty[getterName] = function()
{
return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id, propName));
}
},
//add a method to a typename; used to define the methods that can be callefd on an AS proxied object
addMethodToType: function(ty, methodName)
{
ty[methodName] = function()
{
return this.bridge.deserialize(this.bridge.callASMethod(this.fb_instance_id, methodName, FABridge.argsToArray(arguments)));
}
},
// Function Proxies
//returns the AS proxy for the specified function ID
getFunctionProxy: function(funcID)
{
var bridge = this;
if (this.remoteFunctionCache[funcID] == null)
{
this.remoteFunctionCache[funcID] = function()
{
bridge.callASFunction(funcID, FABridge.argsToArray(arguments));
}
}
return this.remoteFunctionCache[funcID];
},
//reutrns the ID of the given function; if it doesnt exist it is created and added to the local cache
getFunctionID: function(func)
{
if (func.__bridge_id__ == undefined)
{
func.__bridge_id__ = this.makeID(this.nextLocalFuncID++);
this.localFunctionCache[func.__bridge_id__] = func;
}
return func.__bridge_id__;
},
// serialization / deserialization
serialize: function(value)
{
var result = {};
var t = typeof(value);
//primitives are kept as such
if (t == "number" || t == "string" || t == "boolean" || t == null || t == undefined)
{
result = value;
}
else if (value instanceof Array)
{
//arrays are serializesd recursively
result = [];
for (var i = 0; i < value.length; i++)
{
result[i] = this.serialize(value[i]);
}
}
else if (t == "function")
{
//js functions are assigned an ID and stored in the local cache
result.type = FABridge.TYPE_JSFUNCTION;
result.value = this.getFunctionID(value);
}
else if (value instanceof ASProxy)
{
result.type = FABridge.TYPE_ASINSTANCE;
result.value = value.fb_instance_id;
}
else
{
result.type = FABridge.TYPE_ANONYMOUS;
result.value = value;
}
return result;
},
//on deserialization we always check the return for the specific error code that is used to marshall NPE's into JS errors
// the unpacking is done by returning the value on each pachet for objects/arrays
deserialize: function(packedValue)
{
var result;
var t = typeof(packedValue);
if (t == "number" || t == "string" || t == "boolean" || packedValue == null || packedValue == undefined)
{
result = this.handleError(packedValue);
}
else if (packedValue instanceof Array)
{
result = [];
for (var i = 0; i < packedValue.length; i++)
{
result[i] = this.deserialize(packedValue[i]);
}
}
else if (t == "object")
{
for(var i = 0; i < packedValue.newTypes.length; i++)
{
this.addTypeDataToCache(packedValue.newTypes[i]);
}
for (var aRefID in packedValue.newRefs)
{
this.createProxy(aRefID, packedValue.newRefs[aRefID]);
}
if (packedValue.type == FABridge.TYPE_PRIMITIVE)
{
result = packedValue.value;
}
else if (packedValue.type == FABridge.TYPE_ASFUNCTION)
{
result = this.getFunctionProxy(packedValue.value);
}
else if (packedValue.type == FABridge.TYPE_ASINSTANCE)
{
result = this.getProxy(packedValue.value);
}
else if (packedValue.type == FABridge.TYPE_ANONYMOUS)
{
result = packedValue.value;
}
}
return result;
},
//increases the reference count for the given object
addRef: function(obj)
{
this.target.incRef(obj.fb_instance_id);
},
//decrease the reference count for the given object and release it if needed
release:function(obj)
{
this.target.releaseRef(obj.fb_instance_id);
},
// check the given value for the components of the hard-coded error code : __FLASHERROR
// used to marshall NPE's into flash
handleError: function(value)
{
if (typeof(value)=="string" && value.indexOf("__FLASHERROR")==0)
{
var myErrorMessage = value.split("||");
if(FABridge.refCount > 0 )
{
FABridge.refCount--;
}
throw new Error(myErrorMessage[1]);
return value;
}
else
{
return value;
}
}
};
// The root ASProxy class that facades a flash object
ASProxy = function(bridge, typeName)
{
this.bridge = bridge;
this.typeName = typeName;
return this;
};
//methods available on each ASProxy object
ASProxy.prototype =
{
get: function(propName)
{
return this.bridge.deserialize(this.bridge.getPropertyFromAS(this.fb_instance_id, propName));
},
set: function(propName, value)
{
this.bridge.setPropertyInAS(this.fb_instance_id, propName, value);
},
call: function(funcName, args)
{
this.bridge.callASMethod(this.fb_instance_id, funcName, args);
},
addRef: function() {
this.bridge.addRef(this);
},
release: function() {
this.bridge.release(this);
}
};

3003
public/js/chat.js Normal file

File diff suppressed because it is too large Load Diff

292
public/js/config.js Normal file
View File

@ -0,0 +1,292 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Ajax Chat config parameters:
var ajaxChatConfig = {
// The channelID of the channel to enter on login (the loginChannelName is used if set to null):
loginChannelID: null,
// The channelName of the channel to enter on login (the default channel is used if set to null):
loginChannelName: null,
// The time in ms between update calls to retrieve new chat messages:
timerRate: 2000,
// The URL to retrieve the XML chat messages (must at least contain one parameter):
ajaxURL: './?ajax=true',
// The base URL of the chat directory, used to retrieve media files (images, sound files, etc.):
baseURL: './',
// A regular expression for allowed source URL's for media content (e.g. images displayed inline);
regExpMediaUrl: '^((http)|(https)):\\/\\/',
// If set to false the chat update is delayed until the event defined in ajaxChat.setStartChatHandler():
startChatOnLoad: true,
// Defines the IDs of DOM nodes accessed by the chat:
domIDs: {
// The ID of the chat messages list:
chatList: 'chatList',
// The ID of the online users list:
onlineList: 'onlineList',
// The ID of the message text input field:
inputField: 'inputField',
// The ID of the message text length counter:
messageLengthCounter: 'messageLengthCounter',
// The ID of the channel selection:
channelSelection: 'channelSelection',
// The ID of the style selection:
styleSelection: 'styleSelection',
// The ID of the emoticons container:
emoticonsContainer: 'emoticonsContainer',
// The ID of the color codes container:
colorCodesContainer: 'colorCodesContainer',
// The ID of the flash interface container:
flashInterfaceContainer: 'flashInterfaceContainer'
},
// Defines the settings which can be modified by users:
settings: {
// Defines if BBCode tags are replaced with the associated HTML code tags:
bbCode: true,
// Defines if image BBCode is replaced with the associated image HTML code:
bbCodeImages: true,
// Defines if color BBCode is replaced with the associated color HTML code:
bbCodeColors: true,
// Defines if hyperlinks are made clickable:
hyperLinks: true,
// Defines if line breaks are enabled:
lineBreaks: true,
// Defines if emoticon codes are replaced with their associated images:
emoticons: true,
// Defines if the focus is automatically set to the input field on chat load or channel switch:
autoFocus: true,
// Defines if the chat list scrolls automatically to display the latest messages:
autoScroll: true,
// The maximum count of messages displayed in the chat list (will be ignored if set to 0):
maxMessages: 0,
// Defines if long words are wrapped to avoid vertical scrolling:
wordWrap: false,
// Defines the maximum length before a word gets wrapped:
maxWordLength: 32,
// Defines the format of the date and time displayed for each chat message:
dateFormat: '(%H:%i:%s)',
// Defines if font colors persist without the need to assign them to each message:
persistFontColor: true,
// The default font color, uses the page default font color if set to null:
fontColor: null,
// Defines if sounds are played:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 1.0,
// Defines the sound that is played when normal messages are reveived:
soundReceive: 'sound_1',
// Defines the sound that is played on sending normal messages:
soundSend: 'sound_2',
// Defines the sound that is played on channel enter or login:
soundEnter: 'sound_3',
// Defines the sound that is played on channel leave or logout:
soundLeave: 'sound_4',
// Defines the sound that is played on chatBot messages:
soundChatBot: 'sound_5',
// Defines the sound that is played on error messages:
soundError: 'sound_6',
// Defines the sound that is played on kicked messages:
soundKick: 'sound_7',
// Defines the sound that is played when private messages are received:
soundPrivate: 'sound_1',
// Defines if the document title blinks on new messages:
blink: true,
// Defines the blink interval in ms:
blinkInterval: 500,
// Defines the number of blink intervals:
blinkIntervalNumber: 10
},
// Defines a list of settings which are not to be stored in a session cookie:
nonPersistentSettings: new Array(
'wordWrap'
),
// Defines the list of allowed BBCodes:
bbCodeTags: new Array(
'b',
'i',
'u',
'quote',
'code',
'color',
'url',
'img'
),
// Defines the list of allowed color codes:
colorCodes: new Array(
'Silver',
'Citrine',
'Orange',
'Pumpkin',
'Red',
'Crimson',
'Ruby',
'Amaranth',
'Thulite',
'Pink',
'Amethyst',
'Purpureus',
'Antisia',
'Cerulean',
'Cobalt',
'Aqua',
'Mint',
'Keppel',
'Teal',
'Green',
'Chartreuse',
'Nitrate',
'Lilive',
'Daive'
),
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':happy:',
':lmao:',
':angry:',
':angrier:',
':evil:',
':glare:',
':eat:',
':lol:',
':dizzy:',
':yay:',
':wtf:',
':sigh:',
':omg:',
':ouch:',
':tired:',
':kiss:',
':love:',
':sweat:',
':suspicious:',
':crying:',
':blank:',
':puke:',
':ruse:',
':meow:',
':jew:',
':winxp:',
':childish:',
':idea:'
),
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'happy.png',
'lmao.png',
'angry.png',
'angrier.png',
'evil.png',
'glare.png',
'eat.gif',
'lol.png',
'dizzy.gif',
'vhappy.png',
'wtf.png',
'sigh.png',
'omg.png',
'ouch.png',
'tired.gif',
'kiss.gif',
'love.png',
'sweat.gif',
'suspicious.gif',
'crying.png',
'blank.png',
'puke.gif',
'ruse.png',
'meow.png',
'jew.png',
'winxp.png',
'childish.png',
'idea.png'
),
// Defines the available sounds loaded on chat start:
soundFiles: {
sound_1: 'ajax_incoming.mp3',
sound_2: 'ajax_outgoing.mp3',
sound_3: 'ajax_login.mp3',
sound_4: 'ajax_logout.mp3',
sound_5: 'ajax_chatbot.mp3',
sound_6: 'ajax_error.mp3',
sound_7: 'dokuro_pipiru.mp3',
sound_8: 'ajax_shit.mp3',
dicks: 'dicks.mp3',
xp_1: 'xp_incoming.mp3',
xp_2: 'xp_outgoing.mp3',
xp_3: 'xp_login.mp3',
xp_4: 'xp_logout.mp3',
xp_5: 'xp_chatbot.mp3',
xp_6: 'xp_error.mp3'
},
// The following configuration options are usually overwritten by server-side values:
// Session identification, used for style and setting cookies:
sessionName: 'ajax_chat',
// The time in days until the style and setting cookies expire:
cookieExpiration: 365,
// The path of the cookies, '/' allows to read the cookies from all directories:
cookiePath: '/',
// The domain of the cookies, defaults to the hostname of the server if set to null:
cookieDomain: null,
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
cookieSecure: null,
// The name of the chat bot:
chatBotName: 'Koishi',
// The userID of the chat bot:
chatBotID: 2147483647,
// Allow/Disallow registered users to delete their own messages:
allowUserMessageDelete: false,
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
inactiveTimeout: 2,
// UserID plus this value are private channels (this is also the max userID and max channelID):
privateChannelDiff: 500000000,
// UserID plus this value are used for private messages:
privateMessageDiff: 1000000000,
// Defines if login/logout and channel enter/leave are displayed:
showChannelMessages: true,
// Max messageText length:
messageTextMaxLength: 2000,
// Defines if the socket server is enabled:
socketServerEnabled: false,
// Defines the hostname of the socket server used to connect from client side:
socketServerHost: 'localhost',
// Defines the port of the socket server:
socketServerPort: 1935,
// This ID can be used to distinguish between different chat installations using the same socket server:
socketServerChatID: 0
}

40
public/js/custom.js Normal file
View File

@ -0,0 +1,40 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Overriding client side functionality:
/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
return text;
}
*/
ajaxChat.customInitialize = function() {
ajaxChat.addChatBotMessageToChatList("[b]Welcome to Flashii Chat![/b]");
ajaxChat.addChatBotMessageToChatList("[i]the one time i tried to use gimp i got scared and tried closing it and it crashed[/i]");
}
ajaxChat.loadHTML5Sounds=function(){
aO = document.createElement('audio');
aO.id = 'audioObject';
document.body.appendChild(aO);
this.audioObject = document.getElementById('audioObject');
this.setAudioVolume(this.settings['audioVolume']);
this.sounds = {};
for(var key in this.soundFiles){
this.sounds[key] = this.dirs['sounds']+this.soundFiles[key];
}
}
ajaxChat.playHTML5Sound=function(soundID,soundFile){
this.audioObject.src = soundFile;
this.audioObject.play();
}
ajaxChat.setHTML5SoundVolume=function(volume){
this.audioObject.volume = volume;
}

0
public/js/index.html Normal file
View File

95
public/js/lang/en.js Normal file
View File

@ -0,0 +1,95 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Ajax Chat language Object:
var ajaxChatLang = {
login: '%s logs into the Chat.',
logout: '%s logs out of the Chat.',
logoutTimeout: '%s has been logged out (Exploded).',
//logoutTimeout: '%s has been logged out (Timeout).',
//logoutKicked: '%s has been kekked from the Chat.',
logoutKicked: '%s got clubbed to death.',
logoutIP: '%s has been logged out (Invalid IP address).',
channelEnter: '%s enters the channel.',
channelLeave: '%s leaves the channel.',
privmsg: '(whispers)',
privmsgto: '(whispers to %s)',
invite: '%s invites you to join %s.',
inviteto: 'Your invitation to %s to join channel %s has been sent.',
uninvite: '%s uninvites you from channel %s.',
uninviteto: 'Your uninvitation to %s for channel %s has been sent.',
queryOpen: 'Private channel opened to %s.',
queryClose: 'Private channel to %s closed.',
ignoreAdded: 'Added %s to the ignore list.',
ignoreRemoved: 'Removed %s from the ignore list.',
ignoreList: 'Ignored Users:',
ignoreListEmpty: 'No ignored Users listed.',
who: 'Online Users:',
whoChannel: 'Online Users in channel %s:',
whoEmpty: 'No online users in the given channel.',
list: 'Available channels:',
bans: 'Banned Users:',
bansEmpty: 'No banned Users listed.',
unban: 'Ban of user %s revoked.',
whois: 'User %s - IP address:',
whereis: 'User %s is in channel %s.',
roll: '%s rolls %s and gets %s.',
nick: '%s is now known as %s.',
toggleUserMenu: 'Toggle user menu for %s',
userMenuLogout: 'Logout',
userMenuWho: 'List online users',
userMenuList: 'List available channels',
userMenuAction: 'Describe action',
userMenuRoll: 'Roll dice',
userMenuNick: 'Change username',
userMenuEnterPrivateRoom: 'Enter private room',
userMenuSendPrivateMessage: 'Send private message',
userMenuDescribe: 'Send private action',
userMenuOpenPrivateChannel: 'Open private channel',
userMenuClosePrivateChannel: 'Close private channel',
userMenuInvite: 'Invite',
userMenuUninvite: 'Uninvite',
userMenuIgnore: 'Ignore/Accept',
userMenuIgnoreList: 'List ignored users',
userMenuWhereis: 'Display channel',
userMenuKick: 'Kick/Ban',
userMenuBans: 'List banned users',
userMenuWhois: 'Display IP',
userMenuLogs: 'Enter logs',
userMenuViewProfile: 'View profile',
unbanUser: 'Ban on user %s revoked.',
joinChannel: 'Join channel %s',
cite: '%s said:',
urlDialog: 'Please enter the address (URL) of the webpage:',
deleteMessage: 'Delete this chat message',
deleteMessageConfirm: 'Are you sure you want to delete the selected chat message?',
errorCookiesRequired: 'Cookies are required for this chat.',
errorUserNameNotFound: 'Error: User %s not found.',
errorMissingText: 'Error: Missing message text.',
errorMissingUserName: 'Error: Missing username.',
errorInvalidUserName: 'Error: Invalid username.',
errorUserNameInUse: 'Error: Username already in use.',
errorMissingChannelName: 'Error: Missing channel name.',
errorInvalidChannelName: 'Error: Invalid channel name: %s',
errorPrivateMessageNotAllowed: 'Error: Private messages are not allowed.',
errorInviteNotAllowed: 'Error: You are not allowed to invite someone to this channel.',
errorUninviteNotAllowed: 'Error: You are not allowed to uninvite someone from this channel.',
errorNoOpenQuery: 'Error: No private channel open.',
errorKickNotAllowed: 'You are not allowed to kick %s',
errorCommandNotAllowed: 'You are not allowed to do %s',
errorUnknownCommand: 'Error: Command %s does not exist.',
errorMaxMessageRate: 'Error: You exceeded the maximum number of messages per minute.',
errorConnectionTimeout: 'Error: Connection timeout. Please try again.',
errorConnectionStatus: 'Error: Connection status: %s',
errorSoundIO: 'Error: Failed to load sound file (Flash IO Error).',
errorSocketIO: 'Error: Connection to socket server failed (Flash IO Error).',
errorSocketSecurity: 'Error: Connection to socket server failed (Flash Security Error).',
errorDOMSyntax: 'Error: Invalid DOM Syntax (DOM ID: %s).',
errorHolyRoll: 'Congratulations, you\'ve found the roll command. But it\'s rank protected so jokes on you!'
}

View File

128
public/js/logs.js Normal file
View File

@ -0,0 +1,128 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Overrides client-side functionality for the logs view:
ajaxChat.logsMonitorMode = null;
ajaxChat.logsLastID = null;
ajaxChat.logsCommand = null;
ajaxChat.startChatUpdate = function() {
var infos = 'userID,userName,userRole';
if(this.socketServerEnabled) {
infos += ',socketRegistrationID';
}
this.updateChat('&getInfos=' + this.encodeText(infos));
}
ajaxChat.updateChat = function(paramString) {
// Only update if we have parameters, are in monitor mode or the lastID has changed since the last update:
if(paramString || this.logsMonitorMode || !this.logsLastID || this.lastID != this.logsLastID) {
// Update the logsLastID for the lastID check:
this.logsLastID = this.lastID;
var requestUrl = this.ajaxURL
+ '&lastID='
+ this.lastID;
if(paramString) {
requestUrl += paramString;
}
requestUrl += '&' + this.getLogsCommand();
this.makeRequest(requestUrl,'GET',null);
} else {
this.logsLastID = null;
}
}
ajaxChat.sendMessage = function() {
this.getLogs();
}
ajaxChat.getLogs = function() {
clearTimeout(this.timer);
this.clearChatList();
this.lastID = 0;
this.logsCommand = null;
this.makeRequest(this.ajaxURL,'POST',this.getLogsCommand());
}
ajaxChat.getLogsCommand = function() {
if(!this.logsCommand) {
if(!this.dom['inputField'].value &&
parseInt(this.dom['yearSelection'].value) <= 0 &&
parseInt(this.dom['hourSelection'].value) <= 0) {
this.logsMonitorMode = true;
} else {
this.logsMonitorMode = false;
}
this.logsCommand = 'command=getLogs'
+ '&channelID=' + this.dom['channelSelection'].value
+ '&year=' + this.dom['yearSelection'].value
+ '&month=' + this.dom['monthSelection'].value
+ '&day=' + this.dom['daySelection'].value
+ '&hour=' + this.dom['hourSelection'].value
+ '&search=' + this.encodeText(this.dom['inputField'].value);
}
return this.logsCommand;
}
ajaxChat.onNewMessage = function(dateObject, userID, userName, userRoleClass, messageID, messageText, channelID, ip) {
if(messageText.indexOf('/delete') == 0) {
return false;
}
if(this.logsMonitorMode) {
this.blinkOnNewMessage(dateObject, userID, userName, userRoleClass, messageID, messageText, channelID, ip);
this.playSoundOnNewMessage(
dateObject, userID, userName, userRoleClass, messageID, messageText, channelID, ip
);
}
return true;
}
ajaxChat.logout = function() {
clearTimeout(this.timer);
this.makeRequest(this.ajaxURL,'POST','logout=true');
}
ajaxChat.switchLanguage = function(langCode) {
window.location.search = '?view=logs&lang='+langCode;
}
ajaxChat.setChatUpdateTimer = function() {
clearTimeout(this.timer);
var timeout;
if(this.socketIsConnected && this.logsLastID && this.lastID == this.logsLastID) {
timeout = this.socketTimerRate;
} else {
timeout = this.timerRate;
if(this.socketServerEnabled && !this.socketReconnectTimer) {
// If the socket connection fails try to reconnect once in a minute:
this.socketReconnectTimer = setTimeout('ajaxChat.socketConnect();', 60000);
}
}
this.timer = setTimeout('ajaxChat.updateChat(null);', timeout);
}
ajaxChat.socketUpdate = function(data) {
if(this.logsMonitorMode) {
var xmlDoc = this.loadXML(data);
if(xmlDoc) {
var selectedChannelID = parseInt(this.dom['channelSelection'].value);
var channelID = parseInt(xmlDoc.firstChild.getAttribute('channelID'));
if(selectedChannelID == -3 || channelID == selectedChannelID ||
selectedChannelID == -2 && channelID >= this.privateMessageDiff ||
selectedChannelID == -1
&& channelID >= this.privateChannelDiff
&& channelID < this.privateMessageDiff
) {
this.handleChatMessages(xmlDoc.getElementsByTagName('message'));
}
}
}
}

12
public/js/shoutbox.js Normal file
View File

@ -0,0 +1,12 @@
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Overrides functionality for the shoutbox view:
ajaxChat.handleLogout = function() {
}

4
public/lib/.htaccess Normal file
View File

@ -0,0 +1,4 @@
AuthType Basic
AuthName "Forbidden"
AuthUserFile /dev/null
require user nobody

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,81 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to initialize the DataBase connection:
class AJAXChatDataBase {
var $_db;
function __construct(&$dbConnectionConfig) {
switch($dbConnectionConfig['type']) {
case 'mysqli':
$this->_db = new AJAXChatDatabaseMySQLi($dbConnectionConfig);
break;
case 'mysql':
$this->_db = new AJAXChatDatabaseMySQL($dbConnectionConfig);
break;
default:
// Use MySQLi if available, else MySQL (and check the type of a given database connection object):
if(function_exists('mysqli_connect') && (!$dbConnectionConfig['link'] || is_object($dbConnectionConfig['link']))) {
$this->_db = new AJAXChatDatabaseMySQLi($dbConnectionConfig);
} else {
$this->_db = new AJAXChatDatabaseMySQL($dbConnectionConfig);
}
}
}
// Method to connect to the DataBase server:
function connect(&$dbConnectionConfig) {
return $this->_db->connect($dbConnectionConfig);
}
// Method to select the DataBase:
function select($dbName) {
return $this->_db->select($dbName);
}
// Method to determine if an error has occured:
function error() {
return $this->_db->error();
}
// Method to return the error report:
function getError() {
return $this->_db->getError();
}
// Method to return the connection identifier:
function &getConnectionID() {
return $this->_db->getConnectionID();
}
// Method to prevent SQL injections:
function makeSafe($value) {
return $this->_db->makeSafe($value);
}
// Method to perform SQL queries:
function sqlQuery($sql) {
return $this->_db->sqlQuery($sql);
}
// Method to retrieve the current DataBase name:
function getName() {
return $this->_db->getName();
//If your database has hyphens ( - ) in it, try using this instead:
//return '`'.$this->_db->getName().'`';
}
// Method to retrieve the last inserted ID:
function getLastInsertedID() {
return $this->_db->getLastInsertedID();
}
}
?>

View File

@ -0,0 +1,138 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to provide static encoding methods
class AJAXChatEncoding {
// Helper function to store special chars as we cannot use static class members in PHP4:
public static function getSpecialChars() {
static $specialChars;
if(!$specialChars) {
// As &apos; is not supported by IE, we use &#39; as replacement for "'":
$specialChars = array('&'=>'&amp;', '<'=>'&lt;', '>'=>'&gt;', "'"=>'&#39;', '"'=>'&quot;');
}
return $specialChars;
}
// Helper function to store Regular expression for NO-WS-CTL as we cannot use static class members in PHP4:
public static function getRegExp_NO_WS_CTL() {
static $regExp_NO_WS_CTL;
if(!$regExp_NO_WS_CTL) {
// Regular expression for NO-WS-CTL, non-whitespace control characters (RFC 2822), decimal 18, 1112, 1431, and 127:
$regExp_NO_WS_CTL = '/[\x0\x1\x2\x3\x4\x5\x6\x7\x8\xB\xC\xE\xF\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x7F]/';
}
return $regExp_NO_WS_CTL;
}
public static function convertEncoding($str, $charsetFrom, $charsetTo) {
if(function_exists('mb_convert_encoding')) {
return mb_convert_encoding($str, $charsetTo, $charsetFrom);
}
if(function_exists('iconv')) {
return iconv($charsetFrom, $charsetTo, $str);
}
if(($charsetFrom == 'UTF-8') && ($charsetTo == 'ISO-8859-1')) {
return utf8_decode($str);
}
if(($charsetFrom == 'ISO-8859-1') && ($charsetTo == 'UTF-8')) {
return utf8_encode($str);
}
return $str;
}
public static function htmlEncode($str, $contentCharset='UTF-8') {
switch($contentCharset) {
case 'UTF-8':
// Encode only special chars (&, <, >, ', ") as entities:
return AJAXChatEncoding::encodeSpecialChars($str);
break;
case 'ISO-8859-1':
case 'ISO-8859-15':
// Encode special chars and all extended characters above ISO-8859-1 charset as entities, then convert to content charset:
return AJAXChatEncoding::convertEncoding(AJAXChatEncoding::encodeEntities($str, 'UTF-8', array(
0x26, 0x26, 0, 0xFFFF, // &
0x3C, 0x3C, 0, 0xFFFF, // <
0x3E, 0x3E, 0, 0xFFFF, // >
0x27, 0x27, 0, 0xFFFF, // '
0x22, 0x22, 0, 0xFFFF, // "
0x100, 0x2FFFF, 0, 0xFFFF // above ISO-8859-1
)), 'UTF-8', $contentCharset);
break;
default:
// Encode special chars and all characters above ASCII charset as entities, then convert to content charset:
return AJAXChatEncoding::convertEncoding(AJAXChatEncoding::encodeEntities($str, 'UTF-8', array(
0x26, 0x26, 0, 0xFFFF, // &
0x3C, 0x3C, 0, 0xFFFF, // <
0x3E, 0x3E, 0, 0xFFFF, // >
0x27, 0x27, 0, 0xFFFF, // '
0x22, 0x22, 0, 0xFFFF, // "
0x80, 0x2FFFF, 0, 0xFFFF // above ASCII
)), 'UTF-8', $contentCharset);
}
}
public static function encodeSpecialChars($str) {
return strtr($str, AJAXChatEncoding::getSpecialChars());
}
public static function decodeSpecialChars($str) {
return strtr($str, array_flip(AJAXChatEncoding::getSpecialChars()));
}
public static function encodeEntities($str, $encoding='UTF-8', $convmap=null) {
if($convmap && function_exists('mb_encode_numericentity')) {
return mb_encode_numericentity($str, $convmap, $encoding);
}
return htmlentities($str, ENT_QUOTES, $encoding);
}
public static function decodeEntities($str, $encoding='UTF-8', $htmlEntitiesMap=null) {
// Due to PHP bug #25670, html_entity_decode does not work with UTF-8 for PHP versions < 5:
if(function_exists('html_entity_decode') && version_compare(phpversion(), 5, '>=')) {
// Replace numeric and literal entities:
$str = html_entity_decode($str, ENT_QUOTES, $encoding);
// Replace additional literal HTML entities if an HTML entities map is given:
if($htmlEntitiesMap) {
$str = strtr($str, $htmlEntitiesMap);
}
} else {
// Replace numeric entities:
$str = preg_replace('~&#([0-9]+);~e', 'AJAXChatEncoding::unicodeChar("\\1")', $str);
$str = preg_replace('~&#x([0-9a-f]+);~ei', 'AJAXChatEncoding::unicodeChar(hexdec("\\1"))', $str);
// Replace literal entities:
$htmlEntitiesMap = $htmlEntitiesMap ? $htmlEntitiesMap : array_flip(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES));
$str = strtr($str, $htmlEntitiesMap);
}
return $str;
}
public static function unicodeChar($c) {
if($c <= 0x7F) {
return chr($c);
} else if($c <= 0x7FF) {
return chr(0xC0 | $c >> 6) . chr(0x80 | $c & 0x3F);
} else if($c <= 0xFFFF) {
return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
. chr(0x80 | $c & 0x3F);
} else if($c <= 0x10FFFF) {
return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
. chr(0x80 | $c >> 6 & 0x3F)
. chr(0x80 | $c & 0x3F);
} else {
return null;
}
}
public static function removeUnsafeCharacters($str) {
// Remove NO-WS-CTL, non-whitespace control characters (RFC 2822), decimal 18, 1112, 1431, and 127:
return preg_replace(AJAXChatEncoding::getRegExp_NO_WS_CTL(), '', $str);
}
}
?>

View File

@ -0,0 +1,22 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to provide methods for file system access:
class AJAXChatFileSystem {
public static function getFileContents($file) {
if(function_exists('file_get_contents')) {
return file_get_contents($file);
} else {
return(implode('', file($file)));
}
}
}
?>

View File

@ -0,0 +1,56 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to manage HTTP header
class AJAXChatHTTPHeader {
var $_contentType;
var $_constant;
var $_noCache;
function __construct($encoding='UTF-8', $contentType=null, $noCache=true) {
if($contentType) {
$this->_contentType = $contentType.'; charset='.$encoding;
$this->_constant = true;
} else {
if(isset($_SERVER['HTTP_ACCEPT']) && (strpos($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml') !== false)) {
$this->_contentType = 'application/xhtml+xml; charset='.$encoding;
} else {
$this->_contentType = 'text/html; charset='.$encoding;
}
$this->_constant = false;
}
$this->_noCache = $noCache;
}
// Method to send the HTTP header:
function send() {
// Prevent caching:
if($this->_noCache) {
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
}
// Send the content-type-header:
header('Content-Type: '.$this->_contentType);
// Send vary header if content-type varies (important for proxy-caches):
if(!$this->_constant) {
header('Vary: Accept');
}
}
// Method to return the content-type string:
function getContentType() {
// Return the content-type string:
return $this->_contentType;
}
}
?>

View File

@ -0,0 +1,102 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
class AJAXChatLanguage {
var $_regExpAcceptLangCode;
var $_availableLangCodes;
var $_defaultLangCode;
var $_strictMode;
var $_langCode;
function __construct($availableLangCodes, $defaultLangCode, $langCode=null, $strictMode=false) {
$this->_regExpAcceptLangCode = '/^([a-z]{1,8}(?:-[a-z]{1,8})*)(?:;\s*q=(0(?:\.[0-9]{1,3})?|1(?:\.0{1,3})?))?$/i';
$this->_availableLangCodes = $availableLangCodes;
$this->_defaultLangCode = $defaultLangCode;
if($langCode && in_array($langCode, $availableLangCodes)) {
$this->_langCode = $langCode;
}
$this->_strictMode = $strictMode;
}
// Method to detect the language code from the HTTP_ACCEPT_LANGUAGE header:
function detectLangCode() {
// If HTTP_ACCEPT_LANGUAGE is empty use defaultLangCode:
if(empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$this->_langCode = $this->_defaultLangCode;
return;
}
// Split up the HTTP_ACCEPT_LANGUAGE header:
$acceptedLanguages = preg_split('/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$currentLangCode = $this->_defaultLangCode;
$currentLangQuality = 0.0;
foreach($acceptedLanguages as $acceptedLanguage) {
// Parse the language string:
$match = preg_match($this->_regExpAcceptLangCode, $acceptedLanguage, $matches);
// Check if the syntax is valid:
if(!$match) {
continue;
}
// Get and split the language code:
$langCodeParts = explode ('-', $matches[1]);
// Get the language quality given as float value:
if(isset($matches[2])) {
$langQuality = (float)$matches[2];
} else {
// Missing language quality value is maximum quality:
$langQuality = 1.0;
}
// Go through it until the language code is empty:
while(count($langCodeParts)) {
// Join the current langCodeParts:
$langCode = strtolower(join('-', $langCodeParts));
// Check if the langCode is in the available list:
if(in_array($langCode, $this->_availableLangCodes)) {
// Check the quality setting:
if ($langQuality > $currentLangQuality) {
$currentLangCode = $langCode;
$currentLangQuality = $langQuality;
break;
}
}
// If strict mode is set, don't minimalize the language code:
if($this->_strictMode) {
break;
}
// else chop off the right part:
array_pop($langCodeParts);
}
}
$this->_langCode = $currentLangCode;
}
function getLangCode() {
if(!$this->_langCode) {
$this->detectLangCode();
}
return $this->_langCode;
}
function setLangCode($langCode) {
$this->_langCode = $langCode;
}
function getLangCodes() {
return $this->_availableLangCodes;
}
}
?>

View File

@ -0,0 +1,92 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to initialize the MySQL DataBase connection:
class AJAXChatDataBaseMySQL {
var $_connectionID;
var $_errno = 0;
var $_error = '';
var $_dbName;
function __construct(&$dbConnectionConfig) {
$this->_connectionID = $dbConnectionConfig['link'];
$this->_dbName = $dbConnectionConfig['name'];
}
// Method to connect to the DataBase server:
function connect(&$dbConnectionConfig) {
$this->_connectionID = @mysql_connect(
$dbConnectionConfig['host'],
$dbConnectionConfig['user'],
$dbConnectionConfig['pass'],
true
);
if(!$this->_connectionID) {
$this->_errno = null;
$this->_error = 'Database connection failed.';
return false;
}
return true;
}
// Method to select the DataBase:
function select($dbName) {
if(!@mysql_select_db($dbName, $this->_connectionID)) {
$this->_errno = mysql_errno($this->_connectionID);
$this->_error = mysql_error($this->_connectionID);
return false;
}
$this->_dbName = $dbName;
return true;
}
// Method to determine if an error has occured:
function error() {
return (bool)$this->_error;
}
// Method to return the error report:
function getError() {
if($this->error()) {
$str = 'Error-Report: ' .$this->_error."\n";
$str .= 'Error-Code: '.$this->_errno."\n";
} else {
$str = 'No errors.'."\n";
}
return $str;
}
// Method to return the connection identifier:
function &getConnectionID() {
return $this->_connectionID;
}
// Method to prevent SQL injections:
function makeSafe($value) {
return "'".mysql_real_escape_string($value, $this->_connectionID)."'";
}
// Method to perform SQL queries:
function sqlQuery($sql) {
return new AJAXChatMySQLQuery($sql, $this->_connectionID);
}
// Method to retrieve the current DataBase name:
function getName() {
return $this->_dbName;
}
// Method to retrieve the last inserted ID:
function getLastInsertedID() {
return mysql_insert_id($this->_connectionID);
}
}
?>

View File

@ -0,0 +1,89 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to perform SQL (MySQL) queries:
class AJAXChatMySQLQuery {
var $_connectionID;
var $_sql = '';
var $_result = 0;
var $_errno = 0;
var $_error = '';
// Constructor:
function __construct($sql, $connectionID = null) {
$this->_sql = trim($sql);
$this->_connectionID = $connectionID;
if($this->_connectionID) {
$this->_result = mysql_query($this->_sql, $this->_connectionID);
if(!$this->_result) {
$this->_errno = mysql_errno($this->_connectionID);
$this->_error = mysql_error($this->_connectionID);
}
} else {
$this->_result = mysql_query($this->_sql);
if(!$this->_result) {
$this->_errno = mysql_errno();
$this->_error = mysql_error();
}
}
}
// Returns true if an error occured:
function error() {
// Returns true if the Result-ID is valid:
return !(bool)($this->_result);
}
// Returns an Error-String:
function getError() {
if($this->error()) {
$str = 'Query: ' .$this->_sql ."\n";
$str .= 'Error-Report: ' .$this->_error."\n";
$str .= 'Error-Code: '.$this->_errno;
} else {
$str = "No errors.";
}
return $str;
}
// Returns the content:
function fetch() {
if($this->error()) {
return null;
} else {
return mysql_fetch_assoc($this->_result);
}
}
// Returns the number of rows (SELECT or SHOW):
function numRows() {
if($this->error()) {
return null;
} else {
return mysql_num_rows($this->_result);
}
}
// Returns the number of affected rows (INSERT, UPDATE, REPLACE or DELETE):
function affectedRows() {
if($this->error()) {
return null;
} else {
return mysql_affected_rows($this->_connectionID);
}
}
// Frees the memory:
function free() {
@mysql_free_result($this->_result);
}
}
?>

View File

@ -0,0 +1,91 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to initialize the MySQL DataBase connection:
class AJAXChatDataBaseMySQLi {
var $_connectionID;
var $_errno = 0;
var $_error = '';
var $_dbName;
function __construct(&$dbConnectionConfig) {
$this->_connectionID = $dbConnectionConfig['link'];
$this->_dbName = $dbConnectionConfig['name'];
}
// Method to connect to the DataBase server:
function connect(&$dbConnectionConfig) {
$this->_connectionID = new mysqli(
$dbConnectionConfig['host'],
$dbConnectionConfig['user'],
$dbConnectionConfig['pass']
);
if(!$this->_connectionID) {
$this->_errno = mysqli_connect_errno();
$this->_error = mysqli_connect_error();
return false;
}
return true;
}
// Method to select the DataBase:
function select($dbName) {
if(!$this->_connectionID->select_db($dbName)) {
$this->_errno = $this->_connectionID->errno;
$this->_error = $this->_connectionID->error;
return false;
}
$this->_dbName = $dbName;
return true;
}
// Method to determine if an error has occured:
function error() {
return (bool)$this->_error;
}
// Method to return the error report:
function getError() {
if($this->error()) {
$str = 'Error-Report: ' .$this->_error."\n";
$str .= 'Error-Code: '.$this->_errno."\n";
} else {
$str = 'No errors.'."\n";
}
return $str;
}
// Method to return the connection identifier:
function &getConnectionID() {
return $this->_connectionID;
}
// Method to prevent SQL injections:
function makeSafe($value) {
return "'".$this->_connectionID->escape_string($value)."'";
}
// Method to perform SQL queries:
function sqlQuery($sql) {
return new AJAXChatMySQLiQuery($sql, $this->_connectionID);
}
// Method to retrieve the current DataBase name:
function getName() {
return $this->_dbName;
}
// Method to retrieve the last inserted ID:
function getLastInsertedID() {
return $this->_connectionID->insert_id;
}
}
?>

View File

@ -0,0 +1,81 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to perform SQL (MySQLi) queries:
class AJAXChatMySQLiQuery {
var $_connectionID;
var $_sql = '';
var $_result = 0;
var $_errno = 0;
var $_error = '';
// Constructor:
function __construct($sql, $connectionID) {
$this->_sql = trim($sql);
$this->_connectionID = $connectionID;
$this->_result = $this->_connectionID->query($this->_sql);
if(!$this->_result) {
$this->_errno = $this->_connectionID->errno;
$this->_error = $this->_connectionID->error;
}
}
// Returns true if an error occured:
function error() {
// Returns true if the Result-ID is valid:
return !(bool)($this->_result);
}
// Returns an Error-String:
function getError() {
if($this->error()) {
$str = 'Query: ' .$this->_sql ."\n";
$str .= 'Error-Report: ' .$this->_error."\n";
$str .= 'Error-Code: '.$this->_errno;
} else {
$str = "No errors.";
}
return $str;
}
// Returns the content:
function fetch() {
if($this->error()) {
return null;
} else {
return $this->_result->fetch_assoc();
}
}
// Returns the number of rows (SELECT or SHOW):
function numRows() {
if($this->error()) {
return null;
} else {
return $this->_result->num_rows;
}
}
// Returns the number of affected rows (INSERT, UPDATE, REPLACE or DELETE):
function affectedRows() {
if($this->error()) {
return null;
} else {
return $this->_connectionID->affected_rows;
}
}
// Frees the memory:
function free() {
$this->_result->free();
}
}
?>

View File

@ -0,0 +1,37 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to provide multibyte enabled string methods
class AJAXChatString {
public static function subString($str, $start=0, $length=null, $encoding='UTF-8') {
if($length === null) {
$length = AJAXChatString::stringLength($str);
}
if(function_exists('mb_substr')) {
return mb_substr($str, $start, $length, $encoding);
} else if(function_exists('iconv_substr')) {
return iconv_substr($str, $start, $length, $encoding);
} else {
return substr($str, $start, $length);
}
}
public static function stringLength($str, $encoding='UTF-8') {
if(function_exists('mb_strlen')) {
return mb_strlen($str, $encoding);
} else if(function_exists('iconv_strlen')) {
return iconv_strlen($str, $encoding);
} else {
return strlen($str);
}
}
}
?>

View File

@ -0,0 +1,359 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Class to handle HTML templates
class AJAXChatTemplate {
var $ajaxChat;
var $_regExpTemplateTags;
var $_templateFile;
var $_contentType;
var $_content;
var $_parsedContent;
// Constructor:
function __construct(&$ajaxChat, $templateFile, $contentType=null) {
$this->ajaxChat = $ajaxChat;
$this->_regExpTemplateTags = '/\[(\w+?)(?:(?:\/)|(?:\](.+?)\[\/\1))\]/s';
$this->_templateFile = $templateFile;
$this->_contentType = $contentType;
}
function getParsedContent() {
if(!$this->_parsedContent) {
$this->parseContent();
}
return $this->_parsedContent;
}
function getContent() {
if(!$this->_content) {
$this->_content = AJAXChatFileSystem::getFileContents($this->_templateFile);
}
return $this->_content;
}
function parseContent() {
$this->_parsedContent = $this->getContent();
// Remove the XML declaration if the content-type is not xml:
if($this->_contentType && (strpos($this->_contentType,'xml') === false)) {
$doctypeStart = strpos($this->_parsedContent, '<!DOCTYPE ');
if($doctypeStart !== false) {
// Removing the XML declaration (in front of the document type) prevents IE<7 to go into "Quirks mode":
$this->_parsedContent = substr($this->_parsedContent, $doctypeStart);
}
}
// Replace template tags ([TAG/] and [TAG]content[/TAG]) and return parsed template content:
$this->_parsedContent = preg_replace_callback($this->_regExpTemplateTags, array($this, 'replaceTemplateTags'), $this->_parsedContent);
}
function replaceTemplateTags($tagData) {
switch($tagData[1]) {
case 'AJAX_CHAT_URL':
return $this->ajaxChat->htmlEncode($this->ajaxChat->getChatURL());
case 'LANG':
return $this->ajaxChat->htmlEncode($this->ajaxChat->getLang($tagData[2]));
case 'LANG_CODE':
return $this->ajaxChat->getLangCode();
case 'BASE_DIRECTION':
return $this->getBaseDirectionAttribute();
case 'CONTENT_ENCODING':
return $this->ajaxChat->getConfig('contentEncoding');
case 'CONTENT_TYPE':
return $this->_contentType;
case 'LOGIN_URL':
return ($this->ajaxChat->getRequestVar('view') == 'logs') ? './?view=logs' : './';
case 'USER_NAME_MAX_LENGTH':
return $this->ajaxChat->getConfig('userNameMaxLength');
case 'MESSAGE_TEXT_MAX_LENGTH':
return $this->ajaxChat->getConfig('messageTextMaxLength');
case 'LOGIN_CHANNEL_ID':
return $this->ajaxChat->getValidRequestChannelID();
case 'SESSION_NAME':
return $this->ajaxChat->getConfig('sessionName');
case 'COOKIE_EXPIRATION':
return $this->ajaxChat->getConfig('sessionCookieLifeTime');
case 'COOKIE_PATH':
return $this->ajaxChat->getConfig('sessionCookiePath');
case 'COOKIE_DOMAIN':
return $this->ajaxChat->getConfig('sessionCookieDomain');
case 'COOKIE_SECURE':
return $this->ajaxChat->getConfig('sessionCookieSecure');
case 'CHAT_BOT_NAME':
return rawurlencode($this->ajaxChat->getConfig('chatBotName'));
case 'CHAT_BOT_ID':
return $this->ajaxChat->getConfig('chatBotID');
case 'ALLOW_USER_MESSAGE_DELETE':
if($this->ajaxChat->getConfig('allowUserMessageDelete'))
return 1;
else
return 0;
case 'INACTIVE_TIMEOUT':
return $this->ajaxChat->getConfig('inactiveTimeout');
case 'PRIVATE_CHANNEL_DIFF':
return $this->ajaxChat->getConfig('privateChannelDiff');
case 'PRIVATE_MESSAGE_DIFF':
return $this->ajaxChat->getConfig('privateMessageDiff');
case 'SHOW_CHANNEL_MESSAGES':
if($this->ajaxChat->getConfig('showChannelMessages'))
return 1;
else
return 0;
case 'SOCKET_SERVER_ENABLED':
if($this->ajaxChat->getConfig('socketServerEnabled'))
return 1;
else
return 0;
case 'SOCKET_SERVER_HOST':
if($this->ajaxChat->getConfig('socketServerHost')) {
$socketServerHost = $this->ajaxChat->getConfig('socketServerHost');
} else {
$socketServerHost = (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
}
return rawurlencode($socketServerHost);
case 'SOCKET_SERVER_PORT':
return $this->ajaxChat->getConfig('socketServerPort');
case 'SOCKET_SERVER_CHAT_ID':
return $this->ajaxChat->getConfig('socketServerChatID');
case 'STYLE_SHEETS':
return $this->getStyleSheetLinkTags();
case 'CHANNEL_OPTIONS':
return $this->getChannelOptionTags();
case 'STYLE_OPTIONS':
return $this->getStyleOptionTags();
case 'LANGUAGE_OPTIONS':
return $this->getLanguageOptionTags();
case 'ERROR_MESSAGES':
return $this->getErrorMessageTags();
case 'LOGS_CHANNEL_OPTIONS':
return $this->getLogsChannelOptionTags();
case 'LOGS_YEAR_OPTIONS':
return $this->getLogsYearOptionTags();
case 'LOGS_MONTH_OPTIONS':
return $this->getLogsMonthOptionTags();
case 'LOGS_DAY_OPTIONS':
return $this->getLogsDayOptionTags();
case 'LOGS_HOUR_OPTIONS':
return $this->getLogsHourOptionTags();
case 'MENU_BAR':
return <<<EOF
<ul>
<li class="first notcurrent"><a href="https://flashii.net/">Home</a></li>
<li class="notcurrent"><a href="https://flashii.net/news.php">News</a></li>
<li class="current"><a href="./">Chat</a></li>
<li class="notcurrent"><a href="https://flashii.net/members.php">Members</a></li>
<li class="notcurrent"><a href="https://flashii.net/donate.php">Donate</a></li>
<li class="notcurrent"><a href="https://status.flashii.net">Status</a></li>
</ul>
EOF;
case 'COPYRIGHT':
return <<<EOF
<div class="copyright">
Copyright &copy; 2013-2015 <a href="https://flash.moe/" target="_blank">Flashwave</a>
<br /><a href="https://blueimp.net/ajax/" target="_blank">AJAX Chat</a> &copy; <a href="https://blueimp.net" target="_blank">blueimp.net</a>
<br />
<a href="https://flashii.net/forum">Feedback</a> |
<a href="https://flashii.net/changelog.php">Changelog</a> |
<a href="https://flashii.net/info.php/rules">Rules &amp; Info</a> |
<a href="https://flashii.net/info.php/terms">Terms of Service</a> |
<a href="https://flashii.net/info.php/contact">Contact</a> |
<a href="https://test.flashii.net">DevSite</a> |
<a href="?view=legacy">Legacy Login</a>
</div><br />
EOF;
case 'SANDSTORM':
if(date('md') === '0127' || !empty($_GET['sandstorm']))
return <<<HTML
<br />
<audio loop="loop" autoplay="autoplay" controls="controls">
<source type="audio/ogg" src="./sandstorm.ogg" />
<source type="audio/mpeg" src="./sandstorm.mp3" />
</audio>
<br />
HTML;
else
return '';
default:
return $this->ajaxChat->replaceCustomTemplateTags($tagData[1], (isset($tagData[2]) ? $tagData[2] : null));
}
}
// Function to display alternating table row colors:
function alternateRow($rowOdd='rowOdd', $rowEven='rowEven') {
static $i;
$i += 1;
if($i % 2 == 0) {
return $rowEven;
} else {
return $rowOdd;
}
}
function getBaseDirectionAttribute() {
$langCodeParts = explode('-', $this->ajaxChat->getLangCode());
switch($langCodeParts[0]) {
case 'ar':
case 'fa':
case 'he':
return 'rtl';
default:
return 'ltr';
}
}
function getStyleSheetLinkTags() {
$styleSheets = '';
foreach($this->ajaxChat->getConfig('styleAvailable') as $style) {
$alternate = ($style == $this->ajaxChat->getConfig('styleDefault')) ? '' : 'alternate ';
$styleSheets .= '<link rel="'.$alternate.'stylesheet" type="text/css" href="css/'.rawurlencode($style).'.ajaxchat.css" title="'.$this->ajaxChat->htmlEncode($style).'"/>';
}
return $styleSheets;
}
function getChannelOptionTags() {
$channelOptions = '';
$channelSelected = false;
foreach($this->ajaxChat->getChannels() as $key=>$value) {
if($this->ajaxChat->isLoggedIn()) {
$selected = ($value == $this->ajaxChat->getChannel()) ? ' selected="selected"' : '';
} else {
$selected = ($value == $this->ajaxChat->getConfig('defaultChannelID')) ? ' selected="selected"' : '';
}
if($selected) {
$channelSelected = true;
}
$channelOptions .= '<option value="'.$this->ajaxChat->htmlEncode($key).'"'.$selected.'>'.$this->ajaxChat->htmlEncode($key).'</option>';
}
if($this->ajaxChat->isLoggedIn() && $this->ajaxChat->isAllowedToCreatePrivateChannel()) {
// Add the private channel of the user to the options list:
if(!$channelSelected && $this->ajaxChat->getPrivateChannelID() == $this->ajaxChat->getChannel()) {
$selected = ' selected="selected"';
$channelSelected = true;
} else {
$selected = '';
}
$privateChannelName = $this->ajaxChat->getPrivateChannelName();
$channelOptions .= '<option value="'.$this->ajaxChat->htmlEncode($privateChannelName).'"'.$selected.'>'.$this->ajaxChat->htmlEncode($privateChannelName).'</option>';
}
// If current channel is not in the list, try to retrieve the channelName:
if(!$channelSelected) {
$channelName = $this->ajaxChat->getChannelName();
if($channelName !== null) {
$channelOptions .= '<option value="'.$this->ajaxChat->htmlEncode($channelName).'" selected="selected">'.$this->ajaxChat->htmlEncode($channelName).'</option>';
} else {
// Show an empty selection:
$channelOptions .= '<option value="" selected="selected">---</option>';
}
}
return $channelOptions;
}
function getStyleOptionTags() {
$styleOptions = '';
foreach($this->ajaxChat->getConfig('styleAvailable') as $style) {
$selected = ($style == $this->ajaxChat->getConfig('styleDefault')) ? ' selected="selected"' : '';
$styleOptions .= '<option value="'.$this->ajaxChat->htmlEncode($style).'"'.$selected.'>'.$this->ajaxChat->htmlEncode($style).'</option>';
}
return $styleOptions;
}
function getLanguageOptionTags() {
$languageOptions = '';
$languageNames = $this->ajaxChat->getConfig('langNames');
foreach($this->ajaxChat->getConfig('langAvailable') as $langCode) {
$selected = ($langCode == $this->ajaxChat->getLangCode()) ? ' selected="selected"' : '';
$languageOptions .= '<option value="'.$this->ajaxChat->htmlEncode($langCode).'"'.$selected.'>'.$languageNames[$langCode].'</option>';
}
return $languageOptions;
}
function getErrorMessageTags() {
$errorMessages = '';
foreach($this->ajaxChat->getInfoMessages('error') as $error) {
$errorMessages .= '<h3 class="miotitle">'.$this->ajaxChat->htmlEncode($this->ajaxChat->getLang($error)).'</h3>';
}
return $errorMessages;
}
function getLogsChannelOptionTags() {
$channelOptions = '';
$channelOptions .= '<option value="-3">------</option>';
foreach($this->ajaxChat->getChannels() as $key=>$value) {
if($this->ajaxChat->getUserRole() != AJAX_CHAT_ADMIN && $this->ajaxChat->getConfig('logsUserAccessChannelList') && !in_array($value, $this->ajaxChat->getConfig('logsUserAccessChannelList'))) {
continue;
}
$channelOptions .= '<option value="'.$value.'">'.$this->ajaxChat->htmlEncode($key).'</option>';
}
$channelOptions .= '<option value="-1">'.$this->ajaxChat->htmlEncode($this->ajaxChat->getLang('logsPrivateChannels')).'</option>';
$channelOptions .= '<option value="-2">'.$this->ajaxChat->htmlEncode($this->ajaxChat->getLang('logsPrivateMessages')).'</option>';
return $channelOptions;
}
function getLogsYearOptionTags() {
$yearOptions = '';
$yearOptions .= '<option value="-1">----</option>';
for($year=date('Y'); $year>=$this->ajaxChat->getConfig('logsFirstYear'); $year--) {
$yearOptions .= '<option value="'.$year.'">'.$year.'</option>';
}
return $yearOptions;
}
function getLogsMonthOptionTags() {
$monthOptions = '';
$monthOptions .= '<option value="-1">--</option>';
for($month=1; $month<=12; $month++) {
$monthOptions .= '<option value="'.$month.'">'.sprintf("%02d", $month).'</option>';
}
return $monthOptions;
}
function getLogsDayOptionTags() {
$dayOptions = '';
$dayOptions .= '<option value="-1">--</option>';
for($day=1; $day<=31; $day++) {
$dayOptions .= '<option value="'.$day.'">'.sprintf("%02d", $day).'</option>';
}
return $dayOptions;
}
function getLogsHourOptionTags() {
$hourOptions = '';
$hourOptions .= '<option value="-1">-----</option>';
for($hour=0; $hour<=23; $hour++) {
$hourOptions .= '<option value="'.$hour.'">'.sprintf("%02d", $hour).':00</option>';
}
return $hourOptions;
}
}
?>

View File

@ -0,0 +1,260 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
class CustomAJAXChat extends AJAXChat {
// Returns an associative array containing userName, userID and userRole
// Returns null if login is invalid
function getValidLoginUserData() {
if($this->getRequestVar('password')) {
// Check if we have a valid registered user:
$userName = $this->getRequestVar('userName');
$userName = $this->convertEncoding($userName, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
$password = $this->getRequestVar('password');
$password = $this->convertEncoding($password, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
$flashiiConfig = parse_ini_file('/www/flashii.net/config/config.ini', true, INI_SCANNER_TYPED);
if (!empty($flashiiConfig['Database'])) {
$dbConfig = $flashiiConfig['Database'];
$flashiiDb = new PDO(
"mysql:unix_socket={$dbConfig['unix_socket']};dbname={$dbConfig['database']}",
$dbConfig['username'],
$dbConfig['password'],
[
PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT,
PDO::ATTR_EMULATE_PREPARES => false,
]
);
$getFlashiiUser = $flashiiDb->prepare('
SELECT `user_id` as `userID`, `username` as `userName`, `display_role` as `userRole`, `password`
FROM `msz_users`
WHERE LOWER(`username`) = LOWER(:username)
');
$getFlashiiUser->bindValue('username', $userName);
$flashiiUser = $getFlashiiUser->execute() ? $getFlashiiUser->fetch(PDO::FETCH_ASSOC) : [];
if (!empty($flashiiUser) && password_verify($password, $flashiiUser['password'])) {
unset($flashiiUser['password']);
// corrections, i'm not going to update the random IDs scattered about
switch ($flashiiUser['userRole']) {
case 2:
$flashiiUser['userRole'] = AJAX_CHAT_MODERATOR;
break;
case 3:
$flashiiUser['userRole'] = AJAX_CHAT_ADMIN;
break;
case 4:
$flashiiUser['userRole'] = BOTS;
break;
case 5:
$flashiiUser['userRole'] = AJAX_CHAT_GUEST;
break;
case 6:
case 7:
$flashiiUser['userRole'] = DONATOR;
break;
default:
$flashiiUser['userRole'] = AJAX_CHAT_USER;
}
/*if ($flashiiUser['userID'] === 2) {
$flashiiUser['userRole'] = CMOD;
} else*/if ($flashiiUser['userID'] === 3) {
$flashiiUser['userRole'] = AJAX_CHAT_MODERATOR;
}
return $flashiiUser;
}
}
return null;
} else {
// Guest users:
return $this->getGuestUser();
}
}
// Store the channels the current user has access to
// Make sure channel names don't contain any whitespace
function &getChannels() {
if($this->_channels === null) {
$this->_channels = array();
/*$customUsers = $this->getCustomUsers();
// Get the channels, the user has access to:
if($this->getUserRole() == AJAX_CHAT_GUEST) {
$validChannels = $customUsers[0]['channels'];
} else {
$validChannels = $customUsers[$this->getUserID()]['channels'];
}*/
// Add the valid channels to the channel list (the defaultChannelID is always valid):
foreach($this->getAllChannels() as $key=>$value) {
// Check if we have to limit the available channels:
if($this->getConfig('limitChannelList') && !in_array($value, $this->getConfig('limitChannelList'))) {
continue;
}
//if(in_array($value, $validChannels) || $value == $this->getConfig('defaultChannelID')) {
$this->_channels[$key] = $value;
//}
}
}
return $this->_channels;
}
// Store all existing channels
// Make sure channel names don't contain any whitespace
function &getAllChannels() {
if($this->_allChannels === null) {
// Get all existing channels:
$customChannels = $this->getCustomChannels();
$defaultChannelFound = false;
foreach($customChannels as $key=>$value) {
$forumName = $this->trimChannelName($value);
$this->_allChannels[$forumName] = $key;
if($key == $this->getConfig('defaultChannelID')) {
$defaultChannelFound = true;
}
}
if(!$defaultChannelFound) {
// Add the default channel as first array element to the channel list:
$this->_allChannels = array_merge(
array(
$this->trimChannelName($this->getConfig('defaultChannelName'))=>$this->getConfig('defaultChannelID')
),
$this->_allChannels
);
}
}
return $this->_allChannels;
}
/*function &getCustomUsers() {
global $database;
$userlist = $database->query("SELECT * FROM `accounts`.`flashii_users` WHERE `userrole` != '0'")->fetch_all(MYSQLI_ASSOC);
$users = array();
$users[0] = array();
$users[0]['userRole'] = AJAX_CHAT_GUEST;
$users[0]['userName'] = null;
$users[0]['password'] = null;
$users[0]['channels'] = array(0,1);
foreach($userlist as $user) {
$users[$user['id']] = array();
$users[$user['id']]['userName'] = $user['username'];
$users[$user['id']]['password'] = $user['password'];
switch($user['userrole']) {
// Tenshi
case 7:
$users[$user['id']]['userRole'] = DONATOR;
$users[$user['id']]['channels'] = array(0, 1);
break;
// Chat Moderators
case 6:
$users[$user['id']]['userRole'] = CMOD;
$users[$user['id']]['channels'] = array(0, 1, 2);
break;
// Bots
case 5:
$users[$user['id']]['userRole'] = BOTS;
$users[$user['id']]['channels'] = array(0, 1, 2);
break;
// Developers
case 4:
$users[$user['id']]['userRole'] = PURPLE;
$users[$user['id']]['channels'] = array(0, 1, 2);
break;
// Administrator
case 3:
$users[$user['id']]['userRole'] = AJAX_CHAT_ADMIN;
$users[$user['id']]['channels'] = array(0, 1, 2);
break;
// Site Moderators
case 2:
$users[$user['id']]['userRole'] = AJAX_CHAT_MODERATOR;
$users[$user['id']]['channels'] = array(0, 1, 2);
break;
// Regular Users
case 1:
$users[$user['id']]['userRole'] = AJAX_CHAT_USER;
$users[$user['id']]['channels'] = array(0, 1);
break;
// Unknown and Deactivated Users
case 0:
default:
$users[$user['id']]['userRole'] = AJAX_CHAT_GUEST;
$users[$user['id']]['channels'] = array(0);
}
}
return $users;
}*/
function &getCustomChannels() {
$channels = [
0 => 'Public',
];
/*$result = $this->db->sqlQuery("SELECT * FROM ajax_chat_channels")->_result->fetch_all(MYSQLI_ASSOC);
foreach($result as $channel) {
$channels[$channel['id']] = $channel['name'];
}*/
if($this->isLoggedIn())
$channels[9001] = 'Secret';
return $channels;
}
function parseCustomCommands($text, $textParts) {
switch($textParts[0]) {
case '/afk':
$this->setUserName('<AFK>_' . $this->getUserName());
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
$this->setSessionVar('AwayFromKeyboard', true);
return true;
default:
return false;
}
}
function onNewMessage($text) {
if($this->getSessionVar('AwayFromKeyboard')) {
$this->setUserName(substr($this->getUserName(), 6));
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
$this->setSessionVar('AwayFromKeyboard', false);
}
return true;
}
}

View File

@ -0,0 +1,21 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
class CustomAJAXChatInterface extends CustomAJAXChat {
function initialize() {
// Initialize configuration settings:
$this->initConfig();
// Initialize the DataBase connection:
$this->initDataBaseConnection();
}
}
?>

View File

@ -0,0 +1,25 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
class CustomAJAXChatShoutBox extends CustomAJAXChat {
function initialize() {
// Initialize configuration settings:
$this->initConfig();
}
function getShoutBoxContent() {
$template = new AJAXChatTemplate($this, AJAX_CHAT_PATH.'lib/template/shoutbox.html');
// Return parsed template content:
return $template->getParsedContent();
}
}
?>

239
public/lib/class/satori.php Normal file
View File

@ -0,0 +1,239 @@
<?php
// Configuration
$satoriSetting = array();
$satoriSetting['enabled'] = true;
$satoriSetting['userID'] = 9;
$satoriSetting['userName'] = 'Satori';
$satoriSetting['userRank'] = BOTS;
$satoriSetting['userIP'] = '127.0.0.1';
// Parsing
$satoriParse = strtolower($text);
$satoriParse = preg_replace('/\\[(?:\\/)?(\\w+)(?:=([^<>]*?))?\\]/ms', '', $satoriParse);
$textParts = explode(' ', $satoriParse);
// Random Stuff
$defaultResponseArray = ['What do you want?', 'Kindly fuck off.', 'Don\'t know how to "%s" something.', 'Come again?', 'Satori returned an empty result set (i.e. zero rows).'];
$defaultResponse = sprintf($defaultResponseArray[array_rand($defaultResponseArray)], $textParts[0]);
// Actions
if(preg_match('/^k$/im', $satoriParse)) {
$satoriResp = ['Thank you for your amazing and insightful message. It is truly an honour to have this message in my database. I can\'t thank you more than to say go fuck yourself. You truly touched me... Thank you.'];
}
if(preg_match('/^time to break the chat$/im', $satoriParse)) {
$satoriResp = ['Stay away from me!'];
}
if(preg_match('/^all aboard the sailboat$/im', $satoriParse)) {
$satoriResp = ['Why would we get on something that is about to sink :^)'];
}
// Reactions
if(preg_match('/^satori/im', $textParts[0])) {
switch($satoriInput = preg_replace('/^satori? ?/', '', $satoriParse)) {
case 'version':
$satoriResp = ['[b][color=Red]S[/color][color=Ruby]a[/color][color=Citrine]t[/color][color=Green]o[/color][color=Teal]r[/color][color=Cobalt]i[/color][/b] Version not [b]6[/b]'];
break;
case 'what are you':
$satoriResp = ['I am nice girl for nice chat.', '[img]http://i.imgur.com/NcFitL2.jpg[/img]'];
break;
case 'hi':
$satoriResp = ['sup'];
break;
case 'help':
$satoriResp = ['If you need help with things refer to the [url=http://flashii.net/r/faq]FAQ[/url].', 'If this didn\'t help you don\'t hesitate to ask an active user.'];
break;
case 'why do you exist':
$satoriResp = ['So you have someone to hate. <3'];
break;
case 'suck my dick':
$satoriResp = ['Do you even have one? Can\'t see it.'];
break;
case 'make me admin':
$satoriResp = ['Why the fuck would you WANT admin? It\'s nothing more than extra work for an ugly red username! Look now the colour for deactivated user, that one\'s fucking hot.'];
break;
case 'anime':
$satoriResp = ['Oh god, i wish i could leave this chat but i\'m stuck in here ;__;'];
break;
case 'e':
$satoriResp = ['Do I look like Nasbot or something?'];
break;
case 'meow':
$satoriResp = ['Mewow!'];
break;
case 'puush':
$satoriResp = ['Something you should be using.'];
break;
case 'what is flash\'s password':
case 'what is flashwave\'s password':
case 'what is moka\'s password':
$satoriResp = ['/suicide', 'I do recommend sending it in chat right now.'];
break;
case 'what do you think about snailmush':
case 'what do you like snailmush':
case 'snailmush':
$satoriResp = ['I-it\'s not like I like him or-or any-anything...... ;_;'];
break;
case 'x snailmush':
case 'loves snailmush':
case 'do you love snailmush':
case 'do you love snailmush?':
$satoriResp = ['NO!', '[s]Trigger Kick'];
break;
case 'saibateku':
$satoriResp = ['That place is still up?'];
break;
case 'titanic':
$satoriResp = ['Did you mean Sailboat?'];
break;
case 'did sailboat sink yet':
$satoriResp = ['No but I wish it would. Fuck that place. Seems to be getting pretty close however...'];
break;
case 'malwareup':
$satoriResp = ['Good malware discussion forum.'];
break;
case 'flashii':
$satoriResp = ['Mediocre shithole. 0/10'];
break;
case 'cybernetics':
$satoriResp = ['Did you mean "Saibateku"?'];
break;
case 'nathat':
$satoriResp = ['shut up'];
break;
case 'waifu':
case 'inori aizawa':
case 'internet explorer tan':
$satoriResp = ['Inori Aizawa Is Mai Waifu.', 'Welcome To Mai Web Browser Is Mai Waifu Land!'];
break;
case 'webkit':
case 'safari':
case 'blink':
case 'chrome':
$satoriResp = [':puke::puke::puke:'];
break;
case 'gecko':
case 'trident':
case 'internet explorer':
case 'iexplore':
case 'firefox':
case 'mozilla firefox':
$satoriResp = [':love::love::love:'];
break;
case 'bribob':
case 'bribob4':
$satoriResp = ['Mediocre faggot. 0/10'];
break;
case 'kelopez':
case 'brante':
$satoriResp = ['http://en.wikipedia.org/wiki/Mexican'];
break;
case 'kamil':
case 'rakowski':
case 'kamilrakowski':
$satoriResp = ['http://en.wikipedia.org/wiki/Jews'];
break;
case 'secret':
$satoriResp = ['I\'m not a secret ripoff, what are you talking about?', '[i]My code is better, time to kill yourself![/i]'];
break;
case 'koishi':
$satoriResp = ['Don\'t fuck with Koishi.'];
break;
case ':^)':
$satoriResp = ['8^)'];
break;
case 'nookls':
$satoriResp = ['HOOOOLLLLLYYYYYYYYYYYYY CRAP NOOKLS IS SO AMAZING WOWOWOWOWOWOW HE\'S ACTUALLY ON THIS SITE WORSHIP WORSHIP AMAZING BRILLIANT I LOVE YOU NOOKLS WE ALL LOVE YOU WE LOVE YOU AS MUCH AS FANGIRLS LOVE JUSTIN BIEBER AAAAAAAAHHHHHHHHHHHH THIS IS THE BEST MOMENT!'];
break;
case 'zeniea':
$satoriResp = ['For whatever reason I have the urge to say "This place smells like a catholic church on crack"...'];
break;
case 'zquest':
$satoriResp = ['Good comic 10/10'];
break;
case 'fuck me':
$satoriResp = [':wtf:'];
break;
case 'satori':
$satoriResp = ['Wait, what are you trying to do?'];
break;
case 'satori satori':
$satoriResp = ['Don\'t fucking do this to me...'];
break;
case 'satori satori satori':
$satoriResp = ['[b][i]I\'ll fucking murder you![/i][/b]'];
break;
case 'satori satori satori satori':
$satoriResp = ['no don\'t'];
break;
case 'satori satori satori satori satori':
$satoriResp = ['please don\'t do this to me'];
break;
case 'satori satori satori satori satori satori':
$satoriResp = ['i have a waifu and kids'];
break;
case 'satori satori satori satori satori satori satori':
$satoriResp = ['okay i was kidding about the kids part'];
break;
case 'satori satori satori satori satori satori satori satori':
$satoriResp = ['rip life'];
break;
case 'you are annoying':
case 'please die':
case 'die':
$satoriResp = ['Well I\'m God and you can\'t do shit.'];
break;
case 'misaka-20001':
$satoriResp = ['We\'ll have to move one of these days...', 'The good ol\' Pentium 4 doesn\'t seem to be able to handle shit anymore...'];
break;
case 'how old are you':
case 'how old is flashii':
case 'how old is koishi':
$satoriResp = [date_diff(date_create('2013-01-27 22:14:44 UTC'), date_create(date('Y-m-d H:i:s e')))->format('%y year(s), %m month(s), %d day(s), %H hour(s), %i minute(s) and %s second(s)')];
break;
case 'how old is zeniea':
case 'how old is secret':
$satoriResp = [date_diff(date_create('2011-07-07 00:00:00 UTC'), date_create(date('Y-m-d H:i:s e')))->format('%y year(s), %m month(s), %d day(s), %H hour(s), %i minute(s) and %s second(s)')];
break;
case 'how old is zquest':
$satoriResp = [date_diff(date_create('2013-11-16 00:00:00 UTC'), date_create(date('Y-m-d H:i:s e')))->format('%y year(s), %m month(s), %d day(s), %H hour(s), %i minute(s) and %s second(s)')];
break;
case 'are you broken':
case 'are you broken?':
case 'is flashii broken':
case 'is flashii broken?':
$satoriResp = ['yes'];
break;
default:
$satoriResp = [$defaultResponse];
break;
}
}
// Check if disabled
if(!$satoriSetting['enabled'])
$satoriResp = null;
// Bring the process of sending a message down to one if
if(isset($satoriResp)) {
foreach($satoriResp as $directives => $response) {
if($response == '[s]Trigger Kick') {
$this->logout('Kicked');
} else {
$this->insertCustomMessage(
$satoriSetting['userID'],
$satoriSetting['userName'],
$satoriSetting['userRank'],
$this->getChannel(),
vsprintf($response, $directives),
$satoriSetting['userIP'],
0
);
}
}
}

26
public/lib/classes.php Normal file
View File

@ -0,0 +1,26 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/class/AJAXChat.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatDataBase.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatMySQLDataBase.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatMySQLQuery.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatMySQLiDataBase.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatMySQLiQuery.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatEncoding.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatString.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatFileSystem.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatHTTPHeader.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatLanguage.php');
require(AJAX_CHAT_PATH.'lib/class/AJAXChatTemplate.php');
require(AJAX_CHAT_PATH.'lib/class/CustomAJAXChat.php');
require(AJAX_CHAT_PATH.'lib/class/CustomAJAXChatShoutBox.php');
require(AJAX_CHAT_PATH.'lib/class/CustomAJAXChatInterface.php');
?>

225
public/lib/config.php Normal file
View File

@ -0,0 +1,225 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Define AJAX Chat user roles:
define('DONATOR', 9);
define('DOKURO', 8);
define('BOTS', 7);
define('CMOD', 6);
define('AJAX_CHAT_CHATBOT', 5);
define('PURPLE', 4);
define('AJAX_CHAT_ADMIN', 3);
define('AJAX_CHAT_MODERATOR', 2);
define('AJAX_CHAT_USER', 1);
define('AJAX_CHAT_GUEST', 0);
// AJAX Chat config parameters:
$config = array();
// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = 'localhost';
// Database username:
$config['dbConnection']['user'] = 'ajax-chat';
// Database password:
$config['dbConnection']['pass'] = '';
// Database name:
$config['dbConnection']['name'] = 'ajax-chat';
// Database type:
$config['dbConnection']['type'] = null;
// Database link:
$config['dbConnection']['link'] = null;
// Database table names:
$config['dbTableNames'] = array();
$config['dbTableNames']['online'] = 'ajax_chat_online';
$config['dbTableNames']['messages'] = 'ajax_chat_messages';
$config['dbTableNames']['bans'] = 'ajax_chat_bans';
$config['dbTableNames']['invitations'] = 'ajax_chat_invitations';
// Available languages:
$config['langAvailable'] = array('en');
// Default language:
$config['langDefault'] = 'en';
// Language names:
$config['langNames'] = array('en'=>'English');
// Available styles:
$config['styleAvailable'] = array('Mio', 'Legacy', 'Blue', 'Black', 'Nico', 'Halext', 'White', 'Terminal');
// Default style:
$config['styleDefault'] = 'Black';
// The encoding used for the XHTML content:
$config['contentEncoding'] = 'UTF-8';
// The encoding of the data source, like userNames and channelNames:
$config['sourceEncoding'] = 'UTF-8';
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = null;
// Session name used to identify the session cookie:
$config['sessionName'] = 'fii_chat';
// Prefix added to every session key:
$config['sessionKeyPrefix'] = 'fii_chat';
// The lifetime of the language, style and setting cookies in days:
$config['sessionCookieLifeTime'] = 365;
// The path of the cookies, '/' allows to read the cookies from all directories:
$config['sessionCookiePath'] = '/';
// The domain of the cookies, defaults to the hostname of the server if set to null:
$config['sessionCookieDomain'] = null;
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
$config['sessionCookieSecure'] = null;
// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;
// UserID plus this value are private channels (this is also the max userID and max channelID):
$config['privateChannelDiff'] = 500000000;
// UserID plus this value are used for private messages:
$config['privateMessageDiff'] = 1000000000;
// Enable/Disable private Channels:
$config['allowPrivateChannels'] = true;
// Enable/Disable private Messages:
$config['allowPrivateMessages'] = true;
// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['privateChannelPrefix'] = '[';
// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['privateChannelSuffix'] = ']';
// If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated:
$config['forceAutoLogin'] = false;
// Defines if login/logout and channel enter/leave are displayed:
$config['showChannelMessages'] = true;
// If enabled, the chat will only be accessible for the admin:
$config['chatClosed'] = false;
// Defines the timezone offset in seconds (-12*60*60 to 12*60*60) - if null, the server timezone is used:
$config['timeZoneOffset'] = null;
// Defines the hour of the day the chat is opened (0 - closingHour):
$config['openingHour'] = 0;
// Defines the hour of the day the chat is closed (openingHour - 24):
$config['closingHour'] = 24;
// Defines the weekdays the chat is opened (0=Sunday to 6=Saturday):
$config['openingWeekDays'] = array(0,1,2,3,4,5,6);
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserPrefix'] = '[';
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserSuffix'] = ']';
// Guest userIDs may not be lower than this value (and not higher than privateChannelDiff):
$config['minGuestUserID'] = 400000000;
// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickPrefix'] = '~';
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickSuffix'] = '';
// Allow/Disallow registered users to delete their own messages:
$config['allowUserMessageDelete'] = false;
// The userID used for Koishi messages:
$config['chatBotID'] = 2147483647;
// The userName used for Koishi messages
$config['chatBotName'] = 'Hanyuu';
// The userID used for Satori messages:
$config['satoriID'] = 2147483646;
// The userName used for Satori messages
$config['satoriName'] = 'Satori';
// The userID used for Dokuro messages:
$config['dokuroID'] = 2147483647;
// The userName used for Dokuro messages
$config['dokuroName'] = 'Dokuro';
// The userID used for Koishi messages:
$config['koishiID'] = 2147483647;
// The userName used for Koishi messages
$config['koishiName'] = 'Koishi';
// The userID used for Railgun messages:
$config['railgunID'] = 2147483646;
// The userName used for Railgun messages
$config['railgunName'] = 'Railgun';
// The userID used for Snailmush messages:
$config['snailID'] = 2147483646;
// The userName used for Snailmush messages
$config['snailName'] = 'Koishi';
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 3;
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;
// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
// Max users in chat (does not affect moderators or admins):
$config['maxUsersLoggedIn'] = 100;
// Max userName length:
$config['userNameMaxLength'] = 30;
// Max messageText length:
$config['messageTextMaxLength'] = 2000;
// Defines the max number of messages a user may send per minute:
$config['maxMessageRate'] = 20;
// Defines the default time in minutes a user gets banned if kicked from a moderator without ban minutes parameter:
$config['defaultBanTime'] = 10;
// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = './';
// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = false;
// Defines the max time difference in hours for logs when no period or search condition is given:
$config['logsRequestMessagesTimeDiff'] = 1;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;
// Defines the earliest year used for the logs selection:
$config['logsFirstYear'] = 2013;
// Defines if old messages are purged from the database:
$config['logsPurgeLogs'] = false;
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 1;
// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = false;
// Defines a list of channels (e.g. array(0, 1)) to limit the logs access for registered users, includes all channels the user has access to if set to null:
$config['logsUserAccessChannelList'] = null;
// Defines if the socket server is enabled:
$config['socketServerEnabled'] = false;
// Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null):
$config['socketServerHost'] = null;
// Defines the IP of the socket server used to connect from server side to broadcast update messages:
$config['socketServerIP'] = '127.0.0.1';
// Defines the port of the socket server:
$config['socketServerPort'] = 1935;
// This ID can be used to distinguish between different chat installations using the same socket server:
$config['socketServerChatID'] = 69;

11
public/lib/custom.php Normal file
View File

@ -0,0 +1,11 @@
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// Include custom libraries and initialization code here
?>

120
public/lib/lang/en.php Normal file
View File

@ -0,0 +1,120 @@
<?php
$lang = array();
$lang['title'] = 'Flashii Chat';
$lang['titleinchat'] = 'Flashii Chat Legacy';
$lang['userName'] = 'Username';
$lang['password'] = 'Password';
$lang['login'] = 'Login';
$lang['logout'] = 'Logout';
$lang['mobile'] = 'Mobile';
$lang['desktop'] = 'Desktop';
$lang['channel'] = 'Channel';
$lang['style'] = 'Style';
$lang['language'] = 'Language';
$lang['inputLineBreak'] = 'Press SHIFT+ENTER to input a line break';
$lang['messageSubmit'] = 'Send';
$lang['registeredUsers'] = 'Log in with your Flashii credentials, this chat is entirely unregulated so enter at your own risk.';
$lang['onlineUsers'] = 'Online users';
$lang['toggleAutoScroll'] = 'Autoscroll on/off';
$lang['toggleAudio'] = 'Sound on/off';
$lang['toggleHelp'] = 'Show/hide help';
$lang['toggleSettings'] = 'Show/hide settings';
$lang['toggleOnlineList'] = 'Show/hide online list';
$lang['bbCodeLabelBold'] = 'b';
$lang['bbCodeLabelItalic'] = 'i';
$lang['bbCodeLabelUnderline'] = 'u';
$lang['bbCodeLabelQuote'] = 'Quote';
$lang['bbCodeLabelCode'] = 'Code';
$lang['bbCodeLabelURL'] = 'URL';
$lang['bbCodeLabelImg'] = 'Image';
$lang['bbCodeLabelColor'] = 'Colour';
$lang['bbCodeTitleBold'] = 'Bold text: [b]text[/b]';
$lang['bbCodeTitleItalic'] = 'Italic text: [i]text[/i]';
$lang['bbCodeTitleUnderline'] = 'Underline text: [u]text[/u]';
$lang['bbCodeTitleQuote'] = 'Quote text: [quote]text[/quote] or [quote=author]text[/quote]';
$lang['bbCodeTitleCode'] = 'Code display: [code]code[/code]';
$lang['bbCodeTitleURL'] = 'Insert URL: [url]http://example.org[/url] or [url=http://example.org]text[/url]';
$lang['bbCodeTitleImg'] = 'Insert image: [img]http://example.org/image.jpg[/img]';
$lang['bbCodeTitleColor'] = 'Font Colour: [color=red]text[/color]';
$lang['help'] = 'Help';
$lang['helpItemDescJoin'] = 'Join a channel:';
$lang['helpItemCodeJoin'] = '/join Channelname';
$lang['helpItemDescJoinCreate'] = 'Create a private room (Registered users only):';
$lang['helpItemCodeJoinCreate'] = '/join';
$lang['helpItemDescInvite'] = 'Invite someone (e.g. to a private room):';
$lang['helpItemCodeInvite'] = '/invite Username';
$lang['helpItemDescUninvite'] = 'Revoke invitation:';
$lang['helpItemCodeUninvite'] = '/uninvite Username';
$lang['helpItemDescLogout'] = 'Logout from Chat:';
$lang['helpItemCodeLogout'] = '/quit';
$lang['helpItemDescPrivateMessage'] = 'Private message:';
$lang['helpItemCodePrivateMessage'] = '/msg Username Text';
$lang['helpItemDescQueryOpen'] = 'Open a private channel:';
$lang['helpItemCodeQueryOpen'] = '/query Username';
$lang['helpItemDescQueryClose'] = 'Close a private channel:';
$lang['helpItemCodeQueryClose'] = '/query';
$lang['helpItemDescAction'] = 'Describe action:';
$lang['helpItemCodeAction'] = '/action Text';
$lang['helpItemDescDescribe'] = 'Describe action in private message:';
$lang['helpItemCodeDescribe'] = '/describe Username Text';
$lang['helpItemDescIgnore'] = 'Ignore/accept messages from user:';
$lang['helpItemCodeIgnore'] = '/ignore Username';
$lang['helpItemDescIgnoreList'] = 'List ignored users:';
$lang['helpItemCodeIgnoreList'] = '/ignore';
$lang['helpItemDescWhereis'] = 'Display user channel:';
$lang['helpItemCodeWhereis'] = '/whereis Username';
$lang['helpItemDescKick'] = 'Kick a user (Moderators only):';
$lang['helpItemCodeKick'] = '/kick Username [Minutes banned]';
$lang['helpItemDescUnban'] = 'Unban a user (Moderators only):';
$lang['helpItemCodeUnban'] = '/unban Username';
$lang['helpItemDescBans'] = 'List banned users (Moderators only):';
$lang['helpItemCodeBans'] = '/bans';
$lang['helpItemDescWhois'] = 'Display user IP (Moderators only):';
$lang['helpItemCodeWhois'] = '/whois Username';
$lang['helpItemDescWho'] = 'List online users:';
$lang['helpItemCodeWho'] = '/who [Channelname]';
$lang['helpItemDescList'] = 'List available channels:';
$lang['helpItemCodeList'] = '/list';
$lang['helpItemDescRoll'] = 'Roll dice:';
$lang['helpItemCodeRoll'] = '/roll [number]d[sides]';
$lang['helpItemDescNick'] = 'Change username:';
$lang['helpItemCodeNick'] = '/nick Username';
$lang['settings'] = 'Settings';
$lang['settingsBBCode'] = 'Enable BBCode:';
$lang['settingsBBCodeImages'] = 'Enable image BBCode:';
$lang['settingsBBCodeColors'] = 'Enable font color BBCode:';
$lang['settingsHyperLinks'] = 'Enable hyperlinks:';
$lang['settingsLineBreaks'] = 'Enable line breaks:';
$lang['settingsEmoticons'] = 'Enable emoticons:';
$lang['settingsAutoFocus'] = 'Automatically set the focus on the input field:';
$lang['settingsMaxMessages'] = 'Maximum number of messages in the chatlist:';
$lang['settingsWordWrap'] = 'Enable wrapping of long words:';
$lang['settingsMaxWordLength'] = 'Maximum length of a word before it gets wrapped:';
$lang['settingsDateFormat'] = 'Format of date and time display:';
$lang['settingsPersistFontColor'] = 'Persist font color:';
$lang['settingsAudioVolume'] = 'Sound Volume:';
$lang['settingsSoundReceive'] = 'Sound for incoming messages:';
$lang['settingsSoundSend'] = 'Sound for outgoing messages:';
$lang['settingsSoundEnter'] = 'Sound for login and channel enter messages:';
$lang['settingsSoundLeave'] = 'Sound for logout and channel leave messages:';
$lang['settingsSoundChatBot'] = 'Sound for chatbot messages:';
$lang['settingsSoundError'] = 'Sound for error messages:';
$lang['settingsSoundPrivate'] = 'Sound for private messages:';
$lang['settingsBlink'] = 'Blink window title on new messages:';
$lang['settingsBlinkInterval'] = 'Blink interval in milliseconds:';
$lang['settingsBlinkIntervalNumber'] = 'Number of blink intervals:';
$lang['playSelectedSound'] = 'Play selected sound';
$lang['requiresJavaScript'] = 'Please enable JavaScript or use a compatible browser.';
$lang['errorInvalidUser'] = 'Invalid username or password.';
$lang['errorUserInUse'] = 'Username in use.';
//$lang['errorBanned'] = 'You are banned ;_;';
$lang['errorBanned'] = 'You have been kicked from this chatroom.';
$lang['errorMaxUsersLoggedIn'] = 'The chat has reached the maximum number of logged-in users.';
//$lang['errorChatClosed'] = 'It started with a call I stupidly answered You said you got my number from one of the dancers You waited right outside, you had something on mind But then I saw your eyes, your crazy eyes Now you got me into something very sick and twisted An evil kind of game I didn\'t know existed You traveled overseas to terrorize me And I don\'t understand, why can\'t you let me be? Believe me when I say, you stupid fool! You\'re scaring me to death, that\'s not cool! Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone! I beg of you to stop and think this through It\'s time you started playing with someone new Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone! You\'re scaring mom and dad, scaring off my girlfriend You\'re waiting by my door early in the morning I\'ve told you many times, don\'t follow me at night You\'re poisoning in my life, just tell me why! Believe me when I say, you stupid fool! You\'re scaring me to death, that\'s not cool! Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone! I beg of you to stop and think this through It\'s time you started playing with someone new Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone! Believe me when I say, you stupid fool! You\'re scaring me to death, that\'s not cool! Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone! I beg of you to stop and think this through It\'s time you started playing with someone new Why won\'t you leave me alone? Just leave me alone! You\'re crazy, leave me alone!';
$lang['errorChatClosed'] = 'Site maintenance';
$lang['logsTitle'] = 'The Evil Circle';
$lang['logsDate'] = 'Date';
$lang['logsTime'] = 'Time';
$lang['logsSearch'] = 'Search';
$lang['logsPrivateChannels'] = 'Private Channels';
$lang['logsPrivateMessages'] = 'Private Messages';

View File

@ -0,0 +1,7 @@
<?php
$meow[1] = 'original quote';
$meow[2] = 'mewow';
$meow[3] = 'meow';
$meow[4] = 'very original quote';
$mewow = mt_rand(1, 4);

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG] // Banned</title>
<link rel="shortcut icon" href="http://flashii.net/favicon.ico" />
<style type="text/css">
body {
padding:0;
margin:0;
background:black;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/topmenu.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="loginContent">
<div id="loginHeadlineContainer">
<h1>[LANG]title[/LANG] // Banned</h1>
</div>
<div id="loginFormContainer">
<div style="color:red;">Your IP is banned from accessing this Chat.</div>
</div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
</body>
</html>

View File

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG]</title>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
@font-face {
font-family: Gothic;
src: url('../images/gothic.woff');
}
body {
padding:0;
margin:0;
}
a {
color: #FFF;
}
div.toplogo {
font-size: 30px;
background-image: linear-gradient(180deg, #190015/*#2F426C#FF2400*/, transparent);
padding-left: 10px;
padding-right: 10px;
font-family: "Century Gothic", Gothic, sans-serif;
position: fixed;
width: 100%;
z-index: 5;
}
div.toplogo a {
text-decoration: none;
}
div.topmenu {
float: right;
padding-right: 16px;
z-index: 6;
}
div.menu {
float: right;
text-align: right;
padding-right: 16px;
}
div.menu a {
color: #FFFFFF;
text-decoration: none;
transition: color 0.4s ease-in 0s, text-shadow 0.4s ease-in 0s;
}
div.menu a:hover {
text-shadow: 0px 0px 8px #F1F1F1;
}
div.menu a:active {
text-shadow: 0px 0px 8px #0042FF;
}
div.topmenu a {
color: #FFFFFF;
text-decoration: none;
transition: color 0.4s ease-in 0s, text-shadow 0.4s ease-in 0s, background-image 0.4s ease-in 0s;
z-index: 6;
}
div.topmenu a:hover {
text-shadow: 0px 0px 8px #F1F1F1;
background-image: linear-gradient(to bottom, #8800BB, transparent);
}
div.topmenu a:active {
text-shadow: 0px 0px 8px #0042FF;
background-image: linear-gradient(to bottom, #440077, transparent);
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie5-6.css" />
<![endif]-->
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div class="toplogo">
<span style="text-shadow: 0px 0px 8px #F1F1F1;"><a href="http://flashii.net/">Flashii</a></span>
<div class="topmenu">
<a href="https://flashii.net/">&nbsp;Home&nbsp;</a>
<a href="https://flashii.net/news.php">&nbsp;News&nbsp;</a>
<a href="./">&nbsp;Chat&nbsp;</a>
<a href="https://flashii.net/members.php">&nbsp;Members&nbsp;</a>
<a href="https://flashii.net/donate.php">&nbsp;Donate&nbsp;</a>
<a href="https://status.flashii.net/">&nbsp;Status&nbsp;</a>
</div>
</div>
<div id="loginContent">
<div id="loginHeadlineContainer">
<h1>[LANG]title[/LANG]</h1>
</div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div id="loginFormContainer">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<div><label for="userNameField">[LANG]userName[/LANG]:</label><br />
<input type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]"/></div>
<div><label for="passwordField">[LANG]password[/LANG]*:</label><br />
<input type="password" name="password" id="passwordField"/></div>
<div><label for="channelField">[LANG]channel[/LANG]:</label><br />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select></div>
<div><label for="languageSelection">[LANG]language[/LANG]:</label><br />
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select></div>
<div><input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/></div>
<div id="loginRegisteredUsers">* [LANG]registeredUsers[/LANG]</div>
</div>
</form>
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><div>[LANG]requiresJavaScript[/LANG]</div></noscript></div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright">
[SANDSTORM/]
<div><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
<div>
Copyright &copy; 2013-2014 <a href="http://flash.moe/" target="_blank">Flashii Media</a><br />
<a href="https://flashii.net/forum">Feedback</a> |
<a href="https://flashii.net/changelog.php">Changelog</a> |
<a href="https://flashii.net/info.php/rules">Rules &amp; Info</a> |
<a href="https://flashii.net/info.php/terms">Terms of Service</a> |
<a href="https://flashii.net/info.php/contact">Contact</a> |
<a href="https://test.flashii.net">DevSite</a> |
<a href="./">Classic Login</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,393 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>[LANG]title[/LANG]</title>
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie5-6.css"/>
<script type="text/javascript">
var isIElt7 = true;
</script>
<![endif]-->
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function toggleContainer(containerID, hideContainerIDs) {
if(hideContainerIDs) {
for(var i=0; i<hideContainerIDs.length; i++) {
ajaxChat.showHide(hideContainerIDs[i], 'none');
}
}
ajaxChat.showHide(containerID);
if(typeof arguments.callee.styleProperty == 'undefined') {
if(typeof isIElt7 != 'undefined') {
arguments.callee.styleProperty = 'marginRight';
} else {
arguments.callee.styleProperty = 'right';
}
}
var containerWidth = document.getElementById(containerID).offsetWidth;
if(containerWidth) {
document.getElementById('chatList').style[arguments.callee.styleProperty] = (containerWidth+28)+'px';
} else {
document.getElementById('chatList').style[arguments.callee.styleProperty] = '20px';
}
}
function initialize() {
ajaxChat.updateButton('audio', 'audioButton');
ajaxChat.updateButton('autoScroll', 'autoScrollButton');
document.getElementById('bbCodeSetting').checked = ajaxChat.getSetting('bbCode');
document.getElementById('bbCodeImagesSetting').checked = ajaxChat.getSetting('bbCodeImages');
document.getElementById('bbCodeColorsSetting').checked = ajaxChat.getSetting('bbCodeColors');
document.getElementById('hyperLinksSetting').checked = ajaxChat.getSetting('hyperLinks');
document.getElementById('lineBreaksSetting').checked = ajaxChat.getSetting('lineBreaks');
document.getElementById('emoticonsSetting').checked = ajaxChat.getSetting('emoticons');
document.getElementById('autoFocusSetting').checked = ajaxChat.getSetting('autoFocus');
document.getElementById('maxMessagesSetting').value = ajaxChat.getSetting('maxMessages');
document.getElementById('maxWordLengthSetting').value = ajaxChat.getSetting('maxWordLength');
document.getElementById('dateFormatSetting').value = ajaxChat.getSetting('dateFormat');
document.getElementById('persistFontColorSetting').checked = ajaxChat.getSetting('persistFontColor');
for(var i=0; i<document.getElementById('audioVolumeSetting').options.length; i++) {
if(document.getElementById('audioVolumeSetting').options[i].value == ajaxChat.getSetting('audioVolume')) {
document.getElementById('audioVolumeSetting').options[i].selected = true;
break;
}
}
ajaxChat.fillSoundSelection('soundReceiveSetting', ajaxChat.getSetting('soundReceive'));
ajaxChat.fillSoundSelection('soundSendSetting', ajaxChat.getSetting('soundSend'));
ajaxChat.fillSoundSelection('soundEnterSetting', ajaxChat.getSetting('soundEnter'));
ajaxChat.fillSoundSelection('soundLeaveSetting', ajaxChat.getSetting('soundLeave'));
ajaxChat.fillSoundSelection('soundChatBotSetting', ajaxChat.getSetting('soundChatBot'));
ajaxChat.fillSoundSelection('soundErrorSetting', ajaxChat.getSetting('soundError'));
ajaxChat.fillSoundSelection('soundPrivateSetting', ajaxChat.getSetting('soundPrivate'));
document.getElementById('blinkSetting').checked = ajaxChat.getSetting('blink');
document.getElementById('blinkIntervalSetting').value = ajaxChat.getSetting('blinkInterval');
document.getElementById('blinkIntervalNumberSetting').value = ajaxChat.getSetting('blinkIntervalNumber');
}
ajaxChatConfig.loginChannelID = parseInt('[LOGIN_CHANNEL_ID/]');
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChatConfig.chatBotName = decodeURIComponent('[CHAT_BOT_NAME/]');
ajaxChatConfig.chatBotID = '[CHAT_BOT_ID/]';
ajaxChatConfig.allowUserMessageDelete = parseInt('[ALLOW_USER_MESSAGE_DELETE/]');
ajaxChatConfig.inactiveTimeout = parseInt('[INACTIVE_TIMEOUT/]');
ajaxChatConfig.privateChannelDiff = parseInt('[PRIVATE_CHANNEL_DIFF/]');
ajaxChatConfig.privateMessageDiff = parseInt('[PRIVATE_MESSAGE_DIFF/]');
ajaxChatConfig.showChannelMessages = parseInt('[SHOW_CHANNEL_MESSAGES/]');
ajaxChatConfig.messageTextMaxLength = parseInt('[MESSAGE_TEXT_MAX_LENGTH/]');
ajaxChatConfig.socketServerEnabled = parseInt('[SOCKET_SERVER_ENABLED/]');
ajaxChatConfig.socketServerHost = decodeURIComponent('[SOCKET_SERVER_HOST/]');
ajaxChatConfig.socketServerPort = parseInt('[SOCKET_SERVER_PORT/]');
ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
// ]]>
</script>
<audio id="soundHandler"></audio>
</head>
<body>
<div id="content">
<div id="headlineContainer">
<h1>[LANG]titleinchat[/LANG]</h1>
</div>
<div id="logoutChannelContainer">
<input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<input type="button" id="mobileButton" value="Mobile" onclick="window.location.assign('?view=mobile');"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
</div>
<div id="statusIconContainer" class="statusContainerOn" onclick="ajaxChat.updateChat(null);"></div>
<!--[if lt IE 7]>
<div></div>
<![endif]-->
<div id="chatList"></div>
<div id="inputFieldContainer">
<textarea id="inputField" rows="1" cols="50" title="[LANG]inputLineBreak[/LANG]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" onkeyup="ajaxChat.handleInputFieldKeyUp(event);"></textarea>
</div>
<div id="submitButtonContainer">
<span id="messageLengthCounter">0/[MESSAGE_TEXT_MAX_LENGTH/]</span>
<input type="button" id="submitButton" value="[LANG]messageSubmit[/LANG]" onclick="ajaxChat.sendMessage();"/>
</div>
<div id="emoticonsContainer" dir="ltr"></div>
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="[LANG]bbCodeLabelImg[/LANG]" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>
<input type="button" value="[LANG]bbCodeLabelColor[/LANG]" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('colorCodesContainer', null);"/>
</div>
<div id="colorCodesContainer" style="display:none;" dir="ltr"></div>
<div id="optionsContainer">
<input type="image" src="images/pixel.png" class="button" id="helpButton" alt="[LANG]toggleHelp[/LANG]" title="[LANG]toggleHelp[/LANG]" onclick="toggleContainer('helpContainer', new Array('onlineListContainer','settingsContainer'));"/>
<input type="image" src="images/pixel.png" class="button" id="settingsButton" alt="[LANG]toggleSettings[/LANG]" title="[LANG]toggleSettings[/LANG]" onclick="toggleContainer('settingsContainer', new Array('onlineListContainer','helpContainer'));"/>
<input type="image" src="images/pixel.png" class="button" id="onlineListButton" alt="[LANG]toggleOnlineList[/LANG]" title="[LANG]toggleOnlineList[/LANG]" onclick="toggleContainer('onlineListContainer', new Array('settingsContainer','helpContainer'));"/>
<input type="image" src="images/pixel.png" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>
<input type="image" src="images/pixel.png" class="button" id="autoScrollButton" alt="[LANG]toggleAutoScroll[/LANG]" title="[LANG]toggleAutoScroll[/LANG]" onclick="ajaxChat.toggleSetting('autoScroll', 'autoScrollButton');"/>
</div>
<div id="onlineListContainer">
<h3>[LANG]onlineUsers[/LANG]</h3>
<div id="onlineList"></div>
</div>
<div id="helpContainer" style="display:none;">
<h3>[LANG]help[/LANG]</h3>
<div id="helpList">
<table>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescJoin[/LANG]</td>
<td class="code">[LANG]helpItemCodeJoin[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescJoinCreate[/LANG]</td>
<td class="code">[LANG]helpItemCodeJoinCreate[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescInvite[/LANG]</td>
<td class="code">[LANG]helpItemCodeInvite[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescUninvite[/LANG]</td>
<td class="code">[LANG]helpItemCodeUninvite[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescLogout[/LANG]</td>
<td class="code">[LANG]helpItemCodeLogout[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescPrivateMessage[/LANG]</td>
<td class="code">[LANG]helpItemCodePrivateMessage[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescQueryOpen[/LANG]</td>
<td class="code">[LANG]helpItemCodeQueryOpen[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescQueryClose[/LANG]</td>
<td class="code">[LANG]helpItemCodeQueryClose[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescAction[/LANG]</td>
<td class="code">[LANG]helpItemCodeAction[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescDescribe[/LANG]</td>
<td class="code">[LANG]helpItemCodeDescribe[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescIgnore[/LANG]</td>
<td class="code">[LANG]helpItemCodeIgnore[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescIgnoreList[/LANG]</td>
<td class="code">[LANG]helpItemCodeIgnoreList[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescWhereis[/LANG]</td>
<td class="code">[LANG]helpItemCodeWhereis[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescKick[/LANG]</td>
<td class="code">[LANG]helpItemCodeKick[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescUnban[/LANG]</td>
<td class="code">[LANG]helpItemCodeUnban[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescBans[/LANG]</td>
<td class="code">[LANG]helpItemCodeBans[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescWhois[/LANG]</td>
<td class="code">[LANG]helpItemCodeWhois[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescWho[/LANG]</td>
<td class="code">[LANG]helpItemCodeWho[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescList[/LANG]</td>
<td class="code">[LANG]helpItemCodeList[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescRoll[/LANG]</td>
<td class="code">[LANG]helpItemCodeRoll[/LANG]</td>
</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescNick[/LANG]</td>
<td class="code">[LANG]helpItemCodeNick[/LANG]</td>
</tr>
</table>
</div>
</div>
<div id="settingsContainer" style="display:none;">
<h3>[LANG]settings[/LANG]</h3>
<div id="settingsList">
<table>
<tr class="rowOdd">
<td><label for="bbCodeSetting">[LANG]settingsBBCode[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeSetting" onclick="ajaxChat.setSetting('bbCode', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="bbCodeImagesSetting">[LANG]settingsBBCodeImages[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeImagesSetting" onclick="ajaxChat.setSetting('bbCodeImages', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="bbCodeColorsSetting">[LANG]settingsBBCodeColors[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeColorsSetting" onclick="ajaxChat.setSetting('bbCodeColors', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="hyperLinksSetting">[LANG]settingsHyperLinks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="hyperLinksSetting" onclick="ajaxChat.setSetting('hyperLinks', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="lineBreaksSetting">[LANG]settingsLineBreaks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="lineBreaksSetting" onclick="ajaxChat.setSetting('lineBreaks', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="emoticonsSetting">[LANG]settingsEmoticons[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="emoticonsSetting" onclick="ajaxChat.setSetting('emoticons', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="autoFocusSetting">[LANG]settingsAutoFocus[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="autoFocusSetting" onclick="ajaxChat.setSetting('autoFocus', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="maxMessagesSetting">[LANG]settingsMaxMessages[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="maxMessagesSetting" onchange="ajaxChat.setSetting('maxMessages', parseInt(this.value));"/></td>
</tr>
<tr class="rowOdd">
<td><label for="maxWordLengthSetting">[LANG]settingsMaxWordLength[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="maxWordLengthSetting" onchange="ajaxChat.setSetting('maxWordLength', parseInt(this.value));"/></td>
</tr>
<tr class="rowEven">
<td><label for="dateFormatSetting">[LANG]settingsDateFormat[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="dateFormatSetting" onchange="ajaxChat.setSetting('dateFormat', this.value);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="persistFontColorSetting">[LANG]settingsPersistFontColor[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="persistFontColorSetting" onclick="ajaxChat.setPersistFontColor(this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="audioVolumeSetting">[LANG]settingsAudioVolume[/LANG]</label></td>
<td class="setting">
<select class="left" id="audioVolumeSetting" onchange="ajaxChat.setAudioVolume(this.options[this.selectedIndex].value);">
<option value="1.0">100 %</option>
<option value="0.9">90 %</option>
<option value="0.8">80 %</option>
<option value="0.7">70 %</option>
<option value="0.6">60 %</option>
<option value="0.5">50 %</option>
<option value="0.4">40 %</option>
<option value="0.3">30 %</option>
<option value="0.2">20 %</option>
<option value="0.1">10 %</option>
</select>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundReceiveSetting">[LANG]settingsSoundReceive[/LANG]</label></td>
<td class="setting">
<select id="soundReceiveSetting" onchange="ajaxChat.setSetting('soundReceive', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundSendSetting">[LANG]settingsSoundSend[/LANG]</label></td>
<td class="setting">
<select id="soundSendSetting" onchange="ajaxChat.setSetting('soundSend', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundEnterSetting">[LANG]settingsSoundEnter[/LANG]</label></td>
<td class="setting">
<select id="soundEnterSetting" onchange="ajaxChat.setSetting('soundEnter', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundLeaveSetting">[LANG]settingsSoundLeave[/LANG]</label></td>
<td class="setting">
<select id="soundLeaveSetting" onchange="ajaxChat.setSetting('soundLeave', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundChatBotSetting">[LANG]settingsSoundChatBot[/LANG]</label></td>
<td class="setting">
<select id="soundChatBotSetting" onchange="ajaxChat.setSetting('soundChatBot', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundErrorSetting">[LANG]settingsSoundError[/LANG]</label></td>
<td class="setting">
<select id="soundErrorSetting" onchange="ajaxChat.setSetting('soundError', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundPrivateSetting">[LANG]settingsSoundPrivate[/LANG]</label></td>
<td class="setting">
<select id="soundPrivateSetting" onchange="ajaxChat.setSetting('soundPrivate', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="blinkSetting">[LANG]settingsBlink[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="blinkSetting" onclick="ajaxChat.setSetting('blink', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="blinkIntervalSetting">[LANG]settingsBlinkInterval[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="blinkIntervalSetting" onchange="ajaxChat.setSetting('blinkInterval', parseInt(this.value));"/></td>
</tr>
<tr class="rowEven">
<td><label for="blinkIntervalNumberSetting">[LANG]settingsBlinkIntervalNumber[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="blinkIntervalNumberSetting" onchange="ajaxChat.setSetting('blinkIntervalNumber', parseInt(this.value));"/></td>
</tr>
</table>
</div>
</div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="https://blueimp.net/ajax/" target="_blank">AJAX Chat</a> + <a href="http://flashii.net/" target="_blank">Flashii</a></div>
</div>
<div id="flashInterfaceContainer"></div>
</body>
</html>

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta charset="utf-8" />
<title>Flashii - Chat</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/mio.css" />
<style>
.spoiler{
background: black;
}
.spoiler:hover{
background: #FBEEFF !important;
}
select,input[type="text"],input[type="password"] {
width: 190px;
}
div.mioboxcontent {
text-align: center;
padding-left: 0px !important;
}
</style>
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<a href="/"><img class="logo" src="images/pixel.png" alt="[LANG]title[/LANG]" /></a><br />
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><h3 class="miotitle">[LANG]requiresJavaScript[/LANG]</h3></noscript></div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div class="mioboards">
<h3 class="miotitle">[LANG]title[/LANG] Login</h3>
<div class="mioboxcontent">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<input type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]" placeholder="[LANG]userName[/LANG]" />
<input type="password" name="password" id="passwordField" placeholder="[LANG]password[/LANG]" />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select>
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
<br />[SANDSTORM/]<br />
</div>
</div>
</form>
<div class="navbar">
[MENU_BAR/]
</div>
[COPYRIGHT/]
</body>
</html>

View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta charset="utf-8" />
<title>Flashii - Chat</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/mio.css" />
<style>
.spoiler{
background: black;
}
.spoiler:hover{
background: #FBEEFF !important;
}
select,input[type="text"],input[type="password"] {
width: 190px;
}
div.mioboxcontent {
text-align: center;
padding-left: 0px !important;
}
</style>
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<a href="http://flashii.net/"><img class="logo" src="images/pixel.png" alt="[LANG]title[/LANG]" /></a><br />
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><h3 class="miotitle">[LANG]requiresJavaScript[/LANG]</h3></noscript></div>
<div class="mioboards">
<h3 class="miotitle">[LANG]title[/LANG] Login</h3>
<div class="mioboxcontent">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<input type="text" id="userNameField" disabled="" style="width: 388px;" placeholder="Click 'login' to login with your Flashii Account" />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select>
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
<br /><br />
</div>
</div>
</form>
<div class="navbar">
</div>
[COPYRIGHT/]
</body>
</html>

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-gb">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>[LANG]title[/LANG]</title>
<link rel="shortcut icon" href="/favicon.ico" />
<!--link rel="stylesheet" type="text/css" href="//cdn.flashii.net/global.css" /-->
<link rel="stylesheet" type="text/css" href="css/chatlogin.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="container">
<div id="content">
<h1>[LANG]title[/LANG]</h1>
<div id="errorContainer">
[ERROR_MESSAGES/]
<noscript>
<h3>[LANG]requiresJavaScript[/LANG]</h3>
</noscript>
</div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<input type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]" placeholder="[LANG]userName[/LANG] (e.g. [CHAT_BOT_NAME/])" />
<input type="password" name="password" id="passwordField" placeholder="[LANG]password[/LANG]" />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select>
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
</form>
<div class="copyright">
&copy;Flashii Media 2013-2014.<br />
Based on <a href="http://blueimp.net/ajax" target="_blank">AJAX Chat</a> by <a href="http://blueimp.net" target="_blank">blueimp</a>.
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,284 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]logsTitle[/LANG]</title>
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie5-6.css"/>
<script type="text/javascript">
var isIElt7 = true;
</script>
<![endif]-->
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/logs.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function toggleContainer(containerID, hideContainerIDs) {
if(hideContainerIDs) {
for(var i=0; i<hideContainerIDs.length; i++) {
ajaxChat.showHide(hideContainerIDs[i], 'none');
}
}
ajaxChat.showHide(containerID);
if(typeof arguments.callee.styleProperty == 'undefined') {
if(typeof isIElt7 != 'undefined') {
arguments.callee.styleProperty = 'marginRight';
} else {
arguments.callee.styleProperty = 'right';
}
}
var containerWidth = document.getElementById(containerID).offsetWidth;
if(containerWidth) {
document.getElementById('chatList').style[arguments.callee.styleProperty] = (containerWidth+28)+'px';
} else {
document.getElementById('chatList').style[arguments.callee.styleProperty] = '20px';
}
}
function initialize() {
toggleContainer('settingsContainer');
ajaxChat.updateButton('audio', 'audioButton');
ajaxChat.updateButton('autoScroll', 'autoScrollButton');
document.getElementById('bbCodeSetting').checked = ajaxChat.getSetting('bbCode');
document.getElementById('hyperLinksSetting').checked = ajaxChat.getSetting('hyperLinks');
document.getElementById('lineBreaksSetting').checked = ajaxChat.getSetting('lineBreaks');
document.getElementById('emoticonsSetting').checked = ajaxChat.getSetting('emoticons');
document.getElementById('autoFocusSetting').checked = ajaxChat.getSetting('autoFocus');
document.getElementById('maxMessagesSetting').value = ajaxChat.getSetting('maxMessages');
document.getElementById('wordWrapSetting').checked = ajaxChat.getSetting('wordWrap');
document.getElementById('maxWordLengthSetting').value = ajaxChat.getSetting('maxWordLength');
document.getElementById('dateFormatSetting').value = ajaxChat.getSetting('dateFormat');
document.getElementById('persistFontColorSetting').checked = ajaxChat.getSetting('persistFontColor');
for(var i=0; i<document.getElementById('audioVolumeSetting').options.length; i++) {
if(document.getElementById('audioVolumeSetting').options[i].value == ajaxChat.getSetting('audioVolume')) {
document.getElementById('audioVolumeSetting').options[i].selected = true;
break;
}
}
ajaxChat.fillSoundSelection('soundReceiveSetting', ajaxChat.getSetting('soundReceive'));
ajaxChat.fillSoundSelection('soundSendSetting', ajaxChat.getSetting('soundSend'));
ajaxChat.fillSoundSelection('soundEnterSetting', ajaxChat.getSetting('soundEnter'));
ajaxChat.fillSoundSelection('soundLeaveSetting', ajaxChat.getSetting('soundLeave'));
ajaxChat.fillSoundSelection('soundChatBotSetting', ajaxChat.getSetting('soundChatBot'));
ajaxChat.fillSoundSelection('soundErrorSetting', ajaxChat.getSetting('soundError'));
ajaxChat.fillSoundSelection('soundPrivateSetting', ajaxChat.getSetting('soundPrivate'));
document.getElementById('blinkSetting').checked = ajaxChat.getSetting('blink');
document.getElementById('blinkIntervalSetting').value = ajaxChat.getSetting('blinkInterval');
document.getElementById('blinkIntervalNumberSetting').value = ajaxChat.getSetting('blinkIntervalNumber');
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChatConfig.chatBotName = decodeURIComponent('[CHAT_BOT_NAME/]');
ajaxChatConfig.chatBotID = '[CHAT_BOT_ID/]';
ajaxChatConfig.allowUserMessageDelete = parseInt('[ALLOW_USER_MESSAGE_DELETE/]');
ajaxChatConfig.inactiveTimeout = parseInt('[INACTIVE_TIMEOUT/]');
ajaxChatConfig.privateChannelDiff = parseInt('[PRIVATE_CHANNEL_DIFF/]');
ajaxChatConfig.privateMessageDiff = parseInt('[PRIVATE_MESSAGE_DIFF/]');
ajaxChatConfig.showChannelMessages = true;
ajaxChatConfig.messageTextMaxLength = parseInt('[MESSAGE_TEXT_MAX_LENGTH/]');
ajaxChatConfig.socketServerEnabled = parseInt('[SOCKET_SERVER_ENABLED/]');
ajaxChatConfig.socketServerHost = decodeURIComponent('[SOCKET_SERVER_HOST/]');
ajaxChatConfig.socketServerPort = parseInt('[SOCKET_SERVER_PORT/]');
ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');
ajaxChatConfig.ajaxURL += '&view=logs';
ajaxChatConfig.domIDs['yearSelection'] = 'yearSelection';
ajaxChatConfig.domIDs['monthSelection'] = 'monthSelection';
ajaxChatConfig.domIDs['daySelection'] = 'daySelection';
ajaxChatConfig.domIDs['hourSelection'] = 'hourSelection';
ajaxChatConfig.settings.dateFormat = '(%Y.%m.%d - %H:%i:%s)';
ajaxChatConfig.settings.audio = false;
ajaxChatConfig.settings.blink = false;
ajaxChatConfig.nonPersistentSettings.push('dateFormat','audio','blink');
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
// ]]>
</script>
</head>
<body>
<div id="content">
<div id="headlineContainer">
<h1>[LANG]logsTitle[/LANG]</h1>
</div>
<div id="logoutChannelContainer">
<input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<input type="button" id="mobileButton" value="Return" onclick="window.location.assign('./');"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.getLogs();">[LOGS_CHANNEL_OPTIONS/]</select>
<label for="yearSelection">[LANG]logsDate[/LANG]:</label>
<select id="yearSelection" onchange="ajaxChat.getLogs();">[LOGS_YEAR_OPTIONS/]</select>
<select id="monthSelection" onchange="ajaxChat.getLogs();">[LOGS_MONTH_OPTIONS/]</select>
<select id="daySelection" onchange="ajaxChat.getLogs();">[LOGS_DAY_OPTIONS/]</select>
<label for="hourSelection">[LANG]logsTime[/LANG]:</label>
<select id="hourSelection" onchange="ajaxChat.getLogs();">[LOGS_HOUR_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
</div>
<!--[if lt IE 7]>
<div></div>
<![endif]-->
<div id="chatList"></div>
<div id="inputFieldContainer">
<textarea id="inputField" rows="1" cols="50" title="[LANG]inputLineBreak[/LANG]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"></textarea>
</div>
<div id="submitButtonContainer">
<input type="button" id="submitButton" value="[LANG]logsSearch[/LANG]" onclick="ajaxChat.sendMessage();"/>
</div>
<div id="optionsContainer">
<input type="image" src="images/pixel.png" class="button" id="settingsButton" alt="[LANG]toggleSettings[/LANG]" title="[LANG]toggleSettings[/LANG]" onclick="toggleContainer('settingsContainer');"/>
<input type="image" src="images/pixel.png" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>
<input type="image" src="images/pixel.png" class="button" id="autoScrollButton" alt="[LANG]toggleAutoScroll[/LANG]" title="[LANG]toggleAutoScroll[/LANG]" onclick="ajaxChat.toggleSetting('autoScroll', 'autoScrollButton')"/>
</div>
<div id="settingsContainer" style="display:none;">
<h3>[LANG]settings[/LANG]</h3>
<div id="settingsList">
<table>
<tr class="rowOdd">
<td><label for="bbCodeSetting">[LANG]settingsBBCode[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeSetting" onclick="ajaxChat.setSetting('bbCode', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="hyperLinksSetting">[LANG]settingsHyperLinks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="hyperLinksSetting" onclick="ajaxChat.setSetting('hyperLinks', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="lineBreaksSetting">[LANG]settingsLineBreaks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="lineBreaksSetting" onclick="ajaxChat.setSetting('lineBreaks', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="emoticonsSetting">[LANG]settingsEmoticons[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="emoticonsSetting" onclick="ajaxChat.setSetting('emoticons', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="autoFocusSetting">[LANG]settingsAutoFocus[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="autoFocusSetting" onclick="ajaxChat.setSetting('autoFocus', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="maxMessagesSetting">[LANG]settingsMaxMessages[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="maxMessagesSetting" onchange="ajaxChat.setSetting('maxMessages', parseInt(this.value));"/></td>
</tr>
<tr class="rowOdd">
<td><label for="wordWrapSetting">[LANG]settingsWordWrap[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="wordWrapSetting" onclick="ajaxChat.setSetting('wordWrap', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="maxWordLengthSetting">[LANG]settingsMaxWordLength[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="maxWordLengthSetting" onchange="ajaxChat.setSetting('maxWordLength', parseInt(this.value));"/></td>
</tr>
<tr class="rowOdd">
<td><label for="dateFormatSetting">[LANG]settingsDateFormat[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="dateFormatSetting" onchange="ajaxChat.setSetting('dateFormat', this.value);"/></td>
</tr>
<tr class="rowEven">
<td><label for="persistFontColorSetting">[LANG]settingsPersistFontColor[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="persistFontColorSetting" onclick="ajaxChat.setPersistFontColor(this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="audioVolumeSetting">[LANG]settingsAudioVolume[/LANG]</label></td>
<td class="setting">
<select class="left" id="audioVolumeSetting" onchange="ajaxChat.setAudioVolume(this.options[this.selectedIndex].value);">
<option value="1.0">100 %</option>
<option value="0.9">90 %</option>
<option value="0.8">80 %</option>
<option value="0.7">70 %</option>
<option value="0.6">60 %</option>
<option value="0.5">50 %</option>
<option value="0.4">40 %</option>
<option value="0.3">30 %</option>
<option value="0.2">20 %</option>
<option value="0.1">10 %</option>
</select>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundReceiveSetting">[LANG]settingsSoundReceive[/LANG]</label></td>
<td class="setting">
<select id="soundReceiveSetting" onchange="ajaxChat.setSetting('soundReceive', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundSendSetting">[LANG]settingsSoundSend[/LANG]</label></td>
<td class="setting">
<select id="soundSendSetting" onchange="ajaxChat.setSetting('soundSend', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundEnterSetting">[LANG]settingsSoundEnter[/LANG]</label></td>
<td class="setting">
<select id="soundEnterSetting" onchange="ajaxChat.setSetting('soundEnter', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundLeaveSetting">[LANG]settingsSoundLeave[/LANG]</label></td>
<td class="setting">
<select id="soundLeaveSetting" onchange="ajaxChat.setSetting('soundLeave', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundChatBotSetting">[LANG]settingsSoundChatBot[/LANG]</label></td>
<td class="setting">
<select id="soundChatBotSetting" onchange="ajaxChat.setSetting('soundChatBot', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="soundErrorSetting">[LANG]settingsSoundError[/LANG]</label></td>
<td class="setting">
<select id="soundErrorSetting" onchange="ajaxChat.setSetting('soundError', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowEven">
<td><label for="soundPrivateSetting">[LANG]settingsSoundPrivate[/LANG]</label></td>
<td class="setting">
<select id="soundPrivateSetting" onchange="ajaxChat.setSetting('soundPrivate', this.options[this.selectedIndex].value);"><option value="">-</option></select><input type="image" src="images/pixel.png" class="button playback" alt="[LANG]playSelectedSound[/LANG]" title="[LANG]playSelectedSound[/LANG]" onclick="ajaxChat.playSound(this.previousSibling.options[this.previousSibling.selectedIndex].value);"/>
</td>
</tr>
<tr class="rowOdd">
<td><label for="blinkSetting">[LANG]settingsBlink[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="blinkSetting" onclick="ajaxChat.setSetting('blink', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="blinkIntervalSetting">[LANG]settingsBlinkInterval[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="blinkIntervalSetting" onchange="ajaxChat.setSetting('blinkInterval', parseInt(this.value));"/></td>
</tr>
<tr class="rowOdd">
<td><label for="blinkIntervalNumberSetting">[LANG]settingsBlinkIntervalNumber[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="blinkIntervalNumberSetting" onchange="ajaxChat.setSetting('blinkIntervalNumber', parseInt(this.value));"/></td>
</tr>
</table>
</div>
</div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
<div id="flashInterfaceContainer"></div>
</body>
</html>

View File

@ -0,0 +1,196 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<meta name="viewport" content="width=device-width" />
<title>[LANG]title[/LANG]</title>
<link href="images/global.css" type="text/css" rel="stylesheet" />
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
<!-- [STYLE_SHEETS/] -->
<link rel="stylesheet" type="text/css" href="css/legacy.ajaxchat.css" />
<link rel="stylesheet" type="text/css" href="css/mobile.ajaxchat.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/en.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function toggleContainer(containerID, hideContainerIDs) {
if(hideContainerIDs) {
for(var i=0; i<hideContainerIDs.length; i++) {
ajaxChat.showHide(hideContainerIDs[i], 'none');
}
}
ajaxChat.showHide(containerID);
if(typeof arguments.callee.styleProperty == 'undefined') {
if(typeof isIElt7 != 'undefined') {
arguments.callee.styleProperty = 'marginRight';
} else {
arguments.callee.styleProperty = 'right';
}
}
var containerWidth = document.getElementById(containerID).offsetWidth;
if(containerWidth) {
document.getElementById('chatList').style[arguments.callee.styleProperty] = '10px';
} else {
document.getElementById('chatList').style[arguments.callee.styleProperty] = '10px';
}
}
function initialize() {
ajaxChat.updateButton('audio', 'audioButton');
ajaxChat.updateButton('autoScroll', 'autoScrollButton');
document.getElementById('bbCodeSetting').checked = ajaxChat.getSetting('bbCode');
document.getElementById('bbCodeImagesSetting').checked = ajaxChat.getSetting('bbCodeImages');
document.getElementById('bbCodeColorsSetting').checked = ajaxChat.getSetting('bbCodeColors');
document.getElementById('hyperLinksSetting').checked = ajaxChat.getSetting('hyperLinks');
document.getElementById('lineBreaksSetting').checked = ajaxChat.getSetting('lineBreaks');
document.getElementById('emoticonsSetting').checked = ajaxChat.getSetting('emoticons');
document.getElementById('maxMessagesSetting').value = ajaxChat.getSetting('maxMessages');
document.getElementById('wordWrapSetting').checked = ajaxChat.getSetting('wordWrap');
document.getElementById('dateFormatSetting').value = ajaxChat.getSetting('dateFormat');
document.getElementById('persistFontColorSetting').checked = ajaxChat.getSetting('persistFontColor');
for(var i=0; i<document.getElementById('audioVolumeSetting').options.length; i++) {
if(document.getElementById('audioVolumeSetting').options[i].value == ajaxChat.getSetting('audioVolume')) {
document.getElementById('audioVolumeSetting').options[i].selected = true;
break;
}
}
}
ajaxChatConfig.loginChannelID = parseInt('[LOGIN_CHANNEL_ID/]');
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChatConfig.chatBotName = decodeURIComponent('[CHAT_BOT_NAME/]');
ajaxChatConfig.chatBotID = '[CHAT_BOT_ID/]';
ajaxChatConfig.allowUserMessageDelete = parseInt('[ALLOW_USER_MESSAGE_DELETE/]');
ajaxChatConfig.inactiveTimeout = parseInt('[INACTIVE_TIMEOUT/]');
ajaxChatConfig.privateChannelDiff = parseInt('[PRIVATE_CHANNEL_DIFF/]');
ajaxChatConfig.privateMessageDiff = parseInt('[PRIVATE_MESSAGE_DIFF/]');
ajaxChatConfig.showChannelMessages = parseInt('[SHOW_CHANNEL_MESSAGES/]');
ajaxChatConfig.messageTextMaxLength = parseInt('[MESSAGE_TEXT_MAX_LENGTH/]');
ajaxChatConfig.socketServerEnabled = parseInt('[SOCKET_SERVER_ENABLED/]');
ajaxChatConfig.socketServerHost = decodeURIComponent('[SOCKET_SERVER_HOST/]');
ajaxChatConfig.socketServerPort = parseInt('[SOCKET_SERVER_PORT/]');
ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
// ]]>
</script>
</head>
<body>
<div id="content">
<div id="headlineContainer">
<h1>
[LANG]title[/LANG]
<input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<input type="button" id="logoutButton" value="Desktop" onclick="window.location.assign('./');"/>
</h1>
</div>
<!--[if lt IE 7]>
<div></div>
<![endif]-->
<div id="chatList"></div>
<div id="inputFieldContainer">
<textarea id="inputField" rows="1" cols="50" title="[LANG]inputLineBreak[/LANG]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" onkeyup="ajaxChat.handleInputFieldKeyUp(event);"></textarea>
</div>
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="IMG" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>
<input type="button" value="Color" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('colorCodesContainer', null);"/>
<input type="button" id="submitButton" value="[LANG]messageSubmit[/LANG]" onclick="ajaxChat.sendMessage();"/>
</div>
<div id="colorCodesContainer" style="display:none;" dir="ltr"></div>
<div id="optionsContainer">
<input type="image" src="images/pixel.png" class="button" id="settingsButton" alt="[LANG]toggleSettings[/LANG]" title="[LANG]toggleSettings[/LANG]" onclick="toggleContainer('settingsContainer', new Array('onlineListContainer','helpContainer'));"/>
<input type="image" src="images/pixel.png" class="button" id="onlineListButton" alt="[LANG]toggleOnlineList[/LANG]" title="[LANG]toggleOnlineList[/LANG]" onclick="toggleContainer('onlineListContainer', new Array('settingsContainer','helpContainer'));"/>
<input type="image" src="images/pixel.png" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>
</div>
<div id="onlineListContainer" style="display:none;">
<h3>[LANG]onlineUsers[/LANG]</h3>
<div id="onlineList"></div>
</div>
<div id="settingsContainer" style="display:none;">
<h3>[LANG]settings[/LANG]</h3>
<div id="settingsList">
<table>
<tr class="rowOdd">
<td><label for="bbCodeSetting">[LANG]settingsBBCode[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeSetting" onclick="ajaxChat.setSetting('bbCode', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="bbCodeImagesSetting">[LANG]settingsBBCodeImages[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeImagesSetting" onclick="ajaxChat.setSetting('bbCodeImages', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="bbCodeColorsSetting">[LANG]settingsBBCodeColors[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="bbCodeColorsSetting" onclick="ajaxChat.setSetting('bbCodeColors', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="hyperLinksSetting">[LANG]settingsHyperLinks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="hyperLinksSetting" onclick="ajaxChat.setSetting('hyperLinks', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="lineBreaksSetting">[LANG]settingsLineBreaks[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="lineBreaksSetting" onclick="ajaxChat.setSetting('lineBreaks', this.checked);"/></td>
</tr>
<tr class="rowEven">
<td><label for="emoticonsSetting">[LANG]settingsEmoticons[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="emoticonsSetting" onclick="ajaxChat.setSetting('emoticons', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="maxMessagesSetting">[LANG]settingsMaxMessages[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="maxMessagesSetting" onchange="ajaxChat.setSetting('maxMessages', parseInt(this.value));"/></td>
</tr>
<tr class="rowEven">
<td><label for="wordWrapSetting">[LANG]settingsWordWrap[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="wordWrapSetting" onclick="ajaxChat.setSetting('wordWrap', this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="dateFormatSetting">[LANG]settingsDateFormat[/LANG]</label></td>
<td class="setting"><input type="text" class="text" id="dateFormatSetting" onchange="ajaxChat.setSetting('dateFormat', this.value);"/></td>
</tr>
<tr class="rowEven">
<td><label for="persistFontColorSetting">[LANG]settingsPersistFontColor[/LANG]</label></td>
<td class="setting"><input type="checkbox" id="persistFontColorSetting" onclick="ajaxChat.setPersistFontColor(this.checked);"/></td>
</tr>
<tr class="rowOdd">
<td><label for="audioVolumeSetting">[LANG]settingsAudioVolume[/LANG]</label></td>
<td class="setting">
<select class="left" id="audioVolumeSetting" onchange="ajaxChat.setAudioVolume(this.options[this.selectedIndex].value);">
<option value="1.0">100 %</option>
<option value="0.9">90 %</option>
<option value="0.8">80 %</option>
<option value="0.7">70 %</option>
<option value="0.6">60 %</option>
<option value="0.5">50 %</option>
<option value="0.4">40 %</option>
<option value="0.3">30 %</option>
<option value="0.2">20 %</option>
<option value="0.1">10 %</option>
</select>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="flashInterfaceContainer"></div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<div id="ajaxChatContent">
<script src="[AJAX_CHAT_URL/]js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/lang/kick.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
</div>
<script type="text/javascript">
// <![CDATA[
ajaxChatConfig.ajaxURL = '[AJAX_CHAT_URL/]?ajax=true&shoutbox=true';
ajaxChatConfig.baseURL = '[AJAX_CHAT_URL/]';
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChatConfig.chatBotName = decodeURIComponent('[CHAT_BOT_NAME/]');
ajaxChatConfig.chatBotID = '[CHAT_BOT_ID/]';
ajaxChatConfig.allowUserMessageDelete = parseInt('[ALLOW_USER_MESSAGE_DELETE/]');
ajaxChatConfig.inactiveTimeout = parseInt('[INACTIVE_TIMEOUT/]');
ajaxChatConfig.privateChannelDiff = parseInt('[PRIVATE_CHANNEL_DIFF/]');
ajaxChatConfig.privateMessageDiff = parseInt('[PRIVATE_MESSAGE_DIFF/]');
ajaxChatConfig.showChannelMessages = false;
ajaxChatConfig.messageTextMaxLength = parseInt('[MESSAGE_TEXT_MAX_LENGTH/]');
ajaxChatConfig.socketServerEnabled = parseInt('[SOCKET_SERVER_ENABLED/]');
ajaxChatConfig.socketServerHost = decodeURIComponent('[SOCKET_SERVER_HOST/]');
ajaxChatConfig.socketServerPort = parseInt('[SOCKET_SERVER_PORT/]');
ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');
ajaxChatConfig.domIDs['chatList'] = 'ajaxChatChatList';
ajaxChatConfig.domIDs['inputField'] = 'ajaxChatInputField';
ajaxChatConfig.domIDs['flashInterfaceContainer'] = 'ajaxChatFlashInterfaceContainer';
ajaxChatConfig.startChatOnLoad = false;
ajaxChatConfig.settings.autoFocus = false;
ajaxChatConfig.settings.wordWrap = true;
ajaxChatConfig.settings.maxWordLength = 11;
ajaxChatConfig.settings.blink = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, false, true);
// ]]>
</script>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
<div id="ajaxChatFlashInterfaceContainer"></div>

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG]</title>
<link rel="shortcut icon" href="http://flashii.net/favicon.ico" />
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/topmenu.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/kick.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/config.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="loginContent">
<div id="loginHeadlineContainer">
<h1>[LANG]title[/LANG]</h1>
</div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div id="loginFormContainer">
<div>Welcome to Flashii Chat! Please register if you haven't yet.</div>
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<div><label for="userNameField">[LANG]userName[/LANG]:</label><br />
<input type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]"/></div>
<div><label for="passwordField">[LANG]password[/LANG]*:</label><br />
<input type="password" name="password" id="passwordField"/></div>
<div><label for="channelField">[LANG]channel[/LANG]:</label><br />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select></div>
<div><label for="languageSelection">[LANG]language[/LANG]:</label><br />
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select></div>
<div><input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/> <input type="button" onclick="javascript:window.location = 'register.php'" id="registerButton" value="Register"/></div>
<div id="loginRegisteredUsers">* [LANG]registeredUsers[/LANG]</div>
</div>
</form>
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><div>[LANG]requiresJavaScript[/LANG]</div></noscript></div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="/">Chat</a> - <a href="/register">Register</a> - <a href="/rules">Rules</a> - <a href="/staff">Staff</a> - <a href="/bans">Bans</a> - <a href="/users">Memberlist</a><br /><br /><br /><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
</body>
</html>

BIN
public/sandstorm.mp3 Normal file

Binary file not shown.

BIN
public/sandstorm.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/sounds/ajax_shit.mp3 Normal file

Binary file not shown.

BIN
public/sounds/ajax_shit.ogg Normal file

Binary file not shown.

BIN
public/sounds/dicks.mp3 Normal file

Binary file not shown.

BIN
public/sounds/dicks.ogg Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More