mirror of
https://github.com/saintly2k/FoOlSlideX.git
synced 2025-02-20 11:13:13 +08:00
Water under the bridge
This commit is contained in:
parent
dcb66b2896
commit
cdb4e3b5eb
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
.installed
|
|
||||||
update.sql
|
|
||||||
update.zip
|
|
49
.htaccess
49
.htaccess
@ -1,49 +0,0 @@
|
|||||||
Options +FollowSymLinks
|
|
||||||
RewriteEngine On
|
|
||||||
Options -Indexes
|
|
||||||
|
|
||||||
# Main Pages
|
|
||||||
RewriteRule ^/?$ ./render/public/home.req.php
|
|
||||||
RewriteRule ^releases/?$ ./render/public/home.req.php
|
|
||||||
RewriteRule ^login/?$ ./render/public/login.req.php
|
|
||||||
RewriteRule ^signup/?$ ./render/public/signup.req.php
|
|
||||||
RewriteRule ^logout/?$ ./render/public/home.req.php?logout
|
|
||||||
RewriteRule ^titles/?$ ./render/public/titles.req.php
|
|
||||||
RewriteRule ^bookmarks/?$ ./render/public/bookmarks.req.php
|
|
||||||
RewriteRule ^about/?$ ./render/public/about.req.php
|
|
||||||
RewriteRule ^s/(.*)/?$ ./render/public/static.req.php?static=$1
|
|
||||||
|
|
||||||
# Manga Pages
|
|
||||||
RewriteRule ^manga/(.*)/?$ ./render/public/manga.req.php?slug=$1
|
|
||||||
RewriteRule ^chapter/(.*)/?$ ./render/public/chapter.req.php?slug=$1
|
|
||||||
|
|
||||||
# Group Pages
|
|
||||||
RewriteRule ^groups/?$ ./render/public/groups.req.php
|
|
||||||
RewriteRule ^group/(.*)/?$ ./render/public/group.req.php?id=$1
|
|
||||||
|
|
||||||
# Releaser Pages
|
|
||||||
RewriteRule ^admin/settings/?$ ./render/releaser/settings.req.php
|
|
||||||
RewriteRule ^admin/new_title/?$ ./render/releaser/new_title.req.php
|
|
||||||
RewriteRule ^admin/edit_title/(.*)/?$ ./render/releaser/edit_title.req.php?slug=$1
|
|
||||||
RewriteRule ^admin/add_chapter/(.*)/?$ ./render/releaser/add_chapter.req.php?slug=$1
|
|
||||||
RewriteRule ^admin/edit_chapter/(.*)/?$ ./render/releaser/edit_chapter.req.php?slug=$1
|
|
||||||
|
|
||||||
# Mod Pages
|
|
||||||
RewriteRule ^admin/add_group/?$ ./render/mod/add_group.req.php
|
|
||||||
RewriteRule ^admin/edit_group/(.*)/?$ ./render/mod/edit_group.req.php?id=$1
|
|
||||||
RewriteRule ^admin/statics/?$ ./render/mod/statics.req.php
|
|
||||||
RewriteRule ^admin/editor/?$ ./render/mod/editor.req.php
|
|
||||||
|
|
||||||
# Admin Pages
|
|
||||||
RewriteRule ^admin/config/?$ ./render/admin/config.req.php
|
|
||||||
RewriteRule ^admin/menu_display/?$ ./render/admin/menu_display.req.php
|
|
||||||
|
|
||||||
# Redirect whatever
|
|
||||||
RewriteRule ^login.req.php?$ ./render/redirect.php?page=login
|
|
||||||
RewriteRule ^signup.req.php?$ ./render/redirect.php?page=signup
|
|
||||||
|
|
||||||
RewriteRule ^install/?$ ./install.php
|
|
||||||
|
|
||||||
ErrorDocument 404 "<head><title>Error! <= Team H33T</title></head><body style='overflow:hidden;margin:0;padding:0'><img src='https://cdn.henai.eu/assets/images/404.png' width='100%'></body>"
|
|
||||||
ErrorDocument 403 "<title>Error! <= Team H33T</title><center><h1>You escaped the Matrix!</h1></center><center><h2>Seems like Neo doesn't want to go further... but do you?</h2></center>"
|
|
||||||
ErrorDocument 500 "<title>Error! <= Team H33T</title><center><h1>You escaped the Matrix!</h1></center><center><h2>Seems like Neo doesn't want to go further... but do you?</h2></center>"
|
|
674
LICENSE
Normal file
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 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 General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
139
README.md
139
README.md
@ -1,139 +0,0 @@
|
|||||||
Short Notice: v0.2.0 is currently in development. Join the Discord for more information and its status. Please do not use v0.1.4 or any other version until v0.2.0 is officially released. Thanks!
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
# FoOlSlideX
|
|
||||||
|
|
||||||
The new, most powerful Comic- & Manga-Reader ever created by the human race. Reworked by an Otaku for Scanlation-Groups.
|
|
||||||
|
|
||||||
Before contributing, make sure to read [Contributing](#contributing)! Make sure you start with [TYP-xxx] or else it won't be merged!
|
|
||||||
|
|
||||||
## Index
|
|
||||||
|
|
||||||
- [Features](#features)
|
|
||||||
- [Contributing](#contributing)
|
|
||||||
- [Video-Guides](#video-guides)
|
|
||||||
- [Installation using the Installer](#installation-using-the-installer)
|
|
||||||
- [Adding a Chapter](#adding-a-chapter)
|
|
||||||
- [Documentation](#documentation)
|
|
||||||
- [Config Variables](#config-variables)
|
|
||||||
- [Supprt](#support)
|
|
||||||
- [Donate](#donate)
|
|
||||||
- [Demo](#demo)
|
|
||||||
- [Used By](#used-by)
|
|
||||||
- [Authors](#authors)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- Create invites
|
|
||||||
- Register using invite & login to Account
|
|
||||||
- Add Titles/Edit them
|
|
||||||
- Add Chapters/Edit them
|
|
||||||
- Bookmark Mangas & Chapters via Cookies
|
|
||||||
- View Bookmarks & keep track of them
|
|
||||||
- Create Groups, view groups and their chapters
|
|
||||||
- Create static pages & manage them
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
Contributions are ALWAYS welcome! Even if it's just improving a language-file. Really!
|
|
||||||
|
|
||||||
Make sure you follow these rules!
|
|
||||||
|
|
||||||
- Commit Message should follow this title system: [TYP-xxx] where xxx is the typ type. ([See more in deathnotes.txt at the footer where types are declared](https://github.com/saintly2k/FoOlSlideX/blob/master/deathnotes.txt))
|
|
||||||
- Code should somewhat be clean and readable
|
|
||||||
- Notes in the code should be in ENGLISH and no other language (except language files)
|
|
||||||
|
|
||||||
## Video-Guides
|
|
||||||
|
|
||||||
As someone requested, I started a video-guide on YouTube on how to install, update and do some more stuff on FoOlSlideX.
|
|
||||||
|
|
||||||
[View the full PlayList](https://www.youtube.com/playlist?list=PLDQvUzXjsrhP8EsCrxJ6yoqcOKTESXixX)
|
|
||||||
|
|
||||||
## Installation using the Installer
|
|
||||||
|
|
||||||
- Download the latest stable release
|
|
||||||
- Create a MySQL Database
|
|
||||||
- Edit your config.php properly (MySQL User, Pass, Database name)
|
|
||||||
- Open your webroot in your browser
|
|
||||||
- Fill out all data and click on submit
|
|
||||||
- Create an account using the invite code `FoOlSlideX`
|
|
||||||
- Done
|
|
||||||
|
|
||||||
## Adding a Chapter
|
|
||||||
|
|
||||||
This is very important that you follow these steps I will give you. If you prefer a video-guide, you can watch it here:
|
|
||||||
|
|
||||||
https://www.youtube.com/watch?v=E-HFaMTH-NM&ab_channel=TeamH33T
|
|
||||||
|
|
||||||
If not, here is a step-by-step guide:
|
|
||||||
|
|
||||||
- You need to have a folder structure like this:
|
|
||||||
```
|
|
||||||
- Chapter 01
|
|
||||||
- - 01.png
|
|
||||||
- - 02.png
|
|
||||||
- - 03.png
|
|
||||||
```
|
|
||||||
- Then you need to ZIP "Chapter 01" as a ZIP file with THE SAME NAME
|
|
||||||
- After that, DON'T RENAME THE ZIP FILE, IF YOU DO, IT WON'T WORK!
|
|
||||||
- Then go to the title where you want to add it
|
|
||||||
- Click on "Add new Chapter" and select the ZIP, volume, chapter and group(s)
|
|
||||||
- Hit "Add Chapter" and you're done
|
|
||||||
- If you encounter any errors saying "cannot rename" or such, it means you renamed the folder or didn't zip it properly
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
[View full Documentation in the GitHub Wiki](https://github.com/saintly2k/FoOlSlideX/wiki)
|
|
||||||
|
|
||||||
## Config Variables
|
|
||||||
|
|
||||||
`$slave["host"]` is the MySQL host
|
|
||||||
|
|
||||||
`$slave["user"]` is the MySQL user
|
|
||||||
|
|
||||||
`$slave["pass"]` is the password for the user
|
|
||||||
|
|
||||||
`$slave["table"]` is the table where you imported the SQL file
|
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
For support, join our Discord: https://discord.gg/uahG2fKVvg
|
|
||||||
|
|
||||||
Or eMail me at saintly@h33t.moe
|
|
||||||
|
|
||||||
## Donate
|
|
||||||
|
|
||||||
I spend a lot of time working on this. Really.
|
|
||||||
|
|
||||||
Please consider donating some money via PayPal: [yuki.akihabara@yandex.com](https://paypal.me/WOLFRAMEdev)
|
|
||||||
|
|
||||||
Or donate via Ko-fi: [ko-fi.com/saintly](https://ko-fi.com/saintly) (I need to pay server-bills)
|
|
||||||
|
|
||||||
## Demo
|
|
||||||
|
|
||||||
View (a slightly modified version of) FoOlsldiex in action: https://stukas.henai.eu/reader/
|
|
||||||
|
|
||||||
## Used By
|
|
||||||
|
|
||||||
This project is used by the following groups:
|
|
||||||
|
|
||||||
- [Lubuntu Bionic Beaver Scans](https://stukas.henai.eu)
|
|
||||||
- [weltenWanderer Scans](https://wws.henai.eu)
|
|
||||||
- [ELEVEN SCANLATOR](http://eleven-scanlator.epizy.com)
|
|
||||||
- [PuchiRoll](https://puchiroll.com)
|
|
||||||
|
|
||||||
## Authors
|
|
||||||
|
|
||||||
FoOlSlideX Development:
|
|
||||||
- [@saintly2k](https://www.github.com/saintly2k)
|
|
||||||
- [@kaligula-eu](https://www.github.com/kaligula-eu)
|
|
||||||
|
|
||||||
Translation:
|
|
||||||
- EN: [Saintly2k](https://github.com/saintly2k)
|
|
||||||
- DE: [Saintly2k](https://github.com/saintly2k)
|
|
||||||
- PT: Luckkyz
|
|
||||||
- RU: [RenOK](https://github.com/totavok8)
|
|
||||||
|
|
||||||
FoOlSlide/FoOlSlide2 Original Idea/Development:
|
|
||||||
- [@FoolCode](https://github.com/FoolCode)
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 7.4 MiB |
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
336
assets/theme.css
336
assets/theme.css
@ -1,336 +0,0 @@
|
|||||||
@font-face {
|
|
||||||
font-weight: 300;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-L.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-R.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 600;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-M.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 700;
|
|
||||||
font-style: bold;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-B.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
position: relative;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin-bottom: 40px;
|
|
||||||
padding-top: 70px;
|
|
||||||
padding-bottom: 30px;
|
|
||||||
font-family: "Ubuntu", sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-dropdown .dropdown-menu {
|
|
||||||
position: static;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
position: absolute;
|
|
||||||
padding: 10px 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
/* Set the fixed height of the footer here */
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.display-none {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-file {
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-file input[type=file] {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
min-width: 100%;
|
|
||||||
min-height: 100%;
|
|
||||||
font-size: 100px;
|
|
||||||
text-align: right;
|
|
||||||
filter: alpha(opacity=0);
|
|
||||||
opacity: 0;
|
|
||||||
background: red;
|
|
||||||
cursor: inherit;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[readonly] {
|
|
||||||
cursor: text !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#message_container {
|
|
||||||
position: fixed;
|
|
||||||
top: 70px;
|
|
||||||
z-index: 100;
|
|
||||||
height: 100px;
|
|
||||||
left: 50%;
|
|
||||||
width: 50%;
|
|
||||||
margin-left: -25%;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.captcha {
|
|
||||||
margin: 0 auto 15px auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.td-768,
|
|
||||||
.td-992,
|
|
||||||
.td-1440,
|
|
||||||
.span-992,
|
|
||||||
.span-1440,
|
|
||||||
.li-992 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
border-radius: 4px 0 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
|
|
||||||
.nav-label-992,
|
|
||||||
.nav-label-1440 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.td-768 {
|
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
|
|
||||||
.td-992 {
|
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-label-992,
|
|
||||||
.span-992 {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 170px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1440px) {
|
|
||||||
|
|
||||||
.nav-label-1440,
|
|
||||||
.span-1440 {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.span-not-1440,
|
|
||||||
.td-not-1440 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
img.reader {
|
|
||||||
cursor: pointer;
|
|
||||||
max-width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.avatar {
|
|
||||||
max-width: 100px;
|
|
||||||
max-height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.click {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.webtoon,
|
|
||||||
img.long-strip {
|
|
||||||
max-width: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.webtoon {
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.long-strip {
|
|
||||||
margin: 0 auto 10px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.genre,
|
|
||||||
a.genre:hover,
|
|
||||||
a.genre:focus {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.manga_title,
|
|
||||||
a.manga_title:hover,
|
|
||||||
a.manga_title:focus {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
tr.comment {
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea.comment-box {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading {
|
|
||||||
background: transparent url('loading.gif') center no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-shadow {
|
|
||||||
text-shadow: 0px 0px 6px white;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-right {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Addtional CSS changes below for better visibility + mobile fixes */
|
|
||||||
|
|
||||||
/* Top nav */
|
|
||||||
#top_nav {
|
|
||||||
/* background-image:linear-gradient(to right, #0575e6 0%, #021b79 100%);*/
|
|
||||||
border-right-style: none;
|
|
||||||
border-bottom-style: none;
|
|
||||||
border-left-style: none;
|
|
||||||
border-top-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Link */
|
|
||||||
#titles a {
|
|
||||||
color: #e5e5e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Span Tag */
|
|
||||||
.dropdown .dropdown-toggle span {
|
|
||||||
color: #e8e8e8;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Image */
|
|
||||||
#mangaSearchList .thumbnail img {
|
|
||||||
max-height: 100%;
|
|
||||||
height: 205px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Image */
|
|
||||||
.container .row #mangaSearchList .col-sm-12 .mangaSearchItem .thumbnail img {
|
|
||||||
width: 165px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Manga search item */
|
|
||||||
#mangaSearchList .mangaSearchItem {
|
|
||||||
display: inline-flex !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width:767px) {
|
|
||||||
|
|
||||||
/* Paragraph */
|
|
||||||
#mangaSearchList .thumbnail p {
|
|
||||||
background-color: rgba(0, 0, 0, 0.64);
|
|
||||||
text-shadow: rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) -1px 0px 1px !important;
|
|
||||||
color: #ffffff !important;
|
|
||||||
max-width: 100%;
|
|
||||||
width: 168px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Label primary */
|
|
||||||
#latest-titles tr .label-primary {
|
|
||||||
background-color: #0d5fc3;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Label info */
|
|
||||||
#latest-titles tr .label-info {
|
|
||||||
background-color: #1da016;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Col 6 */
|
|
||||||
.container .col-sm-6 {
|
|
||||||
background-color: transparent;
|
|
||||||
background-image: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Button */
|
|
||||||
.row .col-sm-6 a {
|
|
||||||
background-image: linear-gradient(to right, rgb(5, 117, 230) 0%, rgb(2, 27, 121) 100%);
|
|
||||||
border-bottom-color: #161e45;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* List group item */
|
|
||||||
.sidebar .list-group span.list-group-item {
|
|
||||||
background-color: #158cba;
|
|
||||||
background-image: linear-gradient(to right, rgb(5, 117, 230) 0%, rgb(2, 27, 121) 100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width:767px) {
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
.container footer {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Carousel caption */
|
|
||||||
#manga-carousel a .carousel-caption {
|
|
||||||
background-color: rgba(30, 30, 30, 0.67);
|
|
||||||
text-shadow: rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) -1px 0px 1px;
|
|
||||||
}
|
|
7402
assets/themes/bootstrap.1.min.css
vendored
7402
assets/themes/bootstrap.1.min.css
vendored
File diff suppressed because it is too large
Load Diff
11
assets/themes/bootstrap.2.min.css
vendored
11
assets/themes/bootstrap.2.min.css
vendored
File diff suppressed because one or more lines are too long
11
assets/themes/bootstrap.3.min.css
vendored
11
assets/themes/bootstrap.3.min.css
vendored
File diff suppressed because one or more lines are too long
11
assets/themes/bootstrap.4.min.css
vendored
11
assets/themes/bootstrap.4.min.css
vendored
File diff suppressed because one or more lines are too long
11
assets/themes/bootstrap.5.min.css
vendored
11
assets/themes/bootstrap.5.min.css
vendored
File diff suppressed because one or more lines are too long
11
assets/themes/bootstrap.6.min.css
vendored
11
assets/themes/bootstrap.6.min.css
vendored
File diff suppressed because one or more lines are too long
10
config.php
10
config.php
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$slave = [
|
|
||||||
"host" => "localhost",
|
|
||||||
"user" => "root",
|
|
||||||
"pass" => "",
|
|
||||||
"table" => "mangareaderx"
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
Binary file not shown.
Before Width: | Height: | Size: 239 KiB |
Binary file not shown.
Before Width: | Height: | Size: 405 KiB |
Binary file not shown.
@ -1,52 +0,0 @@
|
|||||||
[ Type (varchar) ]
|
|
||||||
Normal Style:
|
|
||||||
Manga,
|
|
||||||
Manwha,
|
|
||||||
Manhua
|
|
||||||
Text Style:
|
|
||||||
Novel
|
|
||||||
|
|
||||||
[ Raw-Status (int) ]
|
|
||||||
1 - Unknown
|
|
||||||
2 - Announced
|
|
||||||
3 - Ongoing
|
|
||||||
4 - Hiatus
|
|
||||||
5 - Completed
|
|
||||||
6 - Canceled
|
|
||||||
|
|
||||||
[ Scan-Status (int) ]
|
|
||||||
1 - Plan to Scan
|
|
||||||
2 - In Work
|
|
||||||
3 - Scan on Hiatus
|
|
||||||
4 - Forced Hiatus (due to exposure)
|
|
||||||
5 - Completed
|
|
||||||
6 - Dropped
|
|
||||||
|
|
||||||
[ User-Level (int) ]
|
|
||||||
1 - Admin
|
|
||||||
2 - Moderator
|
|
||||||
3 - Releaser
|
|
||||||
|
|
||||||
[ TYPEN (int) ]
|
|
||||||
000:
|
|
||||||
Non-user related,
|
|
||||||
For system & updates,
|
|
||||||
For GitHub and such,
|
|
||||||
100:
|
|
||||||
For all users,
|
|
||||||
Reader, system and such,
|
|
||||||
200:
|
|
||||||
For Groups and such,
|
|
||||||
300:
|
|
||||||
For Releases,
|
|
||||||
For Titles and such,
|
|
||||||
400:
|
|
||||||
For Moderators,
|
|
||||||
For groups,
|
|
||||||
500:
|
|
||||||
For Admins,
|
|
||||||
Administration and such,
|
|
||||||
600:
|
|
||||||
Nothing,
|
|
||||||
900:
|
|
||||||
Languages and such,
|
|
168
install.php
168
install.php
@ -1,168 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if(file_exists(".installed")) {
|
|
||||||
die("Error: System already installed.");
|
|
||||||
header("Refresh: 1; url=titles");
|
|
||||||
}
|
|
||||||
|
|
||||||
require("config.php");
|
|
||||||
|
|
||||||
if(empty($slave["host"]) || empty($slave["user"]) || empty($slave["table"])) {
|
|
||||||
die("Error: config.php not properly filled out.");
|
|
||||||
}
|
|
||||||
|
|
||||||
$config["url"] = "";
|
|
||||||
$config["title"] = "FoOlSlideX";
|
|
||||||
$version = "v0.1.4";
|
|
||||||
$user["theme"] = 3;
|
|
||||||
|
|
||||||
require("vhs/conn.php");
|
|
||||||
require("vhs/funky.php");
|
|
||||||
|
|
||||||
if(isset($_POST["install"])) {
|
|
||||||
$c_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
$c_slogan = mysqli_real_escape_string($conn, $_POST["slogan"]);
|
|
||||||
$c_logo = mysqli_real_escape_string($conn, $_POST["logo"]);
|
|
||||||
$c_cookie = mysqli_real_escape_string($conn, $_POST["cookie"]);
|
|
||||||
$c_url = mysqli_real_escape_string($conn, $_POST["url"]);
|
|
||||||
$c_theme = mysqli_real_escape_string($conn, $_POST["theme"]);
|
|
||||||
$c_start = mysqli_real_escape_string($conn, $_POST["start"]);
|
|
||||||
if(isset($_POST["blog"])) { $c_blog = "1"; } else { $c_blog = "0"; }
|
|
||||||
if(isset($_POST["news"])) { $c_news = "1"; } else { $c_news = "0"; }
|
|
||||||
$c_lang = mysqli_real_escape_string($conn, $_POST["lang"]);
|
|
||||||
$c_disqus = mysqli_real_escape_string($conn, $_POST["disqus"]);
|
|
||||||
|
|
||||||
// Import Database - https://stackoverflow.com/questions/19751354/how-do-i-import-a-sql-file-in-mysql-database-using-php Thx!
|
|
||||||
$filename = 'mangareaderx.sql';
|
|
||||||
$templine = '';
|
|
||||||
$lines = file($filename);
|
|
||||||
foreach ($lines as $line) {
|
|
||||||
if (substr($line, 0, 2) == '--' || $line == '')continue;
|
|
||||||
$templine .= $line;
|
|
||||||
if (substr(trim($line), -1, 1) == ';') {
|
|
||||||
$conn->query($templine);
|
|
||||||
$templine = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = fopen(".installed", "w") or die("Error: Missing permissions to create file (Fix: CHMOD 755 all files)");
|
|
||||||
fwrite($file, $version);
|
|
||||||
fclose($file);
|
|
||||||
|
|
||||||
$conn->query("INSERT INTO `config`(`title`, `slogan`, `logo`, `cookie`, `url`, `theme`, `start`, `blog`, `news`, `lang`, `disqus`) VALUES('$c_title', '$c_slogan', '$c_logo', '$c_cookie', '$c_url', '$c_theme', '$c_start', '$c_blog', '$cnews', '$c_lang', '$c_disqus')");
|
|
||||||
$conn->query("INSERT INTO `invites`(`token`,`used`) VALUES('FoOlSlideX', NULL)");
|
|
||||||
|
|
||||||
header("Location: signup");
|
|
||||||
unlink("install.php"); # FFS NOT AGAIN PLEASE I ACCIDENTALLY DELETED YOU ALREADY AND GOT TO REWRITE YOU NOW FROM SCRATCH REEEEEEEEEEEEE PAINNNNNNNNNNN WHY WHY WHY WHY WHY WHY WHY WHY WHY WHY
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!isset($_GET["lang"]) || empty($_GET["lang"])) {
|
|
||||||
header("Location: ?lang=en");
|
|
||||||
}
|
|
||||||
$lang = $_GET["lang"];
|
|
||||||
require("lang/".$lang.".lang.php");
|
|
||||||
|
|
||||||
include("./render/parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["install"]["title"] ?></title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div id="container">
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="edit_config">
|
|
||||||
<h1 class="text-center"><?= $lang["install"]["title"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_title"><?= $lang["config"]["title2"] ?> </label>
|
|
||||||
<input required tabindex="1" type="text" name="title" id="config_title" class="form-control" placeholder="<?= $lang["config"]["title2"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_slogan"><?= $lang["config"]["slogan"] ?> </label>
|
|
||||||
<input required tabindex="2" type="text" name="slogan" id="config_slogan" class="form-control" placeholder="<?= $lang["config"]["slogan"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_logo"><?= $lang["config"]["logo"] ?> </label>
|
|
||||||
<input tabindex="3" type="text" name="logo" id="config_logo" class="form-control" value="assets/img/logo.png" placeholder="<?= $lang["config"]["logo"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_cookie"><?= $lang["config"]["cookie"] ?> </label>
|
|
||||||
<input required tabindex="4" type="text" name="cookie" id="config_cookie" class="form-control" placeholder="<?= $lang["config"]["cookie"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_url"><?= $lang["config"]["url"] ?> </label>
|
|
||||||
<input required tabindex="5" type="text" name="url" id="config_url" class="form-control" value="https://" placeholder="<?= $lang["config"]["url"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_theme"><?= $lang["config"]["theme"] ?></label>
|
|
||||||
<select required tabindex="6" name="theme" id="config_theme" class="form-control selectpicker" title="<?= $lang["config"]["theme"] ?>">
|
|
||||||
<option value="1"><?= $lang["config"]["themes"][1] ?></option>
|
|
||||||
<option value="2"><?= $lang["config"]["themes"][2] ?></option>
|
|
||||||
<option value="3" selected><?= $lang["config"]["themes"][3] ?></option>
|
|
||||||
<option value="4"><?= $lang["config"]["themes"][4] ?></option>
|
|
||||||
<option value="5"><?= $lang["config"]["themes"][5] ?></option>
|
|
||||||
<option value="6"><?= $lang["config"]["themes"][6] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_start"><?= $lang["config"]["start"] ?> </label>
|
|
||||||
<input required tabindex="7" type="number" name="start" id="config_start" class="form-control" placeholder="<?= $lang["config"]["start"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["menu"]["blog2"] ?>">
|
|
||||||
<input type="checkbox" name="blog" checked> <?= $lang["menu"]["blog2"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["menu"]["news2"] ?>">
|
|
||||||
<input type="checkbox" name="news" checked> <?= $lang["menu"]["news2"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_lang"><?= $lang["config"]["lang"] ?> </label>
|
|
||||||
<select required tabindex="8" name="lang" id="config_lang" class="form-control selectpicker" title="<?= $lang["config"]["lang"] ?>">
|
|
||||||
<option value="de">Deutsch</option>
|
|
||||||
<option value="en" selected>English</option>
|
|
||||||
<option value="pt">Português</option>
|
|
||||||
<option value="ru">Русский</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_disqus"><?= $lang["config"]["disqus"] ?> </label>
|
|
||||||
<input tabindex="9" type="text" name="disqus" id="config_disqus" class="form-control" placeholder="<?= $lang["config"]["disqus"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["all_required"] ?></i></p>
|
|
||||||
<button tabindex="10" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="install"><?= glyph("ok",$lang["install"]["confirm"]) ?> <?= $lang["install"]["confirm"] ?></button>
|
|
||||||
<hr>
|
|
||||||
<p id="copy"><?= $lang["install"]["after"] ?> <a href="#copy" onclick="navigator.clipboard.writeText('FoOlSlideX')"><b>FoOlSlideX</b> (<?= $lang["install"]["copy"] ?>)</a></p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("./render/parts/footer.php"); ?>
|
|
269
lang/da.lang.php
269
lang/da.lang.php
@ -1,269 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
# Danish Language File
|
|
||||||
# By Griffen
|
|
||||||
# Updated 14.07.2022
|
|
||||||
|
|
||||||
$lang = [
|
|
||||||
"cookie_modal" => [
|
|
||||||
"title" => "Denne hjemmeside anvender cookies!",
|
|
||||||
"content" => "Denne side tillader dig at oprette en konto og gemme dine læsefremskridt der. Derfor bruger vi cookies til at gemme dine læsefremskridt. Hvis du vil bruge denne funktion, skal du acceptere os ved at bruge cookies. Vi håber du har det sjovt at læse ~",
|
|
||||||
"accept" => "Acceptere cookies",
|
|
||||||
"refuse" => "Afvis cookies"
|
|
||||||
],
|
|
||||||
"install" => [
|
|
||||||
"title" => "Installer FoOlSlideX",
|
|
||||||
"confirm" => "Let's go!",
|
|
||||||
"after" => "Når du har klikket på 'Let's go!', vil du blive omdirigeret til tilmeldingssiden. Tilmeld dig der ved at bruge følgende invitationskode:",
|
|
||||||
"copy" => "Klik for at kopiere"
|
|
||||||
],
|
|
||||||
"menu" => [
|
|
||||||
"home" => "Forside",
|
|
||||||
"releases" => "Nye udgivelser",
|
|
||||||
"titles" => "Titler",
|
|
||||||
"more" => "Mere",
|
|
||||||
"quicksearch" => "Hurgtigsøg",
|
|
||||||
"search" => "Søg",
|
|
||||||
"account" => "Konto",
|
|
||||||
"login" => "Login",
|
|
||||||
"signup" => "Registrer",
|
|
||||||
"profile" => "Min Profil",
|
|
||||||
"settings" => "Instillinger",
|
|
||||||
"logout" => "Logud",
|
|
||||||
"add_new" => "Ny Titel",
|
|
||||||
"bookmarks" => "Bogmærker",
|
|
||||||
"manage_groups" => "Administrer grupper",
|
|
||||||
"groups" => "Grupper",
|
|
||||||
"config" => "Rediger Konfiguration",
|
|
||||||
"settings" => "Account Settings",
|
|
||||||
"blog" => "Blog",
|
|
||||||
"blog2" => "Blog activated",
|
|
||||||
"news" => "News",
|
|
||||||
"news2" => "News activated",
|
|
||||||
"menu_dis" => "Menu Display",
|
|
||||||
"statics" => "Static Pages"
|
|
||||||
],
|
|
||||||
"home" => [
|
|
||||||
"added_titles" => "Added Titles",
|
|
||||||
"type" => "Type",
|
|
||||||
"title" => "Title",
|
|
||||||
"added" => "Added",
|
|
||||||
"released_chap" => "Released Chapters",
|
|
||||||
"chapter" => "Chapter",
|
|
||||||
"chap_title" => "Chapter Title",
|
|
||||||
"group" => "Group",
|
|
||||||
"uploader" => "Uploader"
|
|
||||||
],
|
|
||||||
"groups" => [
|
|
||||||
"add_group" => "Add new Group",
|
|
||||||
"req_group" => "Request new Group",
|
|
||||||
"name" => "Group Name",
|
|
||||||
"short" => "Group short Name",
|
|
||||||
"image" => "Group Banner Image (URL)",
|
|
||||||
"about" => "About this Group (Supports BBCode)",
|
|
||||||
"founded" => "Group founded",
|
|
||||||
"website" => "Group Website (Leave empty for none)",
|
|
||||||
"irc" => "Group IRC Channel (Leave empty for none)",
|
|
||||||
"mangadex" => "Group MangaDex site (Leave empty for none)",
|
|
||||||
"email" => "Contact eMail",
|
|
||||||
"confirm" => "Add group!",
|
|
||||||
"confirm_r" => "Request group!",
|
|
||||||
"group" => "Group",
|
|
||||||
"infos" => "Informations",
|
|
||||||
"short2" => "Short",
|
|
||||||
"founded2" => "Founded",
|
|
||||||
"links" => "Links",
|
|
||||||
"about2" => "About",
|
|
||||||
"releases" => "Releases by this Group",
|
|
||||||
"no_releas" => "There are no Releases yet!"
|
|
||||||
],
|
|
||||||
"group" => [
|
|
||||||
"website" => "Website",
|
|
||||||
"irc" => "IRC",
|
|
||||||
"mangadex" => "MangaDex",
|
|
||||||
"email" => "eMail",
|
|
||||||
"approve" => [
|
|
||||||
"not_approved" => "This group has not been approved by a Staff member yet and is only visible to Mods and Admins.",
|
|
||||||
"action" => "What do you want to do?",
|
|
||||||
"approve" => "Approve this Group",
|
|
||||||
"unapprove" => "Delete this Group",
|
|
||||||
"notice" => "After approving, you might want to reload this page..."
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"edit_group" => [
|
|
||||||
"title" => "Edit Group",
|
|
||||||
],
|
|
||||||
"config" => [
|
|
||||||
"title" => "Edit Config",
|
|
||||||
"title2" => "Site Title",
|
|
||||||
"slogan" => "Site Slogan",
|
|
||||||
"logo" => "Logo URL (Leave empty for none)",
|
|
||||||
"cookie" => "Cookie Prefix (If you change, all old Bookmarks will be lost!)",
|
|
||||||
"url" => "URL to Site (With https and END WITH SLASH!)",
|
|
||||||
"theme" => "Site Default Theme",
|
|
||||||
"themes" => [
|
|
||||||
1 => "Default Light",
|
|
||||||
2 => "Cerulean Light",
|
|
||||||
3 => "Lumen Light",
|
|
||||||
4 => "Readable Light",
|
|
||||||
5 => "Slate Dark",
|
|
||||||
6 => "Cyborg Dark"
|
|
||||||
],
|
|
||||||
"start" => "Site Started in",
|
|
||||||
"lang" => "Default Language",
|
|
||||||
"disqus" => "Disqus Name (Optional)"
|
|
||||||
],
|
|
||||||
"login" => [
|
|
||||||
"error" => "Error",
|
|
||||||
"message" => "Don't have an account yet?",
|
|
||||||
"username" => "Username",
|
|
||||||
"password" => "Password",
|
|
||||||
"captcha" => "Captcha",
|
|
||||||
"cookies" => "Stay logged in (THIS USES COOKIES!)"
|
|
||||||
],
|
|
||||||
"signup" => [
|
|
||||||
"password" => "Repeat Password",
|
|
||||||
"message" => "Already have an account?",
|
|
||||||
"used_invite" => "The Invite you entered has already been used!",
|
|
||||||
"empty_invite" => "You need an invite to create an account!",
|
|
||||||
"invite" => "Invite Code"
|
|
||||||
],
|
|
||||||
"add_manga" => [
|
|
||||||
"add" => "Add Manga",
|
|
||||||
"title" => "*Manga Title",
|
|
||||||
"cover" => "Cover Image (1500x2150px)",
|
|
||||||
"alt" => "Alt Names",
|
|
||||||
"author" => "Author",
|
|
||||||
"genre" => "Genre (Seperate by comma)",
|
|
||||||
"type" => "*Reading type (Manga, Manwha, Manhua)",
|
|
||||||
"released" => "Released in Year",
|
|
||||||
"raw-st" => "*Status of Raws",
|
|
||||||
"status" => "*Status of Scanlation",
|
|
||||||
"descript" => "Description of Title (Supports HTML)",
|
|
||||||
"raw-url" => "URL to Raw",
|
|
||||||
"licensed" => "Licenser (leave empty if unlicensed)",
|
|
||||||
"official" => "URL to official Release (leave empty if none)",
|
|
||||||
"required" => "Required fiels are marked with *",
|
|
||||||
"all_required" => "All fields are required!",
|
|
||||||
"manga" => "Manga",
|
|
||||||
"manhua" => "Manhua",
|
|
||||||
"manwha" => "Manwha",
|
|
||||||
"type_manga" => "Manga (Paged)",
|
|
||||||
"type_manhua" => "Manhua (List)",
|
|
||||||
"type_manwha" => "Manwha (List)",
|
|
||||||
"rawst" => [
|
|
||||||
1 => "Unknown",
|
|
||||||
2 => "Announced",
|
|
||||||
3 => "Ongoing",
|
|
||||||
4 => "Hiatus",
|
|
||||||
"5" => "Completed",
|
|
||||||
6 => "Canceled"
|
|
||||||
],
|
|
||||||
"scanst" => [
|
|
||||||
1 => "Plan to Scan",
|
|
||||||
2 => "In Work",
|
|
||||||
3 => "Scan on Hiatus",
|
|
||||||
4 => "Forced Hiatus (due to exposure)",
|
|
||||||
5 => "Completed",
|
|
||||||
6 => "Dropped"
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"manga" => [
|
|
||||||
"alt" => "Alt. Name(s)",
|
|
||||||
"author" => "Author(s)",
|
|
||||||
"genre" => "Genre(s)",
|
|
||||||
"type" => "Reading Type",
|
|
||||||
"released" => "Released (Year)",
|
|
||||||
"raw-status" => "Status of the Raws",
|
|
||||||
"scan-status" => "Status of Scanlation",
|
|
||||||
"raw" => "Read/Buy official Raw",
|
|
||||||
"licensed" => "Please support the Author by buying the official work since it has been licensed by",
|
|
||||||
"added" => "This Manga has been added on",
|
|
||||||
"edit_title" => "Edit Title",
|
|
||||||
"add_ch" => "Add Chapter",
|
|
||||||
"unknown" => "Unknown",
|
|
||||||
"edit_chap" => "Edit Chapter",
|
|
||||||
"chapters" => "Chapters",
|
|
||||||
"comments" => "Comments"
|
|
||||||
],
|
|
||||||
"add_chapter" => [
|
|
||||||
"title" => "Add Chapter for",
|
|
||||||
"file" => "*Select ZIP/RAR File to upload",
|
|
||||||
"volume" => "Volume (Leave empty for none)",
|
|
||||||
"chapter" => "Chapter (Leave empty or 0 for Oneshot)",
|
|
||||||
"ctitle" => "Chapter Title (Leave empty for none)",
|
|
||||||
"button" => "Add Chapter",
|
|
||||||
"ser_grp" => "Search for Group...",
|
|
||||||
"sel_grp1" => "Select Group 1",
|
|
||||||
"sel_grp2" => "Select Group 2",
|
|
||||||
"sel_grp3" => "Select Group 3",
|
|
||||||
"no_group" => "No Group",
|
|
||||||
"none" => "None",
|
|
||||||
"group_unap" => "Don't see your group? That means it's still unapproved. Wait some more or upload without a group. You can always edit that later."
|
|
||||||
],
|
|
||||||
"chapter" => [
|
|
||||||
"menu" => "Navigation",
|
|
||||||
"close" => "Hide",
|
|
||||||
"back_to_m" => "Back to Manga",
|
|
||||||
"bookmark" => "Bookmark",
|
|
||||||
"update_bm" => "Update Bookmark",
|
|
||||||
"remove_bm" => "Remove Bookmark",
|
|
||||||
"comments" => "To the Comments",
|
|
||||||
"next" => "Next Chapter",
|
|
||||||
"prev" => "Previous Chapter",
|
|
||||||
"oneshot" => "Oneshot"
|
|
||||||
],
|
|
||||||
"edit_chapter" => [
|
|
||||||
"title" => "Edit Chapter",
|
|
||||||
"file" => "Select new ZIP/RAR (deletes old)",
|
|
||||||
"edit" => "Edit Chapter",
|
|
||||||
"return" => "Return to Title",
|
|
||||||
"delete" => "Delete Chapter",
|
|
||||||
"del_yes" => "Yes, I am sure.",
|
|
||||||
"del_no" => "No, cancel!"
|
|
||||||
],
|
|
||||||
"edit_title" => [
|
|
||||||
"title" => "Edit Title",
|
|
||||||
"save" => "Make Changes",
|
|
||||||
"delete" => "Delete Title"
|
|
||||||
],
|
|
||||||
"display" => [
|
|
||||||
"notice" => "If you are not familiar with this setting, please watch this video, it is really important before you break anything!",
|
|
||||||
"item" => "Item URL/Name",
|
|
||||||
"text" => "Display Text",
|
|
||||||
"icon" => "Glyphicon Icon",
|
|
||||||
"order" => "Order Level",
|
|
||||||
"displayed" => "Displayed",
|
|
||||||
"hidden" => "Hidden",
|
|
||||||
"delete" => "Are you sure you want to delete this Menu item?"
|
|
||||||
],
|
|
||||||
"statics" => [
|
|
||||||
"delete" => "Are you sure you want to delete this page? It will delete the MySQL entry, the Menu item AND the file. NO CHANCE FOR RECOVERY!",
|
|
||||||
"name" => "Page Name/URL",
|
|
||||||
"title" => "Display Name",
|
|
||||||
"private" => "Private?",
|
|
||||||
"menu" => "Create Menu item?",
|
|
||||||
"create" => "Create"
|
|
||||||
],
|
|
||||||
"editor" => [
|
|
||||||
"title" => "File Editor",
|
|
||||||
"edit" => "Edit File",
|
|
||||||
"delete" => "Delete Page",
|
|
||||||
"close" => "Close",
|
|
||||||
],
|
|
||||||
"errors" => [
|
|
||||||
"bad_username" => "Username contains bad characters!",
|
|
||||||
"bad_password" => "Password contains bad characters!",
|
|
||||||
"wrong_password" => "Password is wrong!",
|
|
||||||
"taken_username" => "This username is already taken!",
|
|
||||||
"unmatch_password" => "The passwords do not match!",
|
|
||||||
"attack" => "Are you sure you want to exist without saving?",
|
|
||||||
"captcha" => "The CAPTCHA was wrong... try again!",
|
|
||||||
"unsupported_image" => "The File you have tried to upload is NOT an Image (or it is empty)!",
|
|
||||||
"title_exists" => "The Title you are trying to add already exists with the same name!",
|
|
||||||
"used_invite" => "This Invite Code has already been used!",
|
|
||||||
"exising_item" => "The Item URL/Name/Display Text is already used!"
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
270
lang/de.lang.php
270
lang/de.lang.php
@ -1,270 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
# Deutsche Sprach-Datei
|
|
||||||
# Von Saintly2k
|
|
||||||
# Diese Datei ist IMMER mit der Englischen gleichauf. Bei Fehlern einfach korrigieren ^^
|
|
||||||
# Updated 08.07.2022
|
|
||||||
|
|
||||||
$lang = [
|
|
||||||
"cookie_modal" => [
|
|
||||||
"title" => "Diese Website erfordert die Verwendung von Cookies!",
|
|
||||||
"content" => "Hallo lieber Leser! Diese Seite erlaubt es Ihnen nicht, ein eigenes Konto zu erstellen und Ihren persönlichen Lesestand dort zu speichern. Aus diesem Grund verwenden wir Cookies, um Ihren Lesefortschritt zu speichern. Wenn du diese Funktion nutzen möchtest, musst du die Verwendung von Cookies akzeptieren. Wir wünschen Ihnen viel Spaß beim Lesen~",
|
|
||||||
"accept" => "Zustimmen",
|
|
||||||
"refuse" => "Ablehnen"
|
|
||||||
],
|
|
||||||
"install" => [
|
|
||||||
"title" => "FoOlSlideX Installieren",
|
|
||||||
"confirm" => "Los geht's!",
|
|
||||||
"after" => "Nachdem Sie auf 'Los geht's!' geklickt haben, werden Sie auf die Anmeldeseite weitergeleitet. Melden Sie sich dort mit dem folgenden Einladungscode an:",
|
|
||||||
"copy" => "Klicken zum kopieren"
|
|
||||||
],
|
|
||||||
"menu" => [
|
|
||||||
"home" => "Home",
|
|
||||||
"releases" => "Releases",
|
|
||||||
"titles" => "Mangas",
|
|
||||||
"more" => "Weiteres",
|
|
||||||
"quicksearch" => "Schnellsuche",
|
|
||||||
"search" => "Suche",
|
|
||||||
"account" => "Account",
|
|
||||||
"login" => "Einloggen",
|
|
||||||
"signup" => "Account erstellen",
|
|
||||||
"profile" => "Mein Profil",
|
|
||||||
"settings" => "Einstellungen",
|
|
||||||
"logout" => "Abmelden",
|
|
||||||
"add_new" => "Neuen Titel",
|
|
||||||
"bookmarks" => "Bookmarks",
|
|
||||||
"manage_groups" => "Gruppen Managen",
|
|
||||||
"groups" => "Gruppen",
|
|
||||||
"config" => "Seiten-Konfiguration",
|
|
||||||
"settings" => "Account Einstellungen",
|
|
||||||
"blog" => "Blog",
|
|
||||||
"blog2" => "Blog aktiviert",
|
|
||||||
"news" => "Neuigkeiten",
|
|
||||||
"news2" => "Neuigkeiten aktiviert",
|
|
||||||
"menu_dis" => "Menü Ansicht",
|
|
||||||
"statics" => "Statische Seiten"
|
|
||||||
],
|
|
||||||
"home" => [
|
|
||||||
"added_titles" => "Neue Titel",
|
|
||||||
"type" => "Typ",
|
|
||||||
"title" => "Titel",
|
|
||||||
"added" => "Hinzugefügt",
|
|
||||||
"released_chap" => "Neue Kapitel",
|
|
||||||
"chapter" => "Kapitel",
|
|
||||||
"chap_title" => "Kapitel Titel",
|
|
||||||
"group" => "Gruppe",
|
|
||||||
"uploader" => "Uploader"
|
|
||||||
],
|
|
||||||
"groups" => [
|
|
||||||
"add_group" => "Neue Gruppe hinzufügen",
|
|
||||||
"req_group" => "Neue Gruppe anfragen",
|
|
||||||
"name" => "Gruppen Name",
|
|
||||||
"short" => "Gruppen Kürzel",
|
|
||||||
"image" => "Gruppen Banner Bild (URL)",
|
|
||||||
"about" => "Über diese Gruppe (Unterstützt BBCode)",
|
|
||||||
"founded" => "Gruppe gegründet",
|
|
||||||
"website" => "Gruppen Website (Leer lassen für keine)",
|
|
||||||
"irc" => "Gruppen IRC Kanal (Leer lassen für keinen)",
|
|
||||||
"mangadex" => "Gruppen MangaDex Seite (Leer lassen für keine)",
|
|
||||||
"email" => "Kontakt eMail",
|
|
||||||
"confirm" => "Gruppe hinzufügen!",
|
|
||||||
"confirm_r" => "Gruppe anfragen!",
|
|
||||||
"group" => "Gruppe",
|
|
||||||
"infos" => "Informationen",
|
|
||||||
"short2" => "Kurz",
|
|
||||||
"founded2" => "Gegründet",
|
|
||||||
"links" => "Links",
|
|
||||||
"about2" => "Über",
|
|
||||||
"releases" => "Releases von dieser Gruppe",
|
|
||||||
"no_releas" => "Noch keine Releases im Moment!"
|
|
||||||
],
|
|
||||||
"group" => [
|
|
||||||
"website" => "Website",
|
|
||||||
"irc" => "IRC",
|
|
||||||
"mangadex" => "MangaDex",
|
|
||||||
"email" => "eMail",
|
|
||||||
"approve" => [
|
|
||||||
"not_approved" => "Diese Gruppe wurde noch nicht von einem Mitglied des Teams genehmigt und ist nur für Mods und Admins sichtbar.",
|
|
||||||
"action" => "Was möchtest du tun?",
|
|
||||||
"approve" => "Diese Gruppe zulassen",
|
|
||||||
"unapprove" => "Diese Gruppe löschen",
|
|
||||||
"notice" => "Nachdem du etwas getan hast, solltest du vielleicht diese Seite neu laden..."
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"edit_group" => [
|
|
||||||
"title" => "Gruppe bearbeiten",
|
|
||||||
],
|
|
||||||
"config" => [
|
|
||||||
"title" => "Konfiguration Bearbeiten",
|
|
||||||
"title2" => "Seitentitle",
|
|
||||||
"slogan" => "Seitenslogan",
|
|
||||||
"logo" => "Logo URL (Leer lassen für keins)",
|
|
||||||
"cookie" => "Cookie Prefix (Wenn du ihn änderst, gehen alle Bookmarks verloren!)",
|
|
||||||
"url" => "URL zur Seite (Mit https und MUSS MIT SCHRÄGSTRICH ENDEN!)",
|
|
||||||
"theme" => "Standard-Theme",
|
|
||||||
"themes" => [
|
|
||||||
1 => "Standard Hell",
|
|
||||||
2 => "Cerulean Hell",
|
|
||||||
3 => "Lumen Hell",
|
|
||||||
4 => "Lesbar Hell",
|
|
||||||
5 => "Slate Dunkel",
|
|
||||||
6 => "Cyborg Dunkel"
|
|
||||||
],
|
|
||||||
"start" => "Seite gegründet in",
|
|
||||||
"lang" => "Standard Sprache",
|
|
||||||
"disqus" => "Disqus Name (Optional)"
|
|
||||||
],
|
|
||||||
"login" => [
|
|
||||||
"error" => "Error",
|
|
||||||
"message" => "Sie haben noch keinen Account?",
|
|
||||||
"username" => "Nutzername",
|
|
||||||
"password" => "Passwort",
|
|
||||||
"captcha" => "Captcha",
|
|
||||||
"cookies" => "Eingeloggt bleiben (DIES VERWENDET COOKIES!)"
|
|
||||||
],
|
|
||||||
"signup" => [
|
|
||||||
"password" => "Passwort wiederholen",
|
|
||||||
"message" => "Sie haben schon einen Account?",
|
|
||||||
"used_invite" => "Die von Ihnen eingegebene Einladungs-Code wurde bereits verwendet!",
|
|
||||||
"empty_invite" => "Sie brauchen einen Einladungs-Code, um einen Account zu erstellen!",
|
|
||||||
"invite" => "Einladungs-Code"
|
|
||||||
],
|
|
||||||
"add_manga" => [
|
|
||||||
"add" => "Manga hinzufügen",
|
|
||||||
"title" => "*Manga Titel",
|
|
||||||
"cover" => "Cover Bild (1500x2150px)",
|
|
||||||
"alt" => "Alternative Namen",
|
|
||||||
"author" => "Author",
|
|
||||||
"genre" => "Genre (Mit Komma trennen)",
|
|
||||||
"type" => "*Lesestil (Manga, Manwha, Manhua)",
|
|
||||||
"released" => "Im Jahr x veröffentlicht",
|
|
||||||
"raw-st" => "*Status der Raws",
|
|
||||||
"status" => "*Status der Scanlation",
|
|
||||||
"descript" => "Beschreibung des Titels (Unterstützt HTML)",
|
|
||||||
"raw-url" => "URL zur Raw",
|
|
||||||
"licensed" => "Lizenzer (Leer lassen wenn unlizenziert)",
|
|
||||||
"official" => "URL zum offiziellem Release (Leer lassen wenn nicht vorhanden)",
|
|
||||||
"required" => "Erforderliche Felder sind mit * gekennzeichnet.",
|
|
||||||
"all_required" => "Alle Felder sind erforderlich!",
|
|
||||||
"manga" => "Manga",
|
|
||||||
"manhua" => "Manhua",
|
|
||||||
"manwha" => "Manwha",
|
|
||||||
"type_manga" => "Manga (Seite)",
|
|
||||||
"type_manhua" => "Manhua (Liste)",
|
|
||||||
"type_manwha" => "Manwha (Liste)",
|
|
||||||
"rawst" => [
|
|
||||||
1 => "Unbekannt",
|
|
||||||
2 => "Angekündigt",
|
|
||||||
3 => "Am Erscheinen",
|
|
||||||
4 => "Hiatus",
|
|
||||||
5 => "Abgeschlossen",
|
|
||||||
6 => "Canceled"
|
|
||||||
],
|
|
||||||
"scanst" => [
|
|
||||||
1 => "Geplant",
|
|
||||||
2 => "In Arbeit",
|
|
||||||
3 => "Scan auf Hiatus",
|
|
||||||
4 => "Zwangsweiser Hiatus (aufgrund von Exposition)",
|
|
||||||
5 => "Abgeschlossen",
|
|
||||||
6 => "Abgebrochen"
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"manga" => [
|
|
||||||
"alt" => "Alt. Name(n)",
|
|
||||||
"author" => "Author(en)",
|
|
||||||
"genre" => "Genre(s)",
|
|
||||||
"type" => "Lesestil",
|
|
||||||
"released" => "Erschienen (Jahr)",
|
|
||||||
"raw-status" => "Status der Raws",
|
|
||||||
"scan-status" => "Status der Scanlation",
|
|
||||||
"raw" => "Raw lesen/kaufen",
|
|
||||||
"licensed" => "Bitte unterstützen Sie den Autor, indem Sie das offizielle Werk kaufen, da es lizenziert wurde von",
|
|
||||||
"added" => "Dieser Manga wurde hinzugefügt am",
|
|
||||||
"edit_title" => "Titel editieren",
|
|
||||||
"add_ch" => "Kapitel hinzufügen",
|
|
||||||
"unknown" => "Unbekannt",
|
|
||||||
"edit_chap" => "Kapitel editieren",
|
|
||||||
"chapters" => "Kapitel",
|
|
||||||
"comments" => "Kommentare"
|
|
||||||
],
|
|
||||||
"add_chapter" => [
|
|
||||||
"title" => "Kapitel hinzufügen für",
|
|
||||||
"file" => "*ZIP-Datei zum Hochladen auswählen",
|
|
||||||
"volume" => "Band (Leer lassen für keins)",
|
|
||||||
"chapter" => "Kapitel (Leer lassen oder 0 für Oneshot)",
|
|
||||||
"ctitle" => "Kapitel Titel (Leer lassen für keinen)",
|
|
||||||
"button" => "Kapitel hinzufügen",
|
|
||||||
"ser_grp" => "Nach Gruppe suchen...",
|
|
||||||
"sel_grp1" => "Gruppe 1 auswählen",
|
|
||||||
"sel_grp2" => "Gruppe 2 auswählen",
|
|
||||||
"sel_grp3" => "Gruppe 3 auswählen",
|
|
||||||
"no_group" => "Keine Gruppe",
|
|
||||||
"none" => "Nichts",
|
|
||||||
"group_unap" => "Du siehst deine Gruppe nicht? Das heißt, dass sie noch nicht zugelassen wurde. Warte noch etwas oder lade ohne Gruppe hoch. Du kannst das später immer ändern."
|
|
||||||
],
|
|
||||||
"chapter" => [
|
|
||||||
"menu" => "Navigation",
|
|
||||||
"close" => "Verstecken",
|
|
||||||
"back_to_m" => "Zurück zum Manga",
|
|
||||||
"bookmark" => "Bookmark",
|
|
||||||
"update_bm" => "Aktualisiere Bookmark",
|
|
||||||
"remove_bm" => "Entferne Bookmark",
|
|
||||||
"comments" => "Zu den Kommentaren",
|
|
||||||
"next" => "Nächstes Kapitel",
|
|
||||||
"prev" => "Vorheriges Chapter",
|
|
||||||
"oneshot" => "Oneshot"
|
|
||||||
],
|
|
||||||
"edit_chapter" => [
|
|
||||||
"title" => "Kapitel bearbeiten",
|
|
||||||
"file" => "Neue ZIP auswählen (löscht alte)",
|
|
||||||
"edit" => "Kapitel bearbeiten",
|
|
||||||
"return" => "Zurück zum Titel",
|
|
||||||
"delete" => "Kapitel löschen",
|
|
||||||
"del_yes" => "Ja, ich bin mir sicher.",
|
|
||||||
"del_no" => "Nein, abbrechen!"
|
|
||||||
],
|
|
||||||
"edit_title" => [
|
|
||||||
"title" => "Titel bearbeiten",
|
|
||||||
"save" => "Änderrungen speichern",
|
|
||||||
"delete" => "Titel löschen"
|
|
||||||
],
|
|
||||||
"display" => [
|
|
||||||
"notice" => "Wenn du mit diesen Einstellungen nicht vertraut bist, schau dir bitte dieses Video an, es ist wirklich wichtig, bevor du etwas kaputt machst!",
|
|
||||||
"item" => "Eintrag URL/Name",
|
|
||||||
"text" => "Anzeige Text",
|
|
||||||
"icon" => "Glyphicon Icon",
|
|
||||||
"order" => "Anzeige Ebene",
|
|
||||||
"displayed" => "Angezeigt",
|
|
||||||
"hidden" => "Versteckt",
|
|
||||||
"delete" => "Bist du sicher, dass du diesen Menüeintrag löschen möchtest?"
|
|
||||||
],
|
|
||||||
"statics" => [
|
|
||||||
"delete" => "Bist du sicher, dass du diese Seite löschen willst? Es wird der MySQL-Eintrag, der Menüpunkt UND die Datei gelöscht. KEINE CHANCE AUF WIEDERHERSTELLUNG!",
|
|
||||||
"name" => "Seiten Name/URL",
|
|
||||||
"title" => "Anzeige Name",
|
|
||||||
"private" => "Privat?",
|
|
||||||
"menu" => "Menüeintrag erstellen?",
|
|
||||||
"create" => "Erstellen"
|
|
||||||
],
|
|
||||||
"editor" => [
|
|
||||||
"title" => "Dateieditor",
|
|
||||||
"edit" => "Datei bearbeiten",
|
|
||||||
"delete" => "Seite löschen",
|
|
||||||
"close" => "Schließen",
|
|
||||||
],
|
|
||||||
"errors" => [
|
|
||||||
"bad_username" => "Benutzername enthält ungültige Zeichen!",
|
|
||||||
"bad_password" => "Das Passwort enthält ungültige Zeichen!",
|
|
||||||
"wrong_password" => "Das Passwort ist falsch!",
|
|
||||||
"taken_username" => "Dieser Benutzername ist bereits vergeben!",
|
|
||||||
"unmatch_password" => "Die Passwörter stimmen nicht überein!",
|
|
||||||
"attack" => "Sind Sie sicher, dass Sie ohne Speichern existieren wollen?",
|
|
||||||
"captcha" => "Das CAPTCHA war falsch... versuchen Sie es erneut!",
|
|
||||||
"unsupported_image" => "Die Datei, die Sie hochzuladen versucht haben, ist KEIN Bild (oder sie ist leer)!",
|
|
||||||
"title_exists" => "Der Titel, den Sie hinzufügen möchten, existiert bereits mit demselben Namen!",
|
|
||||||
"used_invite" => "Dieser Einladungscode wurde bereits verwendet!",
|
|
||||||
"exising_item" => "Der Eintrag URL/Name/Anzeigetext wird bereits verwendet!"
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
270
lang/en.lang.php
270
lang/en.lang.php
@ -1,270 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
# English Language File
|
|
||||||
# By Saintly2k
|
|
||||||
# This is the base file which is always up-to-date. If you find any grammar mistakes, correct them ^^
|
|
||||||
# Updated 08.07.2022
|
|
||||||
|
|
||||||
$lang = [
|
|
||||||
"cookie_modal" => [
|
|
||||||
"title" => "This website requires the use of Cookies!",
|
|
||||||
"content" => "Hello dear reader! This site doesn't allow you to create an account and store your reading progress there. Due to that, we use Cookies to store your reading progress. If you want to use this function, you need to accept us using Cookies. We hope you have fun reading~",
|
|
||||||
"accept" => "I accept",
|
|
||||||
"refuse" => "I refuse"
|
|
||||||
],
|
|
||||||
"install" => [
|
|
||||||
"title" => "Install FoOlSlideX",
|
|
||||||
"confirm" => "Let's go!",
|
|
||||||
"after" => "After you click 'Let's go!', you will be redirected to the signup page. Signup there using the following invite code:",
|
|
||||||
"copy" => "Click to copy"
|
|
||||||
],
|
|
||||||
"menu" => [
|
|
||||||
"home" => "Home",
|
|
||||||
"releases" => "Releases",
|
|
||||||
"titles" => "Titles",
|
|
||||||
"more" => "More",
|
|
||||||
"quicksearch" => "Quicksearch",
|
|
||||||
"search" => "Search",
|
|
||||||
"account" => "Account",
|
|
||||||
"login" => "Login",
|
|
||||||
"signup" => "Signup",
|
|
||||||
"profile" => "My Profile",
|
|
||||||
"settings" => "Settings",
|
|
||||||
"logout" => "Logout",
|
|
||||||
"add_new" => "New Title",
|
|
||||||
"bookmarks" => "Bookmarks",
|
|
||||||
"manage_groups" => "Manage Groups",
|
|
||||||
"groups" => "Groups",
|
|
||||||
"config" => "Edit Config",
|
|
||||||
"settings" => "Account Settings",
|
|
||||||
"blog" => "Blog",
|
|
||||||
"blog2" => "Blog activated",
|
|
||||||
"news" => "News",
|
|
||||||
"news2" => "News activated",
|
|
||||||
"menu_dis" => "Menu Display",
|
|
||||||
"statics" => "Static Pages"
|
|
||||||
],
|
|
||||||
"home" => [
|
|
||||||
"added_titles" => "Added Titles",
|
|
||||||
"type" => "Type",
|
|
||||||
"title" => "Title",
|
|
||||||
"added" => "Added",
|
|
||||||
"released_chap" => "Released Chapters",
|
|
||||||
"chapter" => "Chapter",
|
|
||||||
"chap_title" => "Chapter Title",
|
|
||||||
"group" => "Group",
|
|
||||||
"uploader" => "Uploader"
|
|
||||||
],
|
|
||||||
"groups" => [
|
|
||||||
"add_group" => "Add new Group",
|
|
||||||
"req_group" => "Request new Group",
|
|
||||||
"name" => "Group Name",
|
|
||||||
"short" => "Group short Name",
|
|
||||||
"image" => "Group Banner Image (URL)",
|
|
||||||
"about" => "About this Group (Supports BBCode)",
|
|
||||||
"founded" => "Group founded",
|
|
||||||
"website" => "Group Website (Leave empty for none)",
|
|
||||||
"irc" => "Group IRC Channel (Leave empty for none)",
|
|
||||||
"mangadex" => "Group MangaDex site (Leave empty for none)",
|
|
||||||
"email" => "Contact eMail",
|
|
||||||
"confirm" => "Add group!",
|
|
||||||
"confirm_r" => "Request group!",
|
|
||||||
"group" => "Group",
|
|
||||||
"infos" => "Informations",
|
|
||||||
"short2" => "Short",
|
|
||||||
"founded2" => "Founded",
|
|
||||||
"links" => "Links",
|
|
||||||
"about2" => "About",
|
|
||||||
"releases" => "Releases by this Group",
|
|
||||||
"no_releas" => "There are no Releases yet!"
|
|
||||||
],
|
|
||||||
"group" => [
|
|
||||||
"website" => "Website",
|
|
||||||
"irc" => "IRC",
|
|
||||||
"mangadex" => "MangaDex",
|
|
||||||
"email" => "eMail",
|
|
||||||
"approve" => [
|
|
||||||
"not_approved" => "This group has not been approved by a Staff member yet and is only visible to Mods and Admins.",
|
|
||||||
"action" => "What do you want to do?",
|
|
||||||
"approve" => "Approve this Group",
|
|
||||||
"unapprove" => "Delete this Group",
|
|
||||||
"notice" => "After approving, you might want to reload this page..."
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"edit_group" => [
|
|
||||||
"title" => "Edit Group",
|
|
||||||
],
|
|
||||||
"config" => [
|
|
||||||
"title" => "Edit Config",
|
|
||||||
"title2" => "Site Title",
|
|
||||||
"slogan" => "Site Slogan",
|
|
||||||
"logo" => "Logo URL (Leave empty for none)",
|
|
||||||
"cookie" => "Cookie Prefix (If you change, all old Bookmarks will be lost!)",
|
|
||||||
"url" => "URL to Site (With https and END WITH SLASH!)",
|
|
||||||
"theme" => "Site Default Theme",
|
|
||||||
"themes" => [
|
|
||||||
1 => "Default Light",
|
|
||||||
2 => "Cerulean Light",
|
|
||||||
3 => "Lumen Light",
|
|
||||||
4 => "Readable Light",
|
|
||||||
5 => "Slate Dark",
|
|
||||||
6 => "Cyborg Dark"
|
|
||||||
],
|
|
||||||
"start" => "Site Started in",
|
|
||||||
"lang" => "Default Language",
|
|
||||||
"disqus" => "Disqus Name (Optional)"
|
|
||||||
],
|
|
||||||
"login" => [
|
|
||||||
"error" => "Error",
|
|
||||||
"message" => "Don't have an account yet?",
|
|
||||||
"username" => "Username",
|
|
||||||
"password" => "Password",
|
|
||||||
"captcha" => "Captcha",
|
|
||||||
"cookies" => "Stay logged in (THIS USES COOKIES!)"
|
|
||||||
],
|
|
||||||
"signup" => [
|
|
||||||
"password" => "Repeat Password",
|
|
||||||
"message" => "Already have an account?",
|
|
||||||
"used_invite" => "The Invite you entered has already been used!",
|
|
||||||
"empty_invite" => "You need an invite to create an account!",
|
|
||||||
"invite" => "Invite Code"
|
|
||||||
],
|
|
||||||
"add_manga" => [
|
|
||||||
"add" => "Add Manga",
|
|
||||||
"title" => "*Manga Title",
|
|
||||||
"cover" => "Cover Image (1500x2150px)",
|
|
||||||
"alt" => "Alt Names",
|
|
||||||
"author" => "Author",
|
|
||||||
"genre" => "Genre (Seperate by comma)",
|
|
||||||
"type" => "*Reading type (Manga, Manwha, Manhua)",
|
|
||||||
"released" => "Released in Year",
|
|
||||||
"raw-st" => "*Status of Raws",
|
|
||||||
"status" => "*Status of Scanlation",
|
|
||||||
"descript" => "Description of Title (Supports HTML)",
|
|
||||||
"raw-url" => "URL to Raw",
|
|
||||||
"licensed" => "Licenser (leave empty if unlicensed)",
|
|
||||||
"official" => "URL to official Release (leave empty if none)",
|
|
||||||
"required" => "Required fiels are marked with *",
|
|
||||||
"all_required" => "All fields are required!",
|
|
||||||
"manga" => "Manga",
|
|
||||||
"manhua" => "Manhua",
|
|
||||||
"manwha" => "Manwha",
|
|
||||||
"type_manga" => "Manga (Paged)",
|
|
||||||
"type_manhua" => "Manhua (List)",
|
|
||||||
"type_manwha" => "Manwha (List)",
|
|
||||||
"rawst" => [
|
|
||||||
1 => "Unknown",
|
|
||||||
2 => "Announced",
|
|
||||||
3 => "Ongoing",
|
|
||||||
4 => "Hiatus",
|
|
||||||
"5" => "Completed",
|
|
||||||
6 => "Canceled"
|
|
||||||
],
|
|
||||||
"scanst" => [
|
|
||||||
1 => "Plan to Scan",
|
|
||||||
2 => "In Work",
|
|
||||||
3 => "Scan on Hiatus",
|
|
||||||
4 => "Forced Hiatus (due to exposure)",
|
|
||||||
5 => "Completed",
|
|
||||||
6 => "Dropped"
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"manga" => [
|
|
||||||
"alt" => "Alt. Name(s)",
|
|
||||||
"author" => "Author(s)",
|
|
||||||
"genre" => "Genre(s)",
|
|
||||||
"type" => "Reading Type",
|
|
||||||
"released" => "Released (Year)",
|
|
||||||
"raw-status" => "Status of the Raws",
|
|
||||||
"scan-status" => "Status of Scanlation",
|
|
||||||
"raw" => "Read/Buy official Raw",
|
|
||||||
"licensed" => "Please support the Author by buying the official work since it has been licensed by",
|
|
||||||
"added" => "This Manga has been added on",
|
|
||||||
"edit_title" => "Edit Title",
|
|
||||||
"add_ch" => "Add Chapter",
|
|
||||||
"unknown" => "Unknown",
|
|
||||||
"edit_chap" => "Edit Chapter",
|
|
||||||
"chapters" => "Chapters",
|
|
||||||
"comments" => "Comments"
|
|
||||||
],
|
|
||||||
"add_chapter" => [
|
|
||||||
"title" => "Add Chapter for",
|
|
||||||
"file" => "*Select ZIP/RAR File to upload",
|
|
||||||
"volume" => "Volume (Leave empty for none)",
|
|
||||||
"chapter" => "Chapter (Leave empty or 0 for Oneshot)",
|
|
||||||
"ctitle" => "Chapter Title (Leave empty for none)",
|
|
||||||
"button" => "Add Chapter",
|
|
||||||
"ser_grp" => "Search for Group...",
|
|
||||||
"sel_grp1" => "Select Group 1",
|
|
||||||
"sel_grp2" => "Select Group 2",
|
|
||||||
"sel_grp3" => "Select Group 3",
|
|
||||||
"no_group" => "No Group",
|
|
||||||
"none" => "None",
|
|
||||||
"group_unap" => "Don't see your group? That means it's still unapproved. Wait some more or upload without a group. You can always edit that later."
|
|
||||||
],
|
|
||||||
"chapter" => [
|
|
||||||
"menu" => "Navigation",
|
|
||||||
"close" => "Hide",
|
|
||||||
"back_to_m" => "Back to Manga",
|
|
||||||
"bookmark" => "Bookmark",
|
|
||||||
"update_bm" => "Update Bookmark",
|
|
||||||
"remove_bm" => "Remove Bookmark",
|
|
||||||
"comments" => "To the Comments",
|
|
||||||
"next" => "Next Chapter",
|
|
||||||
"prev" => "Previous Chapter",
|
|
||||||
"oneshot" => "Oneshot"
|
|
||||||
],
|
|
||||||
"edit_chapter" => [
|
|
||||||
"title" => "Edit Chapter",
|
|
||||||
"file" => "Select new ZIP/RAR (deletes old)",
|
|
||||||
"edit" => "Edit Chapter",
|
|
||||||
"return" => "Return to Title",
|
|
||||||
"delete" => "Delete Chapter",
|
|
||||||
"del_yes" => "Yes, I am sure.",
|
|
||||||
"del_no" => "No, cancel!"
|
|
||||||
],
|
|
||||||
"edit_title" => [
|
|
||||||
"title" => "Edit Title",
|
|
||||||
"save" => "Make Changes",
|
|
||||||
"delete" => "Delete Title"
|
|
||||||
],
|
|
||||||
"display" => [
|
|
||||||
"notice" => "If you are not familiar with this setting, please watch this video, it is really important before you break anything!",
|
|
||||||
"item" => "Item URL/Name",
|
|
||||||
"text" => "Display Text",
|
|
||||||
"icon" => "Glyphicon Icon",
|
|
||||||
"order" => "Order Level",
|
|
||||||
"displayed" => "Displayed",
|
|
||||||
"hidden" => "Hidden",
|
|
||||||
"delete" => "Are you sure you want to delete this Menu item?"
|
|
||||||
],
|
|
||||||
"statics" => [
|
|
||||||
"delete" => "Are you sure you want to delete this page? It will delete the MySQL entry, the Menu item AND the file. NO CHANCE FOR RECOVERY!",
|
|
||||||
"name" => "Page Name/URL",
|
|
||||||
"title" => "Display Name",
|
|
||||||
"private" => "Private?",
|
|
||||||
"menu" => "Create Menu item?",
|
|
||||||
"create" => "Create"
|
|
||||||
],
|
|
||||||
"editor" => [
|
|
||||||
"title" => "File Editor",
|
|
||||||
"edit" => "Edit File",
|
|
||||||
"delete" => "Delete Page",
|
|
||||||
"close" => "Close",
|
|
||||||
],
|
|
||||||
"errors" => [
|
|
||||||
"bad_username" => "Username contains bad characters!",
|
|
||||||
"bad_password" => "Password contains bad characters!",
|
|
||||||
"wrong_password" => "Password is wrong!",
|
|
||||||
"taken_username" => "This username is already taken!",
|
|
||||||
"unmatch_password" => "The passwords do not match!",
|
|
||||||
"attack" => "Are you sure you want to exist without saving?",
|
|
||||||
"captcha" => "The CAPTCHA was wrong... try again!",
|
|
||||||
"unsupported_image" => "The File you have tried to upload is NOT an Image (or it is empty)!",
|
|
||||||
"title_exists" => "The Title you are trying to add already exists with the same name!",
|
|
||||||
"used_invite" => "This Invite Code has already been used!",
|
|
||||||
"exising_item" => "The Item URL/Name/Display Text is already used!"
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
270
lang/pt.lang.php
270
lang/pt.lang.php
@ -1,270 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
# Arquivo de lingua portuguesa
|
|
||||||
# By luckkyz
|
|
||||||
# Translated, then left to rot?
|
|
||||||
# Updated 23.06.2022
|
|
||||||
|
|
||||||
$lang = [
|
|
||||||
"cookie_modal" => [
|
|
||||||
"title" => "Este site requer o uso de Cookies!",
|
|
||||||
"content" => "Olá caro leitor! Este site não permite que você crie uma conta e armazene seu progresso de leitura lá. Devido a isso, usamos cookies para armazenar seu progresso de leitura. Se você quiser usar esta função, você precisa nos aceitar usando Cookies. Esperamos que você se divirta lendo~",
|
|
||||||
"accept" => "Eu aceito",
|
|
||||||
"refuse" => "Eu recuso"
|
|
||||||
],
|
|
||||||
"install" => [
|
|
||||||
"title" => "Instalar FoOlSlideX", # Translated :)
|
|
||||||
"confirm" => "Finalizar", # Translated :)
|
|
||||||
"after" => "Após clicar em 'Finalizar', você vai ser redirecionado para pagina de registro. Você pode se registrar usando o seguinte codigo:", # Translated :)
|
|
||||||
"copy" => "Clique para copiar" # Translated :)
|
|
||||||
],
|
|
||||||
"menu" => [
|
|
||||||
"home" => "Home",
|
|
||||||
"releases" => "Lançamentos",
|
|
||||||
"titles" => "Titulos",
|
|
||||||
"more" => "Mais",
|
|
||||||
"quicksearch" => "Pesquisa rapida",
|
|
||||||
"search" => "Pesquisar",
|
|
||||||
"account" => "Conta",
|
|
||||||
"login" => "Login",
|
|
||||||
"signup" => "Registro",
|
|
||||||
"profile" => "Meu perfil",
|
|
||||||
"settings" => "Configurações",
|
|
||||||
"logout" => "Logout",
|
|
||||||
"add_new" => "Novo titulo",
|
|
||||||
"bookmarks" => "Favoritos",
|
|
||||||
"manage_groups" => "Gerenciar Grupos", # Translated :)
|
|
||||||
"groups" => "Grupos", # Translated :)
|
|
||||||
"config" => "Editar Configurações", # Translated :)
|
|
||||||
"settings" => "Sua conta", # Translated :)
|
|
||||||
"blog" => "Blog", # Translated :)
|
|
||||||
"blog2" => "Blog ativado", # Translated :)
|
|
||||||
"news" => "Novidades", # Translated :)
|
|
||||||
"news2" => "Novidades ativado!", # Translated :)
|
|
||||||
"menu_dis" => "Menu Display", # Translated :)
|
|
||||||
"statics" => "Paginas estaticas" # Translated :)
|
|
||||||
],
|
|
||||||
"home" => [
|
|
||||||
"added_titles" => "Titulos Adicionados", # Translated :)
|
|
||||||
"type" => "Tipo", # Translated :)
|
|
||||||
"title" => "Titulo", # Translated :)
|
|
||||||
"added" => "Adicionado", # Translated :)
|
|
||||||
"released_chap" => "Capitulos Publicados", # Translated :)
|
|
||||||
"chapter" => "Capitulo", # Translated :)
|
|
||||||
"chap_title" => "Titulo do Cap", # Translated :)
|
|
||||||
"group" => "Grupo", # Translated :)
|
|
||||||
"uploader" => "Uploader" # Translated :)
|
|
||||||
],
|
|
||||||
"groups" => [
|
|
||||||
"add_group" => "Adicionar novo grupo", # Translated :)
|
|
||||||
"req_group" => "Solicite novo Grupo", # Translated :)
|
|
||||||
"name" => "Nome do Grupo", # Translated :)
|
|
||||||
"short" => "Nome curto do grupo", # Translated :)
|
|
||||||
"image" => "Imagem do banner do grupo (URL)", # Translated :)
|
|
||||||
"about" => "Sobre este Grupo (Suporta BBCode)", # Translated :)
|
|
||||||
"founded" => "Grupo fundado", # Translated :)
|
|
||||||
"website" => "Site do grupo (Deixe vazio para nenhum)", # Translated :)
|
|
||||||
"irc" => "Canal do Grupo IRC (Deixe vazio para nenhum)", # Translated :)
|
|
||||||
"mangadex" => "Site do Grupo MangaDex (Deixe vazio para nenhum)", # Needs Translation
|
|
||||||
"email" => "Contato Email", # Translated :)
|
|
||||||
"confirm" => "Adicionar grupo!", # Translated :)
|
|
||||||
"confirm_r" => "Solicitar grupo!", # Translated :)
|
|
||||||
"group" => "Grupo", # Translated :)
|
|
||||||
"infos" => "Informações", # Translated :)
|
|
||||||
"short2" => "Curto", # Translated :)
|
|
||||||
"founded2" => "Fundado", # Translated :)
|
|
||||||
"links" => "Links", # Translated :)
|
|
||||||
"about2" => "Sobre", # Translated :)
|
|
||||||
"releases" => "Lançamentos por este grupo", # Translated :)
|
|
||||||
"no_releas" => "Ainda não há lançamentos!" # Translated :)
|
|
||||||
],
|
|
||||||
"group" => [
|
|
||||||
"website" => "Website", # Translated :)
|
|
||||||
"irc" => "IRC", # Translated :)
|
|
||||||
"mangadex" => "MangaDex", # Translated :)
|
|
||||||
"email" => "eMail", # Translated :)
|
|
||||||
"approve" => [
|
|
||||||
"not_approved" => "Este grupo ainda não foi aprovado por um membro da Equipe e só é visível para Mods e Administradores.", # Translated :)
|
|
||||||
"action" => "O que você quer fazer?", # Translated :)
|
|
||||||
"approve" => "Aprovar este grupo", # Translated :)
|
|
||||||
"unapprove" => "Deletar este grupo", # Translated :)
|
|
||||||
"notice" => "Depois de aprovar, você pode querer recarregar esta página..." # Translated :)
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"edit_group" => [
|
|
||||||
"title" => "Editar Grupo", # Translated :)
|
|
||||||
],
|
|
||||||
"config" => [
|
|
||||||
"title" => "Editar Configuração", # Translated :)
|
|
||||||
"title2" => "Titulo do site", # Translated :)
|
|
||||||
"slogan" => "Logo do site", # Translated :)
|
|
||||||
"logo" => "Logo URL (deixe em branco se não possuir)", # Translated :)
|
|
||||||
"cookie" => "Cookie Prefix (If you change, all old Bookmarks will be lost!)", # Translated :)
|
|
||||||
"url" => "URL para o Site (deixe https e deixar acabar com /)", # Translated :)
|
|
||||||
"theme" => "Tema padrão do site", # Translated :)
|
|
||||||
"themes" => [
|
|
||||||
1 => "Default Light", # Translated :)
|
|
||||||
2 => "Cerulean Light", # Translated :)
|
|
||||||
3 => "Lumen Light", # Translated :)
|
|
||||||
4 => "Readable Light", # Translated :)
|
|
||||||
5 => "Slate Dark", # Translated :)
|
|
||||||
6 => "Cyborg Dark" # Translated :)
|
|
||||||
],
|
|
||||||
"start" => "Site iniciou em", # Translated :)
|
|
||||||
"lang" => "Linguagem Padrão", # Translated :)
|
|
||||||
"disqus" => "Disqus Name (Opicional)" # Translated :)
|
|
||||||
],
|
|
||||||
"login" => [
|
|
||||||
"error" => "Error",
|
|
||||||
"message" => "Cara, você ainda não tem uma conta...",
|
|
||||||
"username" => "Username",
|
|
||||||
"password" => "Senha",
|
|
||||||
"captcha" => "Captcha",
|
|
||||||
"cookies" => "Sempre Logado (Isso utiliza cookies!)"
|
|
||||||
],
|
|
||||||
"signup" => [
|
|
||||||
"password" => "Repetir senha",
|
|
||||||
"message" => "Já tem uma conta?",
|
|
||||||
"used_invite" => "O Convite que você inseriu já foi usado!",
|
|
||||||
"empty_invite" => "Você precisa de um convite para criar uma conta!",
|
|
||||||
"invite" => "Código de convite"
|
|
||||||
],
|
|
||||||
"add_manga" => [
|
|
||||||
"add" => "Adicionar Mangá",
|
|
||||||
"title" => "*Titulo do Mangá",
|
|
||||||
"cover" => "Imagem de cobertura (1500x2150px)",
|
|
||||||
"alt" => "Nomes alternativos",
|
|
||||||
"author" => "Autor",
|
|
||||||
"genre" => "Genero (Separe com virgula)",
|
|
||||||
"type" => "*Tipo de livro (Manga, Manwha, Manhua)",
|
|
||||||
"released" => "Lançado no Ano",
|
|
||||||
"raw-st" => "*Status do livro",
|
|
||||||
"status" => "*Status de Scan",
|
|
||||||
"descript" => "Descrição do Título (Suporta HTML)",
|
|
||||||
"raw-url" => "URL para Raw",
|
|
||||||
"licensed" => "Licença (Deixe limpo se estiver sem licença)",
|
|
||||||
"official" => "URL para lançamento oficial (deixe limpo e não tiver)",
|
|
||||||
"required" => "Os campos necessários são marcados com *",
|
|
||||||
"all_required" => "Todos os campos são necessários!", # Translated :)
|
|
||||||
"manga" => "Manga",
|
|
||||||
"manhua" => "Manhua",
|
|
||||||
"manwha" => "Manwha",
|
|
||||||
"type_manga" => "Manga (Paginada)",
|
|
||||||
"type_manhua" => "Manhua (Listada)",
|
|
||||||
"type_manwha" => "Manwha (Listada)",
|
|
||||||
"rawst" => [
|
|
||||||
1 => "Desconhecido",
|
|
||||||
2 => "Anunciado",
|
|
||||||
3 => "Lançamento",
|
|
||||||
4 => "Hiatus",
|
|
||||||
"5" => "Completado",
|
|
||||||
6 => "Cancelado"
|
|
||||||
],
|
|
||||||
"scanst" => [
|
|
||||||
1 => "Plano para Scan",
|
|
||||||
2 => "Em trabalho",
|
|
||||||
3 => "Scan em Hiatus",
|
|
||||||
4 => "Hiatus Forçado (devido à exposição)",
|
|
||||||
5 => "Completado",
|
|
||||||
6 => "Dropado"
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"manga" => [
|
|
||||||
"alt" => "Nomes Alternativos",
|
|
||||||
"author" => "Autor(es)",
|
|
||||||
"genre" => "Genero(s)",
|
|
||||||
"type" => "Tipo de livro",
|
|
||||||
"released" => "Lançamento (Ano)",
|
|
||||||
"raw-status" => "Status do livro",
|
|
||||||
"scan-status" => "Status da Scan",
|
|
||||||
"raw" => "Leia/Compre o livre oficial.",
|
|
||||||
"licensed" => "Por favor, apoie o Autor comprando a obra oficial desde que foi licenciada por",
|
|
||||||
"added" => "Este mangá foi adicionado em",
|
|
||||||
"edit_title" => "Editar titulo",
|
|
||||||
"add_ch" => "Adicionar capitulo",
|
|
||||||
"unknown" => "Desconhecido",
|
|
||||||
"edit_chap" => "Editar capitulo",
|
|
||||||
"chapters" => "Capitulos", # Translated :)
|
|
||||||
"comments" => "Comentarios" # Translated :)
|
|
||||||
],
|
|
||||||
"add_chapter" => [
|
|
||||||
"title" => "Adicionar capitulo para",
|
|
||||||
"file" => "*Selecione arquivo ZIP para enviar",
|
|
||||||
"volume" => "Volume (Deixe vazio para nenhum)",
|
|
||||||
"chapter" => "Capitulo (Deixe vazio ou 0 para Oneshot)",
|
|
||||||
"ctitle" => "Titulo do Capitulo (Deixe vazio para nenhum)",
|
|
||||||
"button" => "Adicionar capitulo",
|
|
||||||
"ser_grp" => "Procurar por grupo...", # Translated :)
|
|
||||||
"sel_grp1" => "Selecionar Grupo 1", # Translated :)
|
|
||||||
"sel_grp2" => "Selecionar Grupo 2", # Translated :)
|
|
||||||
"sel_grp3" => "Selecionar Grupo 3", # Translated :)
|
|
||||||
"no_group" => "Sem grupo", # Translated :)
|
|
||||||
"none" => "Nenhum", # Translated :)
|
|
||||||
"group_unap" => "Não vê seu grupo? Isso significa que ainda não foi aprovado. Espere um pouco mais ou faça upload sem um grupo. Você sempre pode editar isso depois." # Translated :)
|
|
||||||
],
|
|
||||||
"chapter" => [
|
|
||||||
"menu" => "Navegação",
|
|
||||||
"close" => "Esconder",
|
|
||||||
"back_to_m" => "Voltar para o mangá",
|
|
||||||
"bookmark" => "Favoritos",
|
|
||||||
"update_bm" => "Atualizar Favoritos",
|
|
||||||
"remove_bm" => "Remover Favoritos",
|
|
||||||
"comments" => "Ir para comentarios",
|
|
||||||
"next" => "Proximo capitulo",
|
|
||||||
"prev" => "Capitulo anterior",
|
|
||||||
"oneshot" => "Oneshot"
|
|
||||||
],
|
|
||||||
"edit_chapter" => [
|
|
||||||
"title" => "Editar Capitulo",
|
|
||||||
"file" => "Selecione novo ZIP (exclui antigo)",
|
|
||||||
"edit" => "Editar capitulo",
|
|
||||||
"return" => "Retornar para o titulo",
|
|
||||||
"delete" => "Eliminar Capítulo",
|
|
||||||
"del_yes" => "Sim, tenho a certeza.",
|
|
||||||
"del_no" => "Não, cancelar!"
|
|
||||||
],
|
|
||||||
"edit_title" => [
|
|
||||||
"title" => "Editar Titulo",
|
|
||||||
"save" => "Faça mudanças",
|
|
||||||
"delete" => "Apagar título"
|
|
||||||
],
|
|
||||||
"display" => [
|
|
||||||
"notice" => "Se você não está familiarizado com esta configuração, por favor, assista a este vídeo, é realmente importante antes de quebrar qualquer coisa!", # Translated :)
|
|
||||||
"item" => "Item URL/Name", # Translated :)
|
|
||||||
"text" => "Nome de exibição", # Translated :)
|
|
||||||
"icon" => "Glyphicon Icon", # Translated :)
|
|
||||||
"order" => "Ordenar Level", # Translated :)
|
|
||||||
"displayed" => "Exibir", # Translated :)
|
|
||||||
"hidden" => "Escondido", # Translated :)
|
|
||||||
"delete" => "Tem certeza de que deseja excluir este item menu?" # Translated :)
|
|
||||||
],
|
|
||||||
"statics" => [
|
|
||||||
"delete" => "Tem certeza de que deseja excluir esta página? Ele excluirá a entrada MySQL, o item Menu e o arquivo. SEM CHANCE DE RECUPERAÇÃO!", # Translated :)
|
|
||||||
"name" => "Pagina Nome/URL", # Translated :)
|
|
||||||
"title" => "Nome de exibição", # Translated :)
|
|
||||||
"private" => "Privado?", # Translated :)
|
|
||||||
"menu" => "Criar item menu?", # Translated :)
|
|
||||||
"create" => "Criar" # Translated :)
|
|
||||||
],
|
|
||||||
"editor" => [
|
|
||||||
"title" => "Editor de arquivos", # Translated :)
|
|
||||||
"edit" => "Editar arquivo", # Translated :)
|
|
||||||
"delete" => "Deletar pagina", # Translated :)
|
|
||||||
"close" => "Fechar", # Translated :)
|
|
||||||
],
|
|
||||||
"errors" => [
|
|
||||||
"bad_username" => "O nome de usuário contém caracteres ruins!",
|
|
||||||
"bad_password" => "A senha contém caracteres ruins!",
|
|
||||||
"wrong_password" => "A senha está errada!",
|
|
||||||
"taken_username" => "Este nome de usuário já está sendo utilizado!",
|
|
||||||
"unmatch_password" => "As senhas não batem!",
|
|
||||||
"attack" => "Tem certeza que quer existir sem salvar?",
|
|
||||||
"captcha" => "O CAPTCHA estava errado... Tentar novamente!",
|
|
||||||
"unsupported_image" => "O arquivo que você tentou carregar NÃO é uma imagem (ou está vazia)!",
|
|
||||||
"title_exists" => "O Título que você está tentando adicionar já existe com o mesmo nome!",
|
|
||||||
"used_invite" => "Este Código de Convite já foi usado!",
|
|
||||||
"exising_item" => "O URL do item/Nome/Display Text já está usado!" # Translated :)
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
270
lang/ru.lang.php
270
lang/ru.lang.php
@ -1,270 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
# Russian Language File, ver: 0.3b
|
|
||||||
# Перевод может быть не корректным, если переведенный текст ещё не задействован в функционале!
|
|
||||||
# The translation may not be correct if the translated text is not yet functional!
|
|
||||||
# UpDated 15.06.2022
|
|
||||||
|
|
||||||
$lang = [
|
|
||||||
"cookie_modal" => [
|
|
||||||
"title" => "Этот сайт требует использования Cookies!",
|
|
||||||
"content" => "Здравствуй, дорогой читатель! Этот сайт не позволяет вам создать аккаунт и хранить в нем ваш прогресс чтения. В связи с этим мы используем Cookies для хранения вашего прогресса чтения. Если вы хотите использовать эту функцию, вы должны согласиться с использованием Cookies. Мы надеемся, что вы получите удовольствие от чтения~",
|
|
||||||
"accept" => "Я принимаю",
|
|
||||||
"refuse" => "Отказываюсь"
|
|
||||||
],
|
|
||||||
"install" => [
|
|
||||||
"title" => "Установка FoOlSlideX",
|
|
||||||
"confirm" => "Вперёд!",
|
|
||||||
"after" => "После того как вы нажмете кнопку 'Вперёд!', вы будете перенаправлены на страницу регистрации. Зарегистрируйтесь там, используя следующий код приглашения:",
|
|
||||||
"copy" => "скопировать"
|
|
||||||
],
|
|
||||||
"menu" => [
|
|
||||||
"home" => "Главная",
|
|
||||||
"releases" => "Релизы",
|
|
||||||
"titles" => "Проекты", # Точно ещё не было решено как обозначить раздел, ибо это можно обозначить как: Проектами, Тайтлами, а так же и Переводами / It has not yet been decided exactly how to designate the section, for it can be designated as: Projects, Titles, as well as Translations
|
|
||||||
"more" => "Ещё",
|
|
||||||
"quicksearch" => "Быстрый поиск",
|
|
||||||
"search" => "Поиск",
|
|
||||||
"account" => "Аккаунт",
|
|
||||||
"login" => "Вход",
|
|
||||||
"signup" => "Регистрация",
|
|
||||||
"profile" => "Профиль",
|
|
||||||
"settings" => "Настройки",
|
|
||||||
"logout" => "Выход",
|
|
||||||
"add_new" => "Добавить релиз",
|
|
||||||
"bookmarks" => "Закладки",
|
|
||||||
"manage_groups" => "Управление группами",
|
|
||||||
"groups" => "Группы",
|
|
||||||
"config" => "Изменить настройки",
|
|
||||||
"settings" => "Настройки аккаунта",
|
|
||||||
"blog" => "Blog", # Needs translation
|
|
||||||
"blog2" => "Blog activated", # Needs translation
|
|
||||||
"news" => "News", # Needs translation
|
|
||||||
"news2" => "News activated", # Needs translation
|
|
||||||
"menu_dis" => "Menu Display", # Needs translation
|
|
||||||
"statics" => "Static Pages" # Needs translation
|
|
||||||
],
|
|
||||||
"home" => [
|
|
||||||
"added_titles" => "Добавлены названия",
|
|
||||||
"type" => "Тип",
|
|
||||||
"title" => "Название",
|
|
||||||
"added" => "Добавлена",
|
|
||||||
"released_chap" => "Опубликованные главы",
|
|
||||||
"chapter" => "Глава",
|
|
||||||
"chap_title" => "Название главы",
|
|
||||||
"group" => "Группа",
|
|
||||||
"uploader" => "Загрузил"
|
|
||||||
],
|
|
||||||
"groups" => [
|
|
||||||
"add_group" => "Добавить группу",
|
|
||||||
"req_group" => "Отправить запрос на регистрацию группы",
|
|
||||||
"name" => "Group Name", # Needs translation
|
|
||||||
"short" => "Group short Name", # Needs translation
|
|
||||||
"image" => "Group Banner Image (URL)", # Needs translation
|
|
||||||
"about" => "About this Group (Supports BBCode)", # Needs translation
|
|
||||||
"founded" => "Group founded", # Needs translation
|
|
||||||
"website" => "Group Website (Leave empty for none)", # Needs translation
|
|
||||||
"irc" => "Group IRC Channel (Leave empty for none)", # Needs translation
|
|
||||||
"mangadex" => "Group MangaDex site (Leave empty for none)", # Needs translation
|
|
||||||
"email" => "Contact eMail", # Needs translation
|
|
||||||
"confirm" => "Add group!", # Needs translation
|
|
||||||
"confirm_r" => "Request group!", # Needs translation
|
|
||||||
"group" => "Group", # Needs translation
|
|
||||||
"infos" => "Informations", # Needs translation
|
|
||||||
"short2" => "Short", # Needs translation
|
|
||||||
"founded2" => "Founded", # Needs translation
|
|
||||||
"links" => "Links", # Needs translation
|
|
||||||
"about2" => "About", # Needs translation
|
|
||||||
"releases" => "Releases by this Group", # Needs translation
|
|
||||||
"no_releas" => "There are no Releases yet!" # Needs translation
|
|
||||||
],
|
|
||||||
"group" => [
|
|
||||||
"website" => "Website", # Needs translation
|
|
||||||
"irc" => "IRC", # Needs translation
|
|
||||||
"mangadex" => "MangaDex", # Needs translation
|
|
||||||
"email" => "eMail", # Needs translation
|
|
||||||
"approve" => [
|
|
||||||
"not_approved" => "This group has not been approved by a Staff member yet and is only visible to Mods and Admins.", # Needs translation
|
|
||||||
"action" => "What do you want to do?", # Needs translation
|
|
||||||
"approve" => "Approve this Group", # Needs translation
|
|
||||||
"unapprove" => "Delete this Group", # Needs translation
|
|
||||||
"notice" => "After approving, you might want to reload this page..." # Needs translation
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"edit_group" => [
|
|
||||||
"title" => "Edit Group", # Needs translation
|
|
||||||
],
|
|
||||||
"config" => [
|
|
||||||
"title" => "Изменить настройки",
|
|
||||||
"title2" => "Название сайта",
|
|
||||||
"slogan" => "Слоган сайта",
|
|
||||||
"logo" => "путь либо URL до логотипа (Оставьте пустым для отсутствия)",
|
|
||||||
"cookie" => "Префикс для Cookie (Если вы измените, все старые Закладки будут потеряны!)",
|
|
||||||
"url" => "URL сайта (Протокол http либо https, а так же в конце СЛЭШ обязательны!)",
|
|
||||||
"theme" => "Тема сайта по умолчанию",
|
|
||||||
"themes" => [
|
|
||||||
1 => "Стандартный - Светлый",
|
|
||||||
2 => "Лазурный - Светлый",
|
|
||||||
3 => "Люмен - Светлый",
|
|
||||||
4 => "Удобочитаемый - Светлый",
|
|
||||||
5 => "Сланец - Темный",
|
|
||||||
6 => "Киборг - Темный"
|
|
||||||
],
|
|
||||||
"start" => "Запуск проекта (укажите год)",
|
|
||||||
"lang" => "Язык по умолчанию",
|
|
||||||
"disqus" => "навание в Disqus (указывается если нужны комментарии от системы Disqus)"
|
|
||||||
],
|
|
||||||
"login" => [
|
|
||||||
"error" => "Ошибка",
|
|
||||||
"message" => "Еще не зарегистрированы?",
|
|
||||||
"username" => "Никнейм",
|
|
||||||
"password" => "Пароль",
|
|
||||||
"captcha" => "Каптча",
|
|
||||||
"cookies" => "Остаться на сайте<br />(ИСПОЛЬЗУЮТСЯ Cookies!)"
|
|
||||||
],
|
|
||||||
"signup" => [
|
|
||||||
"password" => "Повторите пароль",
|
|
||||||
"message" => "Уже есть аккаунт?",
|
|
||||||
"used_invite" => "Приглашение (инвайт), которое вы ввели, уже было использовано!",
|
|
||||||
"empty_invite" => "Для создания аккаунта необходимо приглашение (инвайт)!",
|
|
||||||
"invite" => "Код приглашения (инвайт)"
|
|
||||||
],
|
|
||||||
"add_manga" => [
|
|
||||||
"add" => "Добавить",
|
|
||||||
"title" => "*Название тайтла",
|
|
||||||
"cover" => "Обложка (1500x2150px)",
|
|
||||||
"alt" => "Альтер. названия",
|
|
||||||
"author" => "Автор",
|
|
||||||
"genre" => "Жанры (разделять запятыми)",
|
|
||||||
"type" => "*Тип (Манга, Манхва, Маньхуа)",
|
|
||||||
"released" => "Год выпуска",
|
|
||||||
"raw-st" => "*Статус оригинала",
|
|
||||||
"status" => "*Статус перевода",
|
|
||||||
"descript" => "Описание (поддерживает HTML)",
|
|
||||||
"raw-url" => "Ссылка на оригинал",
|
|
||||||
"licensed" => "Лицензиар (оставить пустым, если не имеет лицензии)",
|
|
||||||
"official" => "URL-адрес официального релиза (оставьте пустым, если его нет)",
|
|
||||||
"required" => "Необходимые поля отмечены значком *",
|
|
||||||
"all_required" => "Все поля обязательны для заполнения!",
|
|
||||||
"manga" => "Манга",
|
|
||||||
"manhua" => "Маньхуа",
|
|
||||||
"manwha" => "Манхва",
|
|
||||||
"type_manga" => "Манга (по страничная)",
|
|
||||||
"type_manhua" => "Маньхуа (Лист)",
|
|
||||||
"type_manwha" => "Манхва (Лист)",
|
|
||||||
"rawst" => [
|
|
||||||
1 => "Неизвестно",
|
|
||||||
2 => "Анонсировано",
|
|
||||||
3 => "Выпускается",
|
|
||||||
4 => "Приостановлено",
|
|
||||||
"5" => "Завершено",
|
|
||||||
6 => "Отменено"
|
|
||||||
],
|
|
||||||
"scanst" => [
|
|
||||||
1 => "В планах",
|
|
||||||
2 => "В работе",
|
|
||||||
3 => "Приостановлено",
|
|
||||||
4 => "Вынужденный перерыв (из-за воздействия)",
|
|
||||||
5 => "Завершено",
|
|
||||||
6 => "Брошенно"
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"manga" => [
|
|
||||||
"alt" => "Альтер. название",
|
|
||||||
"author" => "Автор(ы)",
|
|
||||||
"genre" => "Жанр(ы)",
|
|
||||||
"type" => "Тип чтения",
|
|
||||||
"released" => "Релиз (Год)",
|
|
||||||
"raw-status" => "Статус оригинала",
|
|
||||||
"scan-status" => "Статус перевода",
|
|
||||||
"raw" => "Читать/Купить официально",
|
|
||||||
"licensed" => "Пожалуйста, поддержите автора, купив официальную работу, поскольку она была лицензирована",
|
|
||||||
"added" => "Этот тайтл был добавлен ",
|
|
||||||
"edit_title" => "Редактировать",
|
|
||||||
"add_ch" => "Добавить главу",
|
|
||||||
"unknown" => "Неизвестно",
|
|
||||||
"edit_chap" => "Редактировать главу",
|
|
||||||
"chapters" => "Chapters", # Needs translation
|
|
||||||
"comments" => "Comments" # Needs translation
|
|
||||||
],
|
|
||||||
"add_chapter" => [
|
|
||||||
"title" => "Добавить главу для",
|
|
||||||
"file" => "*Выберите ZIP/RAR файл для загрузки",
|
|
||||||
"volume" => "Том (Оставьте пустым если отсутствует)",
|
|
||||||
"chapter" => "Глава (Оставьте пустым или 0 для Oneshot)",
|
|
||||||
"ctitle" => "Название главы (Оставьте пустым, если нет)",
|
|
||||||
"button" => "Добавить",
|
|
||||||
"ser_grp" => "Search for Group...", # Needs translation
|
|
||||||
"sel_grp1" => "Select Group 1", # Needs translation
|
|
||||||
"sel_grp2" => "Select Group 2", # Needs translation
|
|
||||||
"sel_grp3" => "Select Group 3", # Needs translation
|
|
||||||
"no_group" => "No Group", # Needs translation
|
|
||||||
"none" => "None", # Needs translation
|
|
||||||
"group_unap" => "Don't see your group? That means it's still unapproved. Wait some more or upload without a group. You can always edit that later." # Needs translation
|
|
||||||
],
|
|
||||||
"chapter" => [
|
|
||||||
"menu" => "Меню",
|
|
||||||
"close" => "Скрыть",
|
|
||||||
"back_to_m" => "Назад к релизу",
|
|
||||||
"bookmark" => "В Закладки",
|
|
||||||
"update_bm" => "Обновить закладку",
|
|
||||||
"remove_bm" => "Удалить из закладок",
|
|
||||||
"comments" => "К комментариям",
|
|
||||||
"next" => "Следующая глава",
|
|
||||||
"prev" => "Предыдущая глава",
|
|
||||||
"oneshot" => "Oneshot"
|
|
||||||
],
|
|
||||||
"edit_chapter" => [
|
|
||||||
"title" => "Редактирование",
|
|
||||||
"file" => "Выберите новый ZIP/RAR (удаляет старый)",
|
|
||||||
"edit" => "Внести изменения",
|
|
||||||
"return" => "Вернуться к Тайтлу",
|
|
||||||
"delete" => "Удалить главу",
|
|
||||||
"del_yes" => "Да, я уверен.",
|
|
||||||
"del_no" => "Нет, отменяется!"
|
|
||||||
],
|
|
||||||
"edit_title" => [
|
|
||||||
"title" => "Редактирование",
|
|
||||||
"save" => "Внести изменения",
|
|
||||||
"delete" => "Удалить тайтл"
|
|
||||||
],
|
|
||||||
"display" => [
|
|
||||||
"notice" => "If you are not familiar with this setting, please watch this video, it is really important before you break anything!", # Needs translation
|
|
||||||
"item" => "Item URL/Name", # Needs translation
|
|
||||||
"text" => "Display Text", # Needs translation
|
|
||||||
"icon" => "Glyphicon Icon", # Needs translation
|
|
||||||
"order" => "Order Level", # Needs translation
|
|
||||||
"displayed" => "Displayed", # Needs translation
|
|
||||||
"hidden" => "Hidden", # Needs translation
|
|
||||||
"delete" => "Are you sure you want to delete this Menu item?" # Needs translation
|
|
||||||
],
|
|
||||||
"statics" => [
|
|
||||||
"delete" => "Are you sure you want to delete this page? It will delete the MySQL entry, the Menu item AND the file. NO CHANCE FOR RECOVERY!", # Needs translation
|
|
||||||
"name" => "Page Name/URL", # Needs translation
|
|
||||||
"title" => "Display Name", # Needs translation
|
|
||||||
"private" => "Private?", # Needs translation
|
|
||||||
"menu" => "Create Menu item?", # Needs translation
|
|
||||||
"create" => "Create" # Needs translation
|
|
||||||
],
|
|
||||||
"editor" => [
|
|
||||||
"title" => "File Editor", # Needs translation
|
|
||||||
"edit" => "Edit File", # Needs translation
|
|
||||||
"delete" => "Delete Page", # Needs translation
|
|
||||||
"close" => "Close", # Needs translation
|
|
||||||
],
|
|
||||||
"errors" => [
|
|
||||||
"bad_username" => "Никнейм содержит недопустимые символы!",
|
|
||||||
"bad_password" => "Пароль содержит недопустимые символы!",
|
|
||||||
"wrong_password" => "Не верный пароль!",
|
|
||||||
"taken_username" => "Этот никнейм уже занят!",
|
|
||||||
"unmatch_password" => "Пароли не совпадают!",
|
|
||||||
"attack" => "Вы уверены, что хотите выйти без сохранения?",
|
|
||||||
"captcha" => "Капча была неправильной... попробуйте еще раз!",
|
|
||||||
"unsupported_image" => "Файл, который вы пытались загрузить, НЕ является изображением (или он пуст)!",
|
|
||||||
"title_exists" => "Тайтл, который вы пытаетесь добавить, уже существует с таким же названием!",
|
|
||||||
"used_invite" => "Этот пригласительный код (инвайт) уже был использован!",
|
|
||||||
"exising_item" => "The Item URL/Name/Display Text is already used!" # Needs translation
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
?>
|
|
298
mangareaderx.sql
298
mangareaderx.sql
@ -1,298 +0,0 @@
|
|||||||
-- phpMyAdmin SQL Dump
|
|
||||||
-- version 5.1.1
|
|
||||||
-- https://www.phpmyadmin.net/
|
|
||||||
--
|
|
||||||
-- Host: 127.0.0.1
|
|
||||||
-- Erstellungszeit: 10. Jul 2022 um 02:45
|
|
||||||
-- Server-Version: 10.4.22-MariaDB
|
|
||||||
-- PHP-Version: 7.4.27
|
|
||||||
|
|
||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
||||||
START TRANSACTION;
|
|
||||||
SET time_zone = "+00:00";
|
|
||||||
|
|
||||||
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
||||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
||||||
/*!40101 SET NAMES utf8mb4 */;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Datenbank: `mangareaderx`
|
|
||||||
--
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `chapters`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `chapters` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`mid` int(11) NOT NULL,
|
|
||||||
`slug` text NOT NULL,
|
|
||||||
`volume` int(11) DEFAULT NULL,
|
|
||||||
`chapter` varchar(11) NOT NULL DEFAULT '0',
|
|
||||||
`title` text DEFAULT NULL,
|
|
||||||
`type` varchar(10) NOT NULL DEFAULT 'strip',
|
|
||||||
`user` int(11) NOT NULL,
|
|
||||||
`group1` int(11) NOT NULL,
|
|
||||||
`group2` int(11) DEFAULT NULL,
|
|
||||||
`group3` int(11) DEFAULT NULL,
|
|
||||||
`added` datetime NOT NULL DEFAULT current_timestamp()
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `config`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `config` (
|
|
||||||
`title` varchar(50) NOT NULL DEFAULT 'MangaReader',
|
|
||||||
`slogan` varchar(100) NOT NULL DEFAULT 'Read Manga online for free with no ads!',
|
|
||||||
`logo` varchar(100) NOT NULL DEFAULT 'assets/img/logo.png',
|
|
||||||
`cookie` varchar(50) NOT NULL DEFAULT 'mangareader',
|
|
||||||
`url` varchar(100) NOT NULL DEFAULT 'http://localhost/mangareaderx/',
|
|
||||||
`theme` int(1) NOT NULL DEFAULT 1,
|
|
||||||
`start` int(4) NOT NULL DEFAULT 2020,
|
|
||||||
`blog` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`news` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`lang` varchar(2) NOT NULL DEFAULT 'en',
|
|
||||||
`disqus` varchar(100) NOT NULL DEFAULT 'mangapanzer'
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `display`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `display` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`order` int(11) NOT NULL,
|
|
||||||
`item` varchar(20) NOT NULL,
|
|
||||||
`text` varchar(20) NOT NULL,
|
|
||||||
`icon` varchar(20) NOT NULL,
|
|
||||||
`displayed` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`hidden` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`created` datetime NOT NULL DEFAULT current_timestamp()
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Daten für Tabelle `display`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `display` (`id`, `order`, `item`, `text`, `icon`, `displayed`, `hidden`, `created`) VALUES
|
|
||||||
(1, 1, 'releases', '', 'th-list', 1, 0, '2022-07-08 21:02:43'),
|
|
||||||
(2, 2, 'titles', '', 'book', 1, 0, '2022-07-08 21:02:56'),
|
|
||||||
(3, 3, 'bookmarks', '', 'bookmark', 1, 0, '2022-07-08 21:03:05'),
|
|
||||||
(4, 4, 'groups', '', 'user', 1, 0, '2022-07-08 21:04:41'),
|
|
||||||
(5, 5, 's/about', 'About', 'question-sign', 1, 0, '2022-07-08 01:39:51'),
|
|
||||||
(6, 6, 'blog', '', 'font', 0, 1, '2022-07-08 21:05:01'),
|
|
||||||
(7, 7, 'news', '', 'bullhorn', 0, 1, '2022-07-08 21:05:12');
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `groups`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `groups` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`name` varchar(100) NOT NULL,
|
|
||||||
`slug` text NOT NULL,
|
|
||||||
`short` varchar(10) NOT NULL,
|
|
||||||
`image` varchar(1000) DEFAULT '''https://cdn.henai.eu/assets/images/fsx-group.jpg''',
|
|
||||||
`about` text DEFAULT NULL,
|
|
||||||
`founded` datetime DEFAULT current_timestamp(),
|
|
||||||
`website` varchar(100) DEFAULT NULL,
|
|
||||||
`irc` varchar(100) DEFAULT NULL,
|
|
||||||
`mangadex` varchar(150) DEFAULT NULL,
|
|
||||||
`email` varchar(100) DEFAULT NULL,
|
|
||||||
`user` int(11) NOT NULL,
|
|
||||||
`approved` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`created` datetime NOT NULL DEFAULT current_timestamp()
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `invites`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `invites` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`token` text NOT NULL,
|
|
||||||
`created` datetime NOT NULL DEFAULT current_timestamp(),
|
|
||||||
`used` datetime DEFAULT NULL
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `sessions`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `sessions` (
|
|
||||||
`user-id` int(11) NOT NULL,
|
|
||||||
`token` text NOT NULL
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `statics`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `statics` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`name` varchar(20) NOT NULL,
|
|
||||||
`title` varchar(50) NOT NULL,
|
|
||||||
`public` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`created` datetime NOT NULL DEFAULT current_timestamp()
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Daten für Tabelle `statics`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `statics` (`id`, `name`, `title`, `public`, `created`) VALUES
|
|
||||||
(1, 'about', 'About', 1, '2022-07-08 17:17:57');
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `titles`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `titles` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`slug` text NOT NULL,
|
|
||||||
`title` text NOT NULL,
|
|
||||||
`cover` text DEFAULT NULL,
|
|
||||||
`alt` text DEFAULT NULL,
|
|
||||||
`author` text DEFAULT NULL,
|
|
||||||
`genre` text DEFAULT NULL,
|
|
||||||
`type` varchar(10) NOT NULL,
|
|
||||||
`released` varchar(20) DEFAULT NULL,
|
|
||||||
`raw-status` int(11) NOT NULL,
|
|
||||||
`scan-status` int(11) NOT NULL,
|
|
||||||
`description` text DEFAULT NULL,
|
|
||||||
`raw-url` text DEFAULT NULL,
|
|
||||||
`licensed` varchar(50) DEFAULT NULL,
|
|
||||||
`official-url` text DEFAULT NULL,
|
|
||||||
`added` datetime NOT NULL DEFAULT current_timestamp()
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Tabellenstruktur für Tabelle `user`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE `user` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`username` varchar(20) NOT NULL,
|
|
||||||
`password` text NOT NULL,
|
|
||||||
`theme` int(11) NOT NULL DEFAULT 3,
|
|
||||||
`level` int(11) NOT NULL DEFAULT 3,
|
|
||||||
`active` int(11) NOT NULL DEFAULT 1
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes der exportierten Tabellen
|
|
||||||
--
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `chapters`
|
|
||||||
--
|
|
||||||
ALTER TABLE `chapters`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `display`
|
|
||||||
--
|
|
||||||
ALTER TABLE `display`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `groups`
|
|
||||||
--
|
|
||||||
ALTER TABLE `groups`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `invites`
|
|
||||||
--
|
|
||||||
ALTER TABLE `invites`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `statics`
|
|
||||||
--
|
|
||||||
ALTER TABLE `statics`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `titles`
|
|
||||||
--
|
|
||||||
ALTER TABLE `titles`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Indizes für die Tabelle `user`
|
|
||||||
--
|
|
||||||
ALTER TABLE `user`
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für exportierte Tabellen
|
|
||||||
--
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `chapters`
|
|
||||||
--
|
|
||||||
ALTER TABLE `chapters`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `display`
|
|
||||||
--
|
|
||||||
ALTER TABLE `display`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `groups`
|
|
||||||
--
|
|
||||||
ALTER TABLE `groups`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `invites`
|
|
||||||
--
|
|
||||||
ALTER TABLE `invites`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `statics`
|
|
||||||
--
|
|
||||||
ALTER TABLE `statics`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `titles`
|
|
||||||
--
|
|
||||||
ALTER TABLE `titles`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- AUTO_INCREMENT für Tabelle `user`
|
|
||||||
--
|
|
||||||
ALTER TABLE `user`
|
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
@ -1,163 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["config"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["level"]!=1 || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["edit_config"])) {
|
|
||||||
$c_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
$c_slogan = mysqli_real_escape_string($conn, $_POST["slogan"]);
|
|
||||||
$c_logo = mysqli_real_escape_string($conn, $_POST["logo"]);
|
|
||||||
$c_cookie = mysqli_real_escape_string($conn, $_POST["cookie"]);
|
|
||||||
$c_url = mysqli_real_escape_string($conn, $_POST["url"]);
|
|
||||||
$c_theme = mysqli_real_escape_string($conn, $_POST["theme"]);
|
|
||||||
$c_start = mysqli_real_escape_string($conn, $_POST["start"]);
|
|
||||||
if(isset($_POST["blog"])) { $c_blog = mysqli_real_escape_string($conn, $_POST["blog"]); } else { $c_blog = 0; }
|
|
||||||
if(isset($_POST["news"])) { $c_news = mysqli_real_escape_string($conn, $_POST["news"]); } else { $c_news = 0; }
|
|
||||||
$c_lang = mysqli_real_escape_string($conn, $_POST["lang"]);
|
|
||||||
$c_disqus = mysqli_real_escape_string($conn, $_POST["disqus"]);
|
|
||||||
|
|
||||||
if($c_title!=$config["title"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `title`='$c_title'");
|
|
||||||
}
|
|
||||||
if($c_slogan!=$config["slogan"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `slogan`='$c_slogan'");
|
|
||||||
}
|
|
||||||
if($c_logo!=$config["logo"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `logo`='$c_logo'");
|
|
||||||
}
|
|
||||||
if($c_cookie!=$config["cookie"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `cookie`='$c_cookie'");
|
|
||||||
}
|
|
||||||
if($c_url!=$config["url"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `url`='$c_url'");
|
|
||||||
}
|
|
||||||
if($c_theme!=$config["theme"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `theme`='$c_theme'");
|
|
||||||
}
|
|
||||||
if($c_start!=$config["start"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `start`='$c_start'");
|
|
||||||
}
|
|
||||||
if($c_blog!=$config["blog"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `blog`='$c_blog'");
|
|
||||||
}
|
|
||||||
if($c_news!=$config["news"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `news`='$c_news'");
|
|
||||||
}
|
|
||||||
if($c_lang!=$config["lang"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `lang`='$c_lang'");
|
|
||||||
}
|
|
||||||
if($c_disqus!=$config["disqus"]) {
|
|
||||||
$conn->query("UPDATE `config` SET `disqus`='$c_disqus'");
|
|
||||||
}
|
|
||||||
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["config"]["title"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="edit_config">
|
|
||||||
<h1 class="text-center"><?= $lang["config"]["title"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_title"><?= $lang["config"]["title2"] ?> </label>
|
|
||||||
<input required tabindex="1" type="text" name="title" id="config_title" class="form-control" value="<?= $config["title"] ?>" placeholder="<?= $lang["config"]["title2"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_slogan"><?= $lang["config"]["slogan"] ?> </label>
|
|
||||||
<input required tabindex="2" type="text" name="slogan" id="config_slogan" class="form-control" value="<?= $config["slogan"] ?>" placeholder="<?= $lang["config"]["slogan"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_logo"><?= $lang["config"]["logo"] ?> </label>
|
|
||||||
<input tabindex="3" type="text" name="logo" id="config_logo" class="form-control" value="<?= $config["logo"] ?>" placeholder="<?= $lang["config"]["logo"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_cookie"><?= $lang["config"]["cookie"] ?> </label>
|
|
||||||
<input required tabindex="4" type="text" name="cookie" id="config_cookie" class="form-control" value="<?= $config["cookie"] ?>" placeholder="<?= $lang["config"]["cookie"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_url"><?= $lang["config"]["url"] ?> </label>
|
|
||||||
<input required tabindex="5" type="text" name="url" id="config_url" class="form-control" value="<?= $config["url"] ?>" placeholder="<?= $lang["config"]["url"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_theme"><?= $lang["config"]["theme"] ?></label>
|
|
||||||
<select required tabindex="6" name="theme" id="config_theme" class="form-control selectpicker" title="<?= $lang["config"]["theme"] ?>">
|
|
||||||
<option value="1" <?php if($config["theme"]==1) echo "selected"; ?>><?= $lang["config"]["themes"][1] ?></option>
|
|
||||||
<option value="2" <?php if($config["theme"]==2) echo "selected"; ?>><?= $lang["config"]["themes"][2] ?></option>
|
|
||||||
<option value="3" <?php if($config["theme"]==3) echo "selected"; ?>><?= $lang["config"]["themes"][3] ?></option>
|
|
||||||
<option value="4" <?php if($config["theme"]==4) echo "selected"; ?>><?= $lang["config"]["themes"][4] ?></option>
|
|
||||||
<option value="5" <?php if($config["theme"]==5) echo "selected"; ?>><?= $lang["config"]["themes"][5] ?></option>
|
|
||||||
<option value="6" <?php if($config["theme"]==6) echo "selected"; ?>><?= $lang["config"]["themes"][6] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_start"><?= $lang["config"]["start"] ?> </label>
|
|
||||||
<input required tabindex="7" type="number" name="start" id="config_start" class="form-control" value="<?= $config["start"] ?>" placeholder="<?= $lang["config"]["start"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" <?php if($config["blog"]==true) echo "checked"; ?> name="blog" value="1"> <?= $lang["menu"]["blog"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" <?php if($config["news"]==true) echo "checked"; ?> name="news" value="1"> <?= $lang["menu"]["news"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_lang"><?= $lang["config"]["lang"] ?> </label>
|
|
||||||
<select required tabindex="8" name="lang" id="config_lang" class="form-control selectpicker" title="<?= $lang["config"]["lang"] ?>">
|
|
||||||
<option value="de" <?php if($config["lang"]=="de") echo "selected"; ?>>Deutsch</option>
|
|
||||||
<option value="en" <?php if($config["lang"]=="en") echo "selected"; ?>>English</option>
|
|
||||||
<option value="pt" <?php if($config["lang"]=="pt") echo "selected"; ?>>Português</option>
|
|
||||||
<option value="ru" <?php if($config["lang"]=="ru") echo "selected"; ?>>Русский</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="config_disqus"><?= $lang["config"]["disqus"] ?> </label>
|
|
||||||
<input tabindex="9" type="text" name="disqus" id="config_disqus" class="form-control" value="<?= $config["disqus"] ?>" placeholder="<?= $lang["config"]["disqus"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["all_required"] ?></i></p>
|
|
||||||
<button tabindex="10" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="edit_config"><?= glyph("pencil",$lang["config"]["title"]) ?> <?= $lang["config"]["title"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,201 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["menu_dis"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["level"]!=1 || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["edit_display"])) {
|
|
||||||
$d_id = mysqli_real_escape_string($conn, $_POST["id"]);
|
|
||||||
$d_old = mysqli_real_escape_string($conn, $_POST["old"]);
|
|
||||||
$d_item = mysqli_real_escape_string($conn, $_POST["item"]);
|
|
||||||
$d_text = mysqli_real_escape_string($conn, $_POST["text"]);
|
|
||||||
$d_icon = mysqli_real_escape_string($conn, $_POST["icon"]);
|
|
||||||
$d_order = mysqli_real_escape_string($conn, $_POST["order"]);
|
|
||||||
if(isset($_POST["displayed"])) { $d_displayed = mysqli_real_escape_string($conn, $_POST["displayed"]); }
|
|
||||||
if(isset($_POST["hidden"])) { $d_hidden = mysqli_real_escape_string($conn, $_POST["hidden"]); }
|
|
||||||
|
|
||||||
|
|
||||||
if(empty($d_displayed)) $d_displayed = 0;
|
|
||||||
if(empty($d_hidden)) $d_hidden = 0;
|
|
||||||
|
|
||||||
if($d_item==$d_old) { $d_item = "aioufgxvxkcjbsdfigwoh"; $changeditem = true; } else { $changeditem = false; }
|
|
||||||
if(empty($d_text)) { $d_text = "aiofgkgvbbxvbxcmbsvigqwuifg"; $changedtext = true; } else { $changedtext = false; }
|
|
||||||
$check = $conn->query("SELECT * FROM `display` WHERE `item`='$d_item' OR `text`='$d_text' LIMIT 1");
|
|
||||||
if($changeditem==true) { $d_item = $d_old; }
|
|
||||||
if($changedtext==true) { $d_text = ""; }
|
|
||||||
|
|
||||||
if(mysqli_num_rows($check)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["exising_item"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
$conn->query("UPDATE `display` SET `order`='$d_order', `item`='$d_item', `text`='$d_text', `icon`='$d_icon', `displayed`='$d_displayed', `hidden`='$d_hidden' WHERE `id`='$d_id'");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["add_display"])) {
|
|
||||||
$d_item = mysqli_real_escape_string($conn, $_POST["item"]);
|
|
||||||
$d_text = mysqli_real_escape_string($conn, $_POST["text"]);
|
|
||||||
$d_icon = mysqli_real_escape_string($conn, $_POST["icon"]);
|
|
||||||
$d_order = mysqli_real_escape_string($conn, $_POST["order"]);
|
|
||||||
$d_displayed = mysqli_real_escape_string($conn, $_POST["displayed"]);
|
|
||||||
$d_hidden = mysqli_real_escape_string($conn, $_POST["hidden"]);
|
|
||||||
|
|
||||||
if(empty($d_displayed)) $d_displayed = 0;
|
|
||||||
if(empty($d_hidden)) $d_hidden = 0;
|
|
||||||
|
|
||||||
if(empty($d_text)) { $d_text = "aiofgkgvbbxvbxcmbsvigqwuifg"; $changedtext = true; } else { $changedtext = false; }
|
|
||||||
$check = $conn->query("SELECT * FROM `display` WHERE `item`='$d_item' OR `text`='$d_text' LIMIT 1");
|
|
||||||
if($changedtext==true) { $d_text = ""; }
|
|
||||||
|
|
||||||
if(mysqli_num_rows($check)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["exising_item"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
$conn->query("INSERT INTO `display`(`order`,`item`,`text`,`icon`,`displayed`,`hidden`) VALUES('$d_order', '$d_item', '$d_text', '$d_icon', '$d_displayed', '$d_hidden')");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["delete_display"])) {
|
|
||||||
$d_id = mysqli_real_escape_string($conn, $_POST["id"]);
|
|
||||||
|
|
||||||
$conn->query("DELETE FROM `display` WHERE `id`='$d_id'");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["menu_dis"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<!-- THIS IS OPTIONAL FOR YOU BUT IF YOU DON'T KNOW, WATCH IT :)
|
|
||||||
<a href="" target="_blank">
|
|
||||||
<div class="alert alert-info text-center" role="alert">
|
|
||||||
<b>
|
|
||||||
<?= $lang["display"]["notice"] ?>
|
|
||||||
</b>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 600px" id="login_container">
|
|
||||||
<h1 class="text-center"><?= $lang["menu"]["menu_dis"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<?php $c = 1; foreach($d as $i) { ?>
|
|
||||||
<div class="form-group panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form name="edit_display" method="post">
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="number" required name="id" value="<?= $i["id"] ?>" style="display: none" class="form-control" readonly>
|
|
||||||
<input type="text" required name="old" value="<?= $i["item"] ?>" style="display: none" class="form-control" readonly>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" required name="item" value="<?= $i["item"] ?>" class="form-control" title="<?= $lang["display"]["item"] ?>" placeholder="<?= $lang["display"]["item"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" name="text" value="<?= $i["text"] ?>" class="form-control" title="<?= $lang["display"]["text"] ?>" placeholder="<?= $lang["display"]["text"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" required name="icon" value="<?= $i["icon"] ?>" class="form-control" title="<?= $lang["display"]["icon"] ?>" placeholder="<?= $lang["display"]["icon"] ?>" maxlength="20"><br>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<input type="number" required name="order" value="<?= $i["order"] ?>" class="form-control" title="<?= $lang["display"]["order"] ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["display"]["displayed"] ?>">
|
|
||||||
<input type="checkbox" <?php if($i["displayed"]==true) echo "checked"; ?> name="displayed" value="1"> <?= $lang["display"]["displayed"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["display"]["hidden"] ?>">
|
|
||||||
<input type="checkbox" <?php if($i["hidden"]==true) echo "checked"; ?> name="hidden" value="1"> <?= $lang["display"]["hidden"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<button class="btn btn-success" type="submit" name="edit_display" style="width: 47%"><?= glyph("pencil",$lang["edit_title"]["save"]) ?></button>
|
|
||||||
<button class="btn btn-danger" type="submit" onclick="return confirmDel()" name="delete_display" style="width: 47%"><?= glyph("remove",$lang["edit_title"]["delete"]) ?></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php $c++; } ?>
|
|
||||||
<hr>
|
|
||||||
<div class="form-group panel panel-success">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form name="add_display" method="post">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" required name="item" class="form-control" title="<?= $lang["display"]["item"] ?>" placeholder="<?= $lang["display"]["item"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" name="text" class="form-control" title="<?= $lang["display"]["text"] ?>" placeholder="<?= $lang["display"]["text"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="text" required name="icon" class="form-control" title="<?= $lang["display"]["icon"] ?>" placeholder="<?= $lang["display"]["icon"] ?>" maxlength="20"><br>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<input type="number" required value="<?php $i["order"]++; echo $i["order"] ?>" name="order" class="form-control" title="<?= $lang["display"]["order"] ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["display"]["displayed"] ?>">
|
|
||||||
<input type="checkbox" name="displayed" value="1"> <?= $lang["display"]["displayed"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["display"]["hidden"] ?>">
|
|
||||||
<input type="checkbox" name="hidden" value="1"> <?= $lang["display"]["hidden"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<button class="btn btn-success btn-block" type="submit" name="add_display"><?= glyph("plus",$lang["home"]["added"]) ?></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function confirmDel() {
|
|
||||||
let isExecuted = confirm("<?= $lang["display"]["delete"] ?>");
|
|
||||||
|
|
||||||
return isExecuted; // OK = true, Cancel = false
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,117 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["groups"]["add_group"];
|
|
||||||
|
|
||||||
if($loggedin==false || ($user["level"]!=1 && $user["level"]!=2 && $user["level"]!=3) || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["add_group"])) {
|
|
||||||
$g_name = mysqli_real_escape_string($conn, $_POST["name"]);
|
|
||||||
$g_short = mysqli_real_escape_string($conn, $_POST["short"]);
|
|
||||||
$g_image = mysqli_real_escape_string($conn, $_POST["image"]);
|
|
||||||
$g_about = mysqli_real_escape_string($conn, $_POST["about"]);
|
|
||||||
$g_founded = mysqli_real_escape_string($conn, $_POST["founded"]);
|
|
||||||
$g_website = mysqli_real_escape_string($conn, $_POST["website"]);
|
|
||||||
$g_irc = mysqli_real_escape_string($conn, $_POST["irc"]);
|
|
||||||
$g_mangadex = mysqli_real_escape_string($conn, $_POST["mangadex"]);
|
|
||||||
$g_email = mysqli_real_escape_string($conn, $_POST["email"]);
|
|
||||||
|
|
||||||
if(empty($g_image)) { $g_image = "'https://cdn.henai.eu/assets/images/fsx-group.jpg'"; } else { $g_image = "'".$g_image."'"; }
|
|
||||||
if(empty($g_about)) { $g_about = "NULL"; } else { $g_about = "'".$g_about."'"; }
|
|
||||||
if(empty($g_founded)) { $g_founded = "NULL"; } else { $g_founded = "'".$g_founded."'"; }
|
|
||||||
if(empty($g_website)) { $g_website = "NULL"; } else { $g_website = "'".$g_website."'"; }
|
|
||||||
if(empty($g_irc)) { $g_irc = "NULL"; } else { $g_irc = "'".$g_irc."'"; }
|
|
||||||
if(empty($g_mangadex)) { $g_mangadex = "NULL"; } else { $g_mangadex = "'".$g_mangadex."'"; }
|
|
||||||
if(empty($g_email)) { $g_email = "NULL"; } else { $g_email = "'".$g_email."'"; }
|
|
||||||
|
|
||||||
$slug = generate_url();
|
|
||||||
|
|
||||||
if($user["level"]==1 || $user["level"]==2) { $approved = 1; } elseif($user["level"]==3) { $approved = 0; }
|
|
||||||
|
|
||||||
$conn->query("INSERT INTO `groups`(`name`,`slug`,`short`,`image`,`about`,`founded`,`website`,`irc`,`mangadex`,`email`,`user`,`approved`) VALUES('$g_name', '$slug', '$g_short', $g_image, $g_about, $g_founded, $g_website, $g_irc, $g_mangadex, $g_email, '".$user["id"]."', '$approved')");
|
|
||||||
$group = $conn->query("SELECT * FROM `groups` ORDER BY `id` DESC LIMIT 1")->fetch_assoc();
|
|
||||||
header("Location: ".$config["url"]."group/".$group["slug"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["groups"]["add_group"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="add_group">
|
|
||||||
<h1 class="text-center"><?= $lang["groups"]["add_group"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_name">*<?= $lang["groups"]["name"] ?></label>
|
|
||||||
<input required tabindex="1" type="text" name="name" id="group_name" class="form-control" placeholder="<?= $lang["groups"]["name"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_short">*<?= $lang["groups"]["short"] ?></label>
|
|
||||||
<input required tabindex="2" type="text" name="short" id="group_short" class="form-control" placeholder="<?= $lang["groups"]["short"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_image"><?= $lang["groups"]["image"] ?></label>
|
|
||||||
<input tabindex="3" type="text" name="image" id="group_image" class="form-control" placeholder="<?= $lang["groups"]["image"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_about"><?= $lang["groups"]["about"] ?></label>
|
|
||||||
<textarea tabindex="4" type="text" name="about" id="group_about" class="form-control" placeholder="<?= $lang["groups"]["about"] ?>" style="margin-left: -200px; width: 700px; max-width: 700px; min-width: 700px; min-height:200px"></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_founded"><?= $lang["groups"]["founded"] ?></label>
|
|
||||||
<input tabindex="5" type="date" name="founded" id="group_founded" class="form-control" placeholder="<?= $lang["groups"]["founded"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_website"><?= $lang["groups"]["website"] ?></label>
|
|
||||||
<input tabindex="6" type="text" name="website" id="group_website" class="form-control" placeholder="<?= $lang["groups"]["website"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_irc"><?= $lang["groups"]["irc"] ?></label>
|
|
||||||
<input tabindex="7" type="text" name="irc" id="group_irc" class="form-control" placeholder="<?= $lang["groups"]["irc"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_mangadex"><?= $lang["groups"]["mangadex"] ?></label>
|
|
||||||
<input tabindex="8" type="text" name="mangadex" id="group_mangadex" class="form-control" placeholder="<?= $lang["groups"]["mangadex"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_email"><?= $lang["groups"]["email"] ?></label>
|
|
||||||
<input tabindex="9" type="text" name="email" id="group_email" class="form-control" placeholder="<?= $lang["groups"]["email"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<?php if($user["level"]==1 || $user["level"]==2) { ?>
|
|
||||||
<button tabindex="10" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="add_group"><?= glyph("ok",$lang["groups"]["confirm"]) ?> <?= $lang["groups"]["confirm"] ?></button>
|
|
||||||
<?php } elseif($user["level"]==3) { ?>
|
|
||||||
<button tabindex="10" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="add_group"><?= glyph("ok",$lang["groups"]["confirm_r"]) ?> <?= $lang["groups"]["confirm_r"] ?></button>
|
|
||||||
<?php } ?>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,113 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["edit_group"]["title"];
|
|
||||||
|
|
||||||
$slug = mysqli_real_escape_string($conn, $_GET["id"]);
|
|
||||||
$group = $conn->query("SELECT * FROM `groups` WHERE `slug`='$slug' LIMIT 1")->fetch_assoc();
|
|
||||||
|
|
||||||
if($loggedin==false || ($user["level"]!=1 && $user["level"]!=2) || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["edit_group"])) {
|
|
||||||
$g_name = mysqli_real_escape_string($conn, $_POST["name"]);
|
|
||||||
$g_short = mysqli_real_escape_string($conn, $_POST["short"]);
|
|
||||||
$g_image = mysqli_real_escape_string($conn, $_POST["image"]);
|
|
||||||
$g_about = mysqli_real_escape_string($conn, $_POST["about"]);
|
|
||||||
$g_founded = mysqli_real_escape_string($conn, $_POST["founded"]);
|
|
||||||
$g_website = mysqli_real_escape_string($conn, $_POST["website"]);
|
|
||||||
$g_irc = mysqli_real_escape_string($conn, $_POST["irc"]);
|
|
||||||
$g_mangadex = mysqli_real_escape_string($conn, $_POST["mangadex"]);
|
|
||||||
$g_email = mysqli_real_escape_string($conn, $_POST["email"]);
|
|
||||||
|
|
||||||
// if(empty($g_image)) { $g_image = "'https://cdn.henai.eu/assets/images/fsx-group.jpg'"; } else { $g_image = "'".$g_image."'"; }
|
|
||||||
if(empty($g_about)) { $g_about = "NULL"; } else { $g_about = "'".$g_about."'"; }
|
|
||||||
if(empty($g_founded)) { $g_founded = "NULL"; } else { $g_founded = "'".$g_founded."'"; }
|
|
||||||
if(empty($g_website)) { $g_website = "NULL"; } else { $g_website = "'".$g_website."'"; }
|
|
||||||
if(empty($g_irc)) { $g_irc = "NULL"; } else { $g_irc = "'".$g_irc."'"; }
|
|
||||||
if(empty($g_mangadex)) { $g_mangadex = "NULL"; } else { $g_mangadex = "'".$g_mangadex."'"; }
|
|
||||||
if(empty($g_email)) { $g_email = "NULL"; } else { $g_email = "'".$g_email."'"; }
|
|
||||||
|
|
||||||
if($user["level"]==1) { $approved = 1; } elseif($user["level"]==3) { $approved = 0; }
|
|
||||||
|
|
||||||
$conn->query("UPDATE `groups` SET `name`='$g_name', `short`='$g_short', `image`='$g_image', `about`=$g_about, `founded`=$g_founded, `website`=$g_website, `irc`=$g_irc, `mangadex`=$g_mangadex, `email`=$g_email WHERE `slug`='$slug'");
|
|
||||||
header("Location: ".$config["url"]."group/".$group["slug"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["edit_group"]["title"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="edit_group">
|
|
||||||
<h1 class="text-center"><?= $lang["edit_group"]["title"] ?>:<br><a href="<?= $config["url"] ?>group/<?= $group["slug"] ?>"><?= $group["name"] ?></a></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_name">*<?= $lang["groups"]["name"] ?></label>
|
|
||||||
<input required tabindex="1" type="text" name="name" id="group_name" class="form-control" placeholder="<?= $lang["groups"]["name"] ?>" value="<?= $group["name"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_short">*<?= $lang["groups"]["short"] ?></label>
|
|
||||||
<input required tabindex="2" type="text" name="short" id="group_short" class="form-control" placeholder="<?= $lang["groups"]["short"] ?>" value="<?= $group["short"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_image"><?= $lang["groups"]["image"] ?></label>
|
|
||||||
<input tabindex="3" type="text" name="image" id="group_image" class="form-control" placeholder="<?= $lang["groups"]["image"] ?>" value="<?= $group["image"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_about"><?= $lang["groups"]["about"] ?></label>
|
|
||||||
<textarea tabindex="4" type="text" name="about" id="group_about" class="form-control" placeholder="<?= $lang["groups"]["about"] ?>" style="margin-left: -200px; width: 700px; max-width: 700px; min-width: 700px; min-height:200px"><?= $group["about"] ?></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_founded"><?= $lang["groups"]["founded"] ?></label>
|
|
||||||
<input tabindex="5" type="date" name="founded" id="group_founded" class="form-control" placeholder="<?= $lang["groups"]["founded"] ?>" value="<?= $group["founded"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_website"><?= $lang["groups"]["website"] ?></label>
|
|
||||||
<input tabindex="6" type="text" name="website" id="group_website" class="form-control" placeholder="<?= $lang["groups"]["website"] ?>" value="<?= $group["website"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_irc"><?= $lang["groups"]["irc"] ?></label>
|
|
||||||
<input tabindex="7" type="text" name="irc" id="group_irc" class="form-control" placeholder="<?= $lang["groups"]["irc"] ?>" value="<?= $group["irc"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_mangadex"><?= $lang["groups"]["mangadex"] ?></label>
|
|
||||||
<input tabindex="8" type="text" name="mangadex" id="group_mangadex" class="form-control" placeholder="<?= $lang["groups"]["mangadex"] ?>" value="<?= $group["irc"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="group_email"><?= $lang["groups"]["email"] ?></label>
|
|
||||||
<input tabindex="9" type="text" name="email" id="group_email" class="form-control" placeholder="<?= $lang["groups"]["email"] ?>" value="<?= $group["email"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<button tabindex="10" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="edit_group"><?= glyph("ok",$lang["edit_group"]["title"]) ?> <?= $lang["edit_group"]["title"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
if($loggedin==false || ($user["level"]!=1 && $user["level"]!=2 && $user["level"]!=3) || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$type = mysqli_real_escape_string($conn, $_GET["type"]);
|
|
||||||
$file = mysqli_real_escape_string($conn, $_GET["file"]);
|
|
||||||
|
|
||||||
if($type=="static") {
|
|
||||||
$s = $conn->query("SELECT * FROM `statics` WHERE `name`='$file' LIMIT 1")->fetch_assoc();
|
|
||||||
|
|
||||||
if(isset($_POST["edit_body"])) {
|
|
||||||
$txt = $_POST["txt"];
|
|
||||||
|
|
||||||
$mf = fopen("../statics/$file.html", "w") or die("couldn't edit file. check file permission and set to 755.");
|
|
||||||
fwrite($mf, $txt);
|
|
||||||
fclose($mf);
|
|
||||||
echo "<script>window.close('','_parent','');</script>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$page = $lang["editor"]["title"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["editor"]["title"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body style="margin:0px; padding:0px;margin-top: -20px;">
|
|
||||||
|
|
||||||
<h3><?= $lang["editor"]["title"] ?>: <?= $s["name"] ?>.html <span class="text-right"><a href="#" onclick="javascript:window.close('','_parent','')"><?= glyph("remove", $lang["editor"]["close"]) ?> <?= $lang["editor"]["close"] ?></a></span></h3>
|
|
||||||
|
|
||||||
<form method="post" name="edit_body" style="margin-top: -30px">
|
|
||||||
<textarea name="txt" class="form-control" style="resize: vertical; height: 649px"><?= file_get_contents("../statics/$file.html") ?></textarea>
|
|
||||||
<button type="submit" name="edit_body" class="btn btn-success btn-block"><?= glyph("pencil", $lang["edit_title"]["save"]) ?> <?= $lang["edit_title"]["save"] ?></button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,201 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["statics"];
|
|
||||||
|
|
||||||
if($loggedin==false || ($user["level"]!=1 && $user["level"]!=2) || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$statics = $conn->query("SELECT * FROM `statics` ORDER BY `created` ASC");
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["edit_static"])) {
|
|
||||||
$s_id = mysqli_real_escape_string($conn, $_POST["id"]);
|
|
||||||
$s_old_name = mysqli_real_escape_string($conn, $_POST["old_name"]);
|
|
||||||
$s_old_title = mysqli_real_escape_string($conn, $_POST["old_title"]);
|
|
||||||
$s_name = mysqli_real_escape_string($conn, $_POST["name"]);
|
|
||||||
$s_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
if(isset($_POST["private"])) { $s_private = mysqli_real_escape_string($conn, $_POST["private"]); } else { $s_private = "1"; }
|
|
||||||
|
|
||||||
if($s_old_name==$s_name) { $s_name = "waiufbsuigvisvzogbsbvsdb"; $cname = true; } else { $cname = false; }
|
|
||||||
if($s_old_title==$s_title) { $s_title = "waiufbsuigvisvzogbsbvsdb"; $ctitle = true; } else { $ctitle = false; }
|
|
||||||
$check = $conn->query("SELECT * FROM `statics` WHERE `name`='$s_name' OR `title`='$s_title'");
|
|
||||||
if($cname==true) $s_name = $s_old_name;
|
|
||||||
if($ctitle==true) $s_title = $s_old_title;
|
|
||||||
|
|
||||||
if(mysqli_num_rows($check)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["exising_item"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
rename("../statics/$s_old_name.html", "../statics/$s_name.html");
|
|
||||||
$conn->query("UPDATE `statics` SET `name`='$s_name', `title`='$s_title', `public`='$s_private' WHERE `id`='$s_id'");
|
|
||||||
$conn->query("UPDATE `display` SET `item`='s/$s_name', `text`='$s_title' WHERE `item`='s/$s_old_name'");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["add_static"])) {
|
|
||||||
$s_name = mysqli_real_escape_string($conn, $_POST["name"]);
|
|
||||||
$s_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
if(isset($_POST["menu"])) {
|
|
||||||
$s_menu = mysqli_real_escape_string($conn, $_POST["menu"]);
|
|
||||||
$s_icon = mysqli_real_escape_string($conn, $_POST["icon"]);
|
|
||||||
} else {
|
|
||||||
$s_menu = "0";
|
|
||||||
$s_icon = "";
|
|
||||||
}
|
|
||||||
if(isset($_POST["private"])) { $s_private = mysqli_real_escape_string($conn, $_POST["private"]); } else { $s_private = "1"; }
|
|
||||||
|
|
||||||
$check = $conn->query("SELECT * FROM `statics` WHERE `name`='$s_name' OR `title`='$s_title' LIMIT 1");
|
|
||||||
|
|
||||||
if(mysqli_num_rows($check)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["exising_item"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
$file = fopen("../statics/$s_name.html", "w") or die("could not create file. check permissions and set to 755");
|
|
||||||
fwrite($file, date('Y/m/d H:i:s'));
|
|
||||||
fclose($file);
|
|
||||||
$conn->query("INSERT INTO `statics`(`name`,`title`,`public`) VALUES('$s_name', '$s_title', '$s_private')");
|
|
||||||
if($s_menu==true) {
|
|
||||||
$lmi = $conn->query("SELECT * FROM `display` ORDER BY `order` DESC LIMIT 1")->fetch_assoc();
|
|
||||||
$lmi = $lmi["order"];
|
|
||||||
$lmi++;
|
|
||||||
$conn->query("INSERT INTO `display`(`order`,`item`,`text`,`icon`,`displayed`,`hidden`) VALUES('$lmi', 's/$s_name', '$s_title', '$s_icon', '1', '0')");
|
|
||||||
}
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["delete_static"])) {
|
|
||||||
$sid = mysqli_real_escape_string($conn, $_POST["id"]);
|
|
||||||
$sname = mysqli_real_escape_string($conn, $_POST["name"]);
|
|
||||||
|
|
||||||
unlink("../statics/$sname.html");
|
|
||||||
$conn->query("DELETE FROM `display` WHERE `item`='s/$sname'");
|
|
||||||
$conn->query("DELETE FROM `statics` WHERE `id`='$sid'");
|
|
||||||
|
|
||||||
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["statics"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 800px" id="login_container">
|
|
||||||
<?php foreach($statics as $s) { ?>
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="row">
|
|
||||||
<form method="post" name="edit_static">
|
|
||||||
<input type="number" name="id" value="<?= $s["id"] ?>" style="display: none" readonly>
|
|
||||||
<input type="text" name="old_name" value="<?= $s["name"] ?>" style="display: none" readonly>
|
|
||||||
<input type="text" name="old_title" value="<?= $s["title"] ?>" style="display: none" readonly>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<input required type="text" name="name" title="<?= $lang["statics"]["name"] ?>" class="form-control" placeholder="<?= $lang["statics"]["name"] ?>" value="<?= $s["name"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<input required type="text" name="title" title="<?= $lang["statics"]["title"] ?>" class="form-control" placeholder="<?= $lang["statics"]["title"] ?>" value="<?= $s["title"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-2">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label title="<?= $lang["statics"]["private"] ?>">
|
|
||||||
<input type="checkbox" name="private" <?php if($s["public"]==false) echo "checked"; ?> value="0"> <?= $lang["statics"]["private"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<button type="submit" name="edit_static" class="btn btn-success btn-block"><?= glyph("floppy-disk", $lang["edit_title"]["save"]) ?></button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<div class="col-sm-2">
|
|
||||||
<a href="#" class="btn btn-info btn-block" onclick="window.open('<?= $config["url"] ?>admin/editor?type=static&file=<?= $s["name"] ?>','name','width=1000,height=800')"><?= glyph("pencil",$lang["editor"]["edit"]) ?></a>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<form method="post" name="delete_static">
|
|
||||||
<input type="number" name="id" class="form-control" style="display: none" value="<?= $s["id"] ?>">
|
|
||||||
<input type="text" name="name" class="form-control" style="display: none" value="<?= $s["name"] ?>">
|
|
||||||
<button type="submit" name="delete_static" class="btn btn-danger btn-block" onclick="return confirmDel()"><?= glyph("remove",$lang["editor"]["delete"]) ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div class="panel panel-success">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form name="add_static" method="post">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<input required type="text" class="form-control" name="name" placeholder="<?= $lang["statics"]["name"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<input required type="text" class="form-control" name="title" placeholder="<?= $lang["statics"]["title"] ?>" maxlength="20"><br>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label onchange="toggleVisibility('crmitem')">
|
|
||||||
<input type="checkbox" name="menu" checked value="1"> <?= $lang["statics"]["menu"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="private" value="0"> <?= $lang["statics"]["private"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<button type="submit" class="btn btn-success btn-block" name="add_static"><?= glyph("plus", $lang["statics"]["create"]) ?> <?= $lang["statics"]["create"] ?></button><br>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4" id="crmitem" style="display: block">
|
|
||||||
<input type="text" name="icon" class="form-control" placeholder="<?= $lang["display"]["icon"] ?>" maxlength="20">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function toggleVisibility(item) {
|
|
||||||
var i1 = document.getElementById(item);
|
|
||||||
|
|
||||||
if (i1.style.display == "block") {
|
|
||||||
i1.style.display = "none";
|
|
||||||
} else {
|
|
||||||
i1.style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function confirmDel() {
|
|
||||||
let isExecuted = confirm("<?= $lang["statics"]["delete"] ?>");
|
|
||||||
|
|
||||||
return isExecuted; // OK = true, Cancel = false
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,22 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="display: block">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title" id="myModalLabel"><?= $lang["cookie_modal"]["title"] ?></h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<?= $lang["cookie_modal"]["content"] ?>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<form method="post" name="refuse_cookies" action="">
|
|
||||||
<button type="submit" name="refuse_cookies" class="btn btn-default"><?= $lang["cookie_modal"]["refuse"] ?></button>
|
|
||||||
<button type="submit" name="accept_cookies" class="btn btn-primary"><?= $lang["cookie_modal"]["accept"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,30 +0,0 @@
|
|||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<p class="text-center text-muted"><a href="?lang=de" target="_blank" onclick="refresh();">Deutsch</a> - <a href="?lang=en" target="_blank" onclick="refresh();">English</a> - <a href="?lang=pt" target="_blank" onclick="refresh();">Português</a> - <a href="?lang=ru" target="_blank" onclick="refresh();">Русский</a></p>
|
|
||||||
|
|
||||||
<footer class="footer">
|
|
||||||
<p class="text-center text-muted">
|
|
||||||
Copyright © <?= $config["start"]."-".date("Y") ?> <a href="<?php echo $config["url"]; ?>"><?php echo $config["title"]; ?></a> | Proudly powered by <a href="https://github.com/saintly2k/FoOlSlideX" target="_blank">FoOlSlideX</a> <span class="label label-primary"><?= $version ?></span>
|
|
||||||
</p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function timedRefresh(timeoutPeriod) {
|
|
||||||
setTimeout("location.reload(true);", timeoutPeriod);
|
|
||||||
}
|
|
||||||
|
|
||||||
function refresh() {
|
|
||||||
timedRefresh(1000)
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
||||||
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
|
|
||||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,28 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet" href="<?= $config["url"] ?>assets/themes/bootstrap.<?= $user["theme"] ?>.min.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="<?= $config["url"] ?>assets/theme.css" type="text/css">
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.loading {
|
|
||||||
background: url('<?= $config["url"] ?>assets/loading.gif') center no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
@ -1,100 +0,0 @@
|
|||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<nav id="top_nav" class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" id="home_button" href="<?= $config["url"] ?>">
|
|
||||||
<?php if(empty($config["logo"])) { ?>
|
|
||||||
<?= $config["title"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<img src="<?= $config["url"].$config["logo"] ?>" style="margin-top:-9px; max-width: 200px; max-height: 200%" alt="<?= $config["title"] ?>" title="<?= $config["title"]." - ".$config["slogan"] ?>">
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div id="navbar" class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav" id="nav_links">
|
|
||||||
<?php $c = 1; ?>
|
|
||||||
<?php foreach($d as $menu) { ?>
|
|
||||||
<?php if($menu["hidden"]!=true) { ?>
|
|
||||||
<?php if(empty($menu["text"])) { $glyph_text = $lang["menu"][$menu["item"]]; } else { $glyph_text = $menu["item"]; } ?>
|
|
||||||
<li class="<?php if($page==$glyph_text) { echo "active"; } ?>" id="titles">
|
|
||||||
<a href="<?php if(strpos($menu["item"], "http") === 0) { echo $menu["item"]; } else { echo $config["url"].$menu["item"]; } ?>">
|
|
||||||
<?= glyph($menu["icon"], $glyph_text) ?>
|
|
||||||
<?php if($menu["displayed"]==true) { ?>
|
|
||||||
<?php if(empty($menu["text"])) { ?>
|
|
||||||
<?= $lang["menu"][$menu["item"]] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $menu["text"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php } ?>
|
|
||||||
<?php $c++ ?>
|
|
||||||
<?php } ?>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="nav navbar-nav navbar-right" id="pm">
|
|
||||||
<li class="dropdown">
|
|
||||||
<?php if($loggedin==false) { ?>
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?= glyph("user",$lang["menu"]["account"]) ?> <span class="nav-label-1440"><?= $lang["menu"]["account"] ?></span> <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li class="<?php if($page==$lang["menu"]["login"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>login"><?= glyph("log-in",$lang["menu"]["login"]) ?> <?= $lang["menu"]["login"] ?></a>
|
|
||||||
</li>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["signup"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>signup"><?= glyph("log-in",$lang["menu"]["signup"]) ?> <?= $lang["menu"]["signup"] ?></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<?php } else { ?>
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?= glyph("user",$lang["menu"]["account"]) ?> <span class="nav-label-1440"><?= $user["username"] ?></span> <span class="caret"></span></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<?php if(($user["level"]==1 || $user["level"]==2 || $user["level"]==3) && $user["active"]==true) { ?>
|
|
||||||
<?php if($user["level"]==1 && $user["active"]==true) { ?>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["config"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>admin/config"><?= glyph("pencil",$lang["menu"]["config"]) ?> <?= $lang["menu"]["config"] ?></a>
|
|
||||||
</li>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["menu_dis"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>admin/menu_display"><?= glyph("cog",$lang["menu"]["menu_dis"]) ?> <?= $lang["menu"]["menu_dis"] ?></a>
|
|
||||||
</li>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if($user["level"]==1 || $user["level"]==2) { ?>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["statics"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>admin/statics"><?= glyph("file",$lang["menu"]["statics"]) ?> <?= $lang["menu"]["statics"] ?></a>
|
|
||||||
</li>
|
|
||||||
<?php } ?>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["add_new"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>admin/new_title"><?= glyph("plus-sign",$lang["menu"]["add_new"]) ?> <?= $lang["menu"]["add_new"] ?></a>
|
|
||||||
</li>
|
|
||||||
<?php } ?>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["settings"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>admin/settings"><?= glyph("wrench",$lang["menu"]["settings"]) ?> <?= $lang["menu"]["settings"] ?></a>
|
|
||||||
</li>
|
|
||||||
<li class="<?php if($page==$lang["menu"]["logout"]) { echo "active"; } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>logout"><?= glyph("log-out",$lang["menu"]["logout"]) ?> <?= $lang["menu"]["logout"] ?></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<?php } ?>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form role="search" class="navbar-form navbar-right nav-label-992" action="<?= $config["url"] ?>titles" method="get">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control quick_search_input" placeholder="<?= $lang["menu"]["quicksearch"] ?>" name="mtitle" value="<?php if(isset($_GET["mtitle"])) echo mysqli_real_escape_string($conn, $_GET["mtitle"]); ?>">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="submit" id="quick_search_button"><?= glyph("search",$lang["menu"]["search"]) ?></button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<div class="container">
|
|
@ -1,92 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Note to my future self: Someday I'll need to make this proccess automated...
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["bookmarks"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
$titles = $conn->query("SELECT * FROM `titles` ORDER BY `title` ASC");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["bookmarks"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["menu"]["bookmarks"] ?></h2>
|
|
||||||
</div>
|
|
||||||
<?php foreach($titles as $manga) { ?>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) { ?>
|
|
||||||
<?php $mid = $manga["id"]; $chapters = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mid' ORDER BY `chapter` DESC"); ?>
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-2">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>">
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" class="loading" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<h2>
|
|
||||||
<?= glyph("bookmark","Bookmarked") ?>
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>">
|
|
||||||
<b><u><?= $manga["title"] ?></u></b>
|
|
||||||
</a>
|
|
||||||
</h2>
|
|
||||||
<div class="table-responsive" id="latest-titles">
|
|
||||||
<table class="table table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<th style="width:20%">Chapter</th>
|
|
||||||
<th style="width:60%;">Chapter Title</th>
|
|
||||||
<th class="text-right" style="width:20%">Added</th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach($chapters as $chapter) { ?>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]) && $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]==$chapter["slug"]) { ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]) && $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]==$chapter["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?>
|
|
||||||
<?= $lang["chapter"]["oneshot"] ?>
|
|
||||||
<?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?>
|
|
||||||
Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["title"])) { ?>
|
|
||||||
<?= $lang["manga"]["unknown"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $chapter["title"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td class="text-right"><?= $chapter["added"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="panel panel-default panel-body">
|
|
||||||
<?= $manga["description"] ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,287 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$slug = mysqli_real_escape_string($conn, $_GET["slug"]);
|
|
||||||
$chapter = $conn->query("SELECT * FROM `chapters` WHERE `slug`='$slug' LIMIT 1");
|
|
||||||
$chapter = mysqli_fetch_assoc($chapter);
|
|
||||||
$mid = $chapter["mid"];
|
|
||||||
$manga = $conn->query("SELECT * FROM `titles` WHERE `id`='$mid' LIMIT 1");
|
|
||||||
$manga = mysqli_fetch_assoc($manga);
|
|
||||||
|
|
||||||
if(empty($chapter["title"])) $chapter["title"] = $lang["chapter"]["oneshot"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]])) {
|
|
||||||
$bookmarked = true;
|
|
||||||
if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]])) {
|
|
||||||
$bookmarked_ch = $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]];
|
|
||||||
} else {
|
|
||||||
$bookmarked = 0;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$bookmarked = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$chapters = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mid' ORDER BY `chapter`ASC");
|
|
||||||
|
|
||||||
$next_chapter = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mid' AND `chapter`>'".$chapter["chapter"]."' ORDER BY `chapter` ASC LIMIT 1");
|
|
||||||
$prev_chapter = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mid' AND `chapter`<'".$chapter["chapter"]."' ORDER BY LENGTH(`chapter`) DESC, `chapter` DESC LIMIT 1");
|
|
||||||
$next_chapter = mysqli_fetch_assoc($next_chapter);
|
|
||||||
$prev_chapter = mysqli_fetch_assoc($prev_chapter);
|
|
||||||
|
|
||||||
$files = array();
|
|
||||||
$dir = opendir("../../data/chapters/".$chapter["slug"]); // open the cwd..also do an err check.
|
|
||||||
while(false != ($file = readdir($dir))) {
|
|
||||||
if(($file != ".") and ($file != "..") and ($file != "index.php")) {
|
|
||||||
$files[] = $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
natsort($files);
|
|
||||||
|
|
||||||
if(isset($_POST["add_bookmark"])) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"]) || $_COOKIE[$config["cookie"]."_cookie-consent"]==2) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", false, time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
} else {
|
|
||||||
setcookie($config["cookie"]."_bookmark-".$manga["slug"], $manga["slug"], time()+31556926, "/");
|
|
||||||
setcookie($config["cookie"]."_chapter-".$chapter["slug"], $chapter["slug"], time()+31556926, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["remove_bookmark"])) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"]) || $_COOKIE[$config["cookie"]."_cookie-consent"]==2) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", false, time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
} else {
|
|
||||||
// setcookie($config["cookie"]."_bookmark-".$manga["slug"], $manga["slug"], time() - 3600, "/");
|
|
||||||
setcookie($config["cookie"]."_chapter-".$chapter["slug"], $chapter["slug"], time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["update_bookmark"])) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"]) || $_COOKIE[$config["cookie"]."_cookie-consent"]==2) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", false, time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
} else {
|
|
||||||
setcookie($config["cookie"]."_chapter-".$chapter["slug"], $chapter["slug"], time()+31556926, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?> <?= $chapter["title"] ?> <?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?> Ch. <?= $chapter["chapter"] ?> <?php } else { ?> Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?> <?php } ?> <- <?= $manga["title"] ?> :: <?= $config["title"] ?> </title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.sidenav {
|
|
||||||
height: 100%;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 1;
|
|
||||||
top: 0;
|
|
||||||
overflow-x: hidden;
|
|
||||||
padding-top: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-submenu {
|
|
||||||
display: none;
|
|
||||||
background-color: rgba(0, 0, 0, 0);
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.9);
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 9px;
|
|
||||||
/*position: relative;*/
|
|
||||||
width: 42px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-submenu:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-submenu .icon-bar {
|
|
||||||
border-radius: 1px;
|
|
||||||
display: block;
|
|
||||||
height: 2px;
|
|
||||||
width: 22px;
|
|
||||||
margin-top: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-submenu .icon-bar {
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#slide-submenu {
|
|
||||||
background: rgba(0, 0, 0, 0.45);
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0 8px;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
|
|
||||||
$('#slide-submenu').on('click', function() {
|
|
||||||
$(this).closest('.list-group').fadeOut('slide', function() {
|
|
||||||
$('.mini-submenu').fadeIn();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.mini-submenu').on('click', function() {
|
|
||||||
$(this).next('.list-group').toggle('slide');
|
|
||||||
$('.mini-submenu').hide();
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
$(".scroll").click(function(event) {
|
|
||||||
$('html, body').animate({
|
|
||||||
scrollTop: '+=600px'
|
|
||||||
}, 800);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="container content">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="sidenav">
|
|
||||||
<div class="sidebar">
|
|
||||||
<div class="mini-submenu">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</div>
|
|
||||||
<div class="list-group">
|
|
||||||
<span href="#" class="list-group-item active">
|
|
||||||
<?= $lang["chapter"]["menu"] ?>
|
|
||||||
<span class="pull-right" id="slide-submenu">
|
|
||||||
<?= glyph("remove",$lang["chapter"]["close"]) ?>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="list-group-item">
|
|
||||||
<?= glyph("book",$lang["chapter"]["back_to_m"]) ?> <?= $lang["chapter"]["back_to_m"] ?>
|
|
||||||
</a>
|
|
||||||
<form method="post" name="bookmark">
|
|
||||||
<?php if($bookmarked==true && $bookmarked_ch==$chapter["slug"]) { ?>
|
|
||||||
<button type="submit" name="remove_bookmark" class="list-group-item">
|
|
||||||
<?= glyph("remove",$lang["chapter"]["remove_bm"]) ?> <?= $lang["chapter"]["remove_bm"] ?>
|
|
||||||
</button>
|
|
||||||
<?php } elseif($bookmarked==true && $bookmarked_ch!=$chapter["slug"]) { ?>
|
|
||||||
<button type="submit" name="update_bookmark" class="list-group-item">
|
|
||||||
<?= glyph("refresh",$lang["chapter"]["update_bm"]) ?> <?= $lang["chapter"]["update_bm"] ?>
|
|
||||||
</button>
|
|
||||||
<?php } else { ?>
|
|
||||||
<button type="submit" name="add_bookmark" class="list-group-item">
|
|
||||||
<?= glyph("bookmark",$lang["chapter"]["bookmark"]) ?> <?= $lang["chapter"]["bookmark"] ?>
|
|
||||||
</button>
|
|
||||||
<?php } ?>
|
|
||||||
</form>
|
|
||||||
<a href="#" class="list-group-item">
|
|
||||||
<select class="selectpicker form-control" onChange="window.location.href=this.value">
|
|
||||||
<?php foreach($chapters as $chp) { ?>
|
|
||||||
<option <?php if($chp["slug"]==$chapter["slug"]) echo "selected"; ?> value="<?= $config["url"] ?>chapter/<?= $chp["slug"] ?>">
|
|
||||||
<?php if(empty($chp["volume"]) && empty($chp["chapter"])) { ?> <?= $lang["chapter"]["oneshot"] ?> <?php } elseif(empty($chp["volume"]) && !empty($chp["chapter"])) { ?> Ch. <?= $chp["chapter"] ?> <?php } else { ?> Vol. <?= $chp["volume"] ?> Ch. <?= $chp["chapter"] ?> <?php } ?>
|
|
||||||
</option>
|
|
||||||
<?php } ?>
|
|
||||||
</select>
|
|
||||||
</a>
|
|
||||||
<a <?php if(!empty($prev_chapter["slug"])) { ?> href="<?= $config["url"] ?>chapter/<?= $prev_chapter["slug"] ?>" class="list-group-item" <?php } else { ?> class="list-group-item disabled" <?php } ?>>
|
|
||||||
<i class="fa fa-folder-open-o"></i> <?= $lang["chapter"]["prev"] ?>
|
|
||||||
</a>
|
|
||||||
<a <?php if(!empty($next_chapter["slug"])) { ?> href="<?= $config["url"] ?>chapter/<?= $next_chapter["slug"] ?>" class="list-group-item" <?php } else { ?> class="list-group-item disabled" <?php } ?>>
|
|
||||||
<i class="fa fa-bar-chart-o"></i> <?= $lang["chapter"]["next"] ?>
|
|
||||||
</a>
|
|
||||||
<a href="#disqus_thread" class="list-group-item">
|
|
||||||
<?= glyph("comment",$lang["chapter"]["comments"]) ?> <?= $lang["chapter"]["comments"] ?>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h1 class="text-center"><?= $manga["title"] ?> - <?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?> <?= $chapter["title"] ?> <?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?> Ch. <?= $chapter["chapter"] ?> <?php } else { ?> Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?> <?php } ?></h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<a href="<?php if(!empty($prev_chapter["id"])) { echo $config["url"]."chapter/".$prev_chapter["slug"]; } ?>" class="btn btn-primary <?php if(empty($prev_chapter["id"])) echo 'disabled'; ?>" style="width:100%"><?= $lang["chapter"]["prev"] ?></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<a href="<?php if(!empty($next_chapter["id"])) { echo $config["url"]."chapter/".$next_chapter["slug"]; } ?>" class="btn btn-primary <?php if(empty($next_chapter["id"])) echo 'disabled'; ?>" style="width:100%"><?= $lang["chapter"]["next"] ?></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-2"></div>
|
|
||||||
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<?php $i = 1; ?>
|
|
||||||
<?php foreach($files as $image) { ?>
|
|
||||||
<img src="<?= $config["url"] ?>data/chapters/<?= $chapter["slug"] ?>/<?= $image ?>" title="<?= $image ?>" alt="<?= $manga["title"] ?> <?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?> <?= $chapter["title"] ?> <?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?> Ch. <?= $chapter["chapter"] ?> <?php } else { ?> Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?> <?php } ?> - Page <?= $i ?>" style="width:100%" class="loading">
|
|
||||||
<?php $i++; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-2"></div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<a href="<?php if(!empty($prev_chapter["id"])) { echo $config["url"]."chapter/".$prev_chapter["slug"]; } ?>" class="btn btn-primary <?php if(empty($prev_chapter["id"])) echo 'disabled'; ?>" style="width:100%"><?= $lang["chapter"]["prev"] ?></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<a href="<?php if(!empty($next_chapter["id"])) { echo $config["url"]."chapter/".$next_chapter["slug"]; } ?>" class="btn btn-primary <?php if(empty($next_chapter["id"])) echo 'disabled'; ?>" style="width:100%"><?= $lang["chapter"]["next"] ?></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div id="disqus_thread"></div>
|
|
||||||
<script>
|
|
||||||
/**
|
|
||||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
|
||||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
|
|
||||||
/*
|
|
||||||
var disqus_config = function () {
|
|
||||||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
|
||||||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
(function() { // DON'T EDIT BELOW THIS LINE
|
|
||||||
var d = document,
|
|
||||||
s = d.createElement('script');
|
|
||||||
s.src = 'https://<?= $config["disqus"] ?>.disqus.com/embed.js';
|
|
||||||
s.setAttribute('data-timestamp', +new Date());
|
|
||||||
(d.head || d.body).appendChild(s);
|
|
||||||
})();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,183 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Note to my future self: Someday I'll need to make this proccess automated...
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$slug = mysqli_real_escape_string($conn, $_GET["id"]);
|
|
||||||
$group = $conn->query("SELECT * FROM `groups` WHERE `slug`='$slug' LIMIT 1")->fetch_assoc();
|
|
||||||
|
|
||||||
if($group["approved"]==false && $user["level"]!=1 && $user["level"]!=2 || $user["active"]==false) die("not authorized to perform this action.");
|
|
||||||
|
|
||||||
$releases = $conn->query("SELECT * FROM `chapters` WHERE `group1`='".$group["id"]."' OR `group2`='".$group["id"]."' OR `group3`='".$group["id"]."' ORDER BY `id` DESC");
|
|
||||||
|
|
||||||
if($group["approved"]==false && (($user["level"]==1 || $user["level"]==2) && $user["active"]==true)) {
|
|
||||||
$approved = false;
|
|
||||||
|
|
||||||
if(isset($_POST["approve_group"])) {
|
|
||||||
$conn->query("UPDATE `groups` SET `approved`='1' WHERE `slug`='$slug'");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["delete_group"])) {
|
|
||||||
$conn->query("DELETE FROM `groups` WHERE `slug`='$slug'");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$approved = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$page = $group["name"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $group["name"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<?php if($approved==false) { ?>
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<?= $lang["group"]["approve"]["not_approved"] ?>
|
|
||||||
<hr>
|
|
||||||
<form method="post">
|
|
||||||
<b><?= $lang["group"]["approve"]["action"] ?></b><br>
|
|
||||||
<button type="submit" class="btn btn-success" name="approve_group"><?= glyph("ok", $lang["group"]["approve"]["approve"]) ?> <?= $lang["group"]["approve"]["approve"] ?></button> <button type="submit" class="btn btn-danger" name="delete_group"><?= glyph("remove", $lang["group"]["approve"]["unapprove"]) ?> <?= $lang["group"]["approve"]["unapprove"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title"><?= glyph("education",$lang["groups"]["group"]) ?> <b><?= $group["name"] ?></b> <?php if(($user["level"]==1 || $user["level"]==2) && $user["active"]==true) { ?><span class="text-right"><a href="<?= $config["url"] ?>admin/edit_group/<?= $group["slug"] ?>"><?= glyph("pencil", $lang["edit_group"]["title"]) ?> <?= $lang["edit_group"]["title"] ?></a></span><?php } ?></h3>
|
|
||||||
</div>
|
|
||||||
<?php if(!empty($group["image"])) { ?>
|
|
||||||
<img src="<?= $group["image"] ?>" width="100%" alt="<?= $group["name"] ?>'s Banner">
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title"><?= glyph("info-sign",$lang["groups"]["infos"]) ?> <?= $lang["groups"]["infos"] ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<b><?= $lang["groups"]["short2"] ?>:</b> <?= $group["short"] ?><br>
|
|
||||||
<b><?= $lang["groups"]["founded2"] ?>:</b> <?= $group["founded"] ?> (yyyy-mm-dd hh:mm:ss)<br>
|
|
||||||
<b><?= $lang["groups"]["links"] ?>:</b>
|
|
||||||
<?php if(!empty($group["website"])) { ?><a href="<?= $group["website"] ?>" target="_blank"><?= glyph("globe", $lang["group"]["website"]) ?> <?= $lang["group"]["website"] ?></a><?php } ?>
|
|
||||||
<?php if(!empty($group["irc"])) { ?><a href="irc://<?= $group["irc"] ?>" target="_blank"><?= glyph("transfer", $lang["group"]["irc"]) ?> <?= $lang["group"]["irc"] ?></a><?php } ?>
|
|
||||||
<?php if(!empty($group["mangadex"])) { ?><a href="<?= $group["mangadex"] ?>" target="_blank"><?= glyph("book", $lang["group"]["mangadex"]) ?> <?= $lang["group"]["mangadex"] ?></a><?php } ?>
|
|
||||||
<?php if(!empty($group["email"])) { ?><a href="mailto:<?= $group["email"] ?>" target="_blank"><?= glyph("envelope", $lang["group"]["email"]) ?> <?= $lang["group"]["email"] ?></a><?php } ?>
|
|
||||||
<?php if(empty($group["discord"]) && empty($group["website"]) && empty($group["irc"]) && empty($group["email"])) { ?>---<?php } ?><br>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title"><?= glyph("info-sign",$lang["groups"]["about2"]) ?> <?= $lang["groups"]["about2"] ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<?php if(!empty($group["about"])) { ?>
|
|
||||||
<?= bbconvert($group["about"]) ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
----
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title"><?= glyph("list",$lang["groups"]["releases"]) ?> <?= $lang["groups"]["releases"] ?></h3>
|
|
||||||
</div>
|
|
||||||
<?php if(mysqli_num_rows($releases)!=0) { ?>
|
|
||||||
<div class="table-responsive" id="latest-titles">
|
|
||||||
<table class="table table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<th style="width:5%"><?= $lang["home"]["type"] ?></th>
|
|
||||||
<th style="width:5%"><?= $lang["home"]["chapter"] ?></th>
|
|
||||||
<th style="width:25%;"><?= $lang["home"]["chap_title"] ?></th>
|
|
||||||
<th style="width:25%"><?= $lang["home"]["title"] ?></th>
|
|
||||||
<th class="text-center" style="width:10%"><?= $lang["home"]["uploader"] ?></th>
|
|
||||||
<th class="text-right" style="width:20%"><?= $lang["home"]["added"] ?></th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach($releases as $chapter) { ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<?php $mng = $conn->query("SELECT * FROM `titles` WHERE `id`='".$chapter["mid"]."' LIMIT 1"); $mng = mysqli_fetch_assoc($mng); ?>
|
|
||||||
<?php if($mng["type"]==$lang["add_manga"]["manga"]) { ?>
|
|
||||||
<span class="label label-primary"><?= $lang["add_manga"]["manga"] ?></span>
|
|
||||||
<?php } elseif($mng["type"]==$lang["add_manga"]["manwha"]) { ?>
|
|
||||||
<span class="label label-success"><?= $lang["add_manga"]["manwha"] ?></span>
|
|
||||||
<?php } else { ?>
|
|
||||||
<span class="label label-info"><?= $lang["add_manga"]["manhua"] ?></span>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]) && $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]==$chapter["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?>
|
|
||||||
<?= $lang["chapter"]["oneshot"] ?>
|
|
||||||
<?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?>
|
|
||||||
Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["title"])) { ?>
|
|
||||||
<?= $lang["manga"]["unknown"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $chapter["title"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
<?php if($loggedin==true) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/edit_chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<span class="badge"><?= glyph("pencil",$lang["manga"]["edit_chap"]) ?> <?= $lang["manga"]["edit_chap"] ?></span>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$mng["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$mng["slug"]]==$mng["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $mng["slug"] ?>">
|
|
||||||
<?= $mng["title"] ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
<?php $uploader = $conn->query("SELECT * FROM `user` WHERE `id`='".$chapter["user"]."' LIMIT 1")->fetch_assoc(); echo $uploader["username"]; ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-right"><?= $chapter["added"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php } else { ?>
|
|
||||||
<div class="panel-body">
|
|
||||||
<?= $lang["groups"]["no_releas"] ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,71 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["groups"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
$can_activate = false;
|
|
||||||
|
|
||||||
if(($user["level"]==1 || $user["level"]==2) && $user["active"]==true) {
|
|
||||||
$can_activate = true;
|
|
||||||
$req_groups = $conn->query("SELECT * FROM `groups` WHERE `approved`='0' ORDER BY `name` ASC");
|
|
||||||
}
|
|
||||||
|
|
||||||
$groups = $conn->query("SELECT * FROM `groups` WHERE `approved`='1' ORDER BY `name` ASC");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["groups"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12 text-center">
|
|
||||||
<h2 class="text-center"><?= $lang["menu"]["groups"] ?></h2>
|
|
||||||
<?php if($user["level"]==1 || $user["level"]==2) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/add_group" class="btn btn-success"><?= glyph("plus-sign",$lang["groups"]["add_group"]) ?> <?= $lang["groups"]["add_group"] ?></a>
|
|
||||||
<?php } elseif($user["level"]==3) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/add_group" class="btn btn-success"><?= glyph("plus-sign",$lang["groups"]["req_group"]) ?> <?= $lang["groups"]["req_group"] ?></a>
|
|
||||||
<?php } ?>
|
|
||||||
<hr style="opacity: 0">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<?php foreach($groups as $g) { ?>
|
|
||||||
<div class="well well-sm" style="background:url('<?= $g["image"] ?>'); background-position: center; background-repeat: no-repeat; background-size: cover; border-radius: 5px;">
|
|
||||||
<span class="image-shadow">
|
|
||||||
<b><a href="<?= $config["url"] ?>group/<?= $g["slug"] ?>" style="color:black"><?= $g["name"] ?></a></b>
|
|
||||||
</span>
|
|
||||||
<span class="text-right image-shadow">
|
|
||||||
<?php if(!empty ($g["website"])) { ?><a href="<?= $g["website"] ?>" target="_blank" style="color:black"><?= glyph("globe", $lang["group"]["website"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["irc"])) { ?><a href="irc://<?= $g["irc"] ?>" target="_blank" style="color:black"><?= glyph("transfer", $lang["group"]["irc"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["mangadex"])) { ?><a href="<?= $g["mangadex"] ?>" target="_blank" style="color:black"><?= glyph("book", $lang["group"]["mangadex"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["email"])) { ?><a href="mailto:<?= $g["email"] ?>" target="_blank" style="color:black"><?= glyph("envelope", $lang["group"]["email"]) ?></a><?php } ?>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if($can_activate==true) { ?>
|
|
||||||
<h3 class="text-center">Unapproved</h3>
|
|
||||||
<?php foreach($req_groups as $g) { ?>
|
|
||||||
<div class="well well-sm" style="background:url('<?= $g["image"] ?>'); background-position: center; background-repeat: no-repeat; background-size: cover; border-radius: 5px;">
|
|
||||||
<span class="image-shadow">
|
|
||||||
<b><a href="<?= $config["url"] ?>group/<?= $g["slug"] ?>" style="color:black" target="_blank"><?= $g["name"] ?></a></b>
|
|
||||||
</span>
|
|
||||||
<span class="text-right image-shadow">
|
|
||||||
<?php if(!empty ($g["website"])) { ?><a href="<?= $g["website"] ?>" target="_blank" style="color:black"><?= glyph("globe", $lang["group"]["website"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["irc"])) { ?><a href="irc://<?= $g["irc"] ?>" target="_blank" style="color:black"><?= glyph("transfer", $lang["group"]["irc"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["mangadex"])) { ?><a href="<?= $g["mangadex"] ?>" target="_blank" style="color:black"><?= glyph("book", $lang["group"]["mangadex"]) ?></a><?php } ?>
|
|
||||||
<?php if(!empty ($g["email"])) { ?><a href="mailto:<?= $g["email"] ?>" target="_blank" style="color:black"><?= glyph("envelope", $lang["group"]["email"]) ?></a><?php } ?>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<span class="text-center"><i><?= $lang["group"]["approve"]["notice"] ?></i></span>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,187 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["releases"];
|
|
||||||
|
|
||||||
if(isset($_GET["logout"])) {
|
|
||||||
// Removing token from Database and destroy entire session and so on
|
|
||||||
$uid = $user["id"];
|
|
||||||
$conn->query("DELETE FROM `sessions` WHERE `user-id`='$uid'");
|
|
||||||
setcookie($config["cookie"]."_session", "", time() - 3600, "/", "");
|
|
||||||
session_destroy();
|
|
||||||
session_unset();
|
|
||||||
header("Refresh: 0; url=./");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
$carousels = $conn->query("SELECT * FROM `titles` ORDER BY RAND() LIMIT 10");
|
|
||||||
$latest_titles = $conn->query("SELECT * FROM `titles` ORDER BY `added` DESC");
|
|
||||||
$latest_chapters = $conn->query("SELECT * FROM `chapters` ORDER BY `added` DESC");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $config["title"]." :: ".$config["slogan"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<div id="manga-carousel" class="carousel slide" data-ride="carousel">
|
|
||||||
<!-- Indicators -->
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
<?php $c = 1; foreach($carousels as $item) { ?>
|
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="0" <?php if($c==1) { ?>class="active" <?php } ?>></li>
|
|
||||||
<?php $c++; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<!-- Wrapper for slides -->
|
|
||||||
<div class="carousel-inner" role="listbox">
|
|
||||||
<?php $q = 1; foreach($carousels as $item) { ?>
|
|
||||||
<div class="item <?php if($q==1) { ?>active<?php } ?>">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $item["slug"] ?>">
|
|
||||||
<img src="data/covers/<?= $item["cover"] ?>" alt="<?= $item["title"] ?>" class="loading">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<?= $item["title"] ?>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php $q++; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Controls -->
|
|
||||||
<a class="left carousel-control" href="#manga-carousel" role="button" data-slide="prev">
|
|
||||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Previous</span>
|
|
||||||
</a>
|
|
||||||
<a class="right carousel-control" href="#manga-carousel" role="button" data-slide="next">
|
|
||||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
||||||
<span class="sr-only">Next</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
#latest-titles {
|
|
||||||
height: 500px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<h3 class="text-center" style="max-height:20px;padding: 0; margin: 0;"><?= $lang["home"]["added_titles"] ?></h3>
|
|
||||||
<div class="table-responsive" id="latest-titles">
|
|
||||||
<table class="table table-hover table-striped"> <!-- IF ON OTHER LANGUAGES THAN ENGLISH, HERE IS AN OVERFLOW ON THE "added" TAB, IDK WHY, IF ANYONE KNOWS HOW TO FIX, PLS DO ON GITHUB.com/saintly2k/FoOlSlideX -->
|
|
||||||
<thead>
|
|
||||||
<th style="width:10%"><?= $lang["home"]["type"] ?></th>
|
|
||||||
<th style="width:auto"><?= $lang["home"]["title"] ?></th>
|
|
||||||
<th class="text-right" style="width:25%"><?= $lang["home"]["added"] ?></th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach($latest_titles as $item) { ?>
|
|
||||||
<tr>
|
|
||||||
<?php if($item["type"]==$lang["add_manga"]["manga"]) { ?>
|
|
||||||
<td><span class="label label-primary"><?= $lang["add_manga"]["manga"] ?></span></td>
|
|
||||||
<?php } elseif($item["type"]==$lang["add_manga"]["manwha"]) { ?>
|
|
||||||
<td><span class="label label-success"><?= $lang["add_manga"]["manwha"] ?></span></td>
|
|
||||||
<?php } else { ?>
|
|
||||||
<td><span class="label label-info"><?= $lang["add_manga"]["manhua"] ?></span></td>
|
|
||||||
<?php } ?>
|
|
||||||
<td>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$item["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$item["slug"]]==$item["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $item["slug"] ?>"><?= $item["title"] ?></a>
|
|
||||||
<?php if($loggedin==true) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/edit_title/<?= $item["slug"] ?>">
|
|
||||||
<span class="badge"><?= glyph("pencil",$lang["manga"]["edit_title"]) ?> <?= $lang["manga"]["edit_title"] ?></span>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-right"><?= $item["added"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h3 class="text-center"><?= $lang["home"]["released_chap"] ?></h3>
|
|
||||||
<div class="table-responsive" id="latest-titles">
|
|
||||||
<table class="table table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<th style="width:5%"><?= $lang["home"]["type"] ?></th>
|
|
||||||
<th style="width:5%"><?= $lang["home"]["chapter"] ?></th>
|
|
||||||
<th style="width:20%;"><?= $lang["home"]["chap_title"] ?></th>
|
|
||||||
<th style="width:20%"><?= $lang["home"]["title"] ?></th>
|
|
||||||
<th class="text-center" style="width:20%"><?= $lang["home"]["group"] ?></th>
|
|
||||||
<th class="text-center" style="width:10%"><?= $lang["home"]["uploader"] ?></th>
|
|
||||||
<th class="text-right" style="width:15%"><?= $lang["home"]["added"] ?></th> <!-- IF ON OTHER LANGUAGES THAN ENGLISH, HERE IS AN OVERFLOW ON THE "added" TAB, IDK WHY, IF ANYONE KNOWS HOW TO FIX, PLS DO ON GITHUB.com/saintly2k/FoOlSlideX -->
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach($latest_chapters as $chapter) { ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<?php $mng = $conn->query("SELECT * FROM `titles` WHERE `id`='".$chapter["mid"]."' LIMIT 1"); $mng = mysqli_fetch_assoc($mng); ?>
|
|
||||||
<?php if($mng["type"]==$lang["add_manga"]["manga"]) { ?>
|
|
||||||
<span class="label label-primary"><?= $lang["add_manga"]["manga"] ?></span>
|
|
||||||
<?php } elseif($mng["type"]==$lang["add_manga"]["manwha"]) { ?>
|
|
||||||
<span class="label label-success"><?= $lang["add_manga"]["manwha"] ?></span>
|
|
||||||
<?php } else { ?>
|
|
||||||
<span class="label label-info"><?= $lang["add_manga"]["manhua"] ?></span>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]) && $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]==$chapter["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?>
|
|
||||||
<?= $lang["chapter"]["oneshot"] ?>
|
|
||||||
<?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?>
|
|
||||||
Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["title"])) { ?>
|
|
||||||
<?= $lang["manga"]["unknown"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $chapter["title"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
<?php if($loggedin==true) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/edit_chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<span class="badge"><?= glyph("pencil",$lang["manga"]["edit_chap"]) ?> <?= $lang["manga"]["edit_chap"] ?></span>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$mng["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$mng["slug"]]==$mng["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $mng["slug"] ?>">
|
|
||||||
<?= $mng["title"] ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
<?= munch_groups($chapter["group1"], $chapter["group2"], $chapter["group3"]) ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
<?php $uploader = $conn->query("SELECT * FROM `user` WHERE `id`='".$chapter["user"]."' LIMIT 1")->fetch_assoc(); echo $uploader["username"]; ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-right"><?= $chapter["added"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,114 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["login"];
|
|
||||||
|
|
||||||
if($loggedin==true) {
|
|
||||||
header("Refresh: 0; url=./");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_GET["username"]) && isset($_GET["password"]) /*&& isset($_GET["captcha_challenge"])*/) {
|
|
||||||
/*if(isset($_GET['captcha_challenge']) && $_GET['captcha_challenge'] == $_SESSION['captcha_text']) {*/
|
|
||||||
$username = mysqli_real_escape_string($conn, $_GET["username"]);
|
|
||||||
$password = mysqli_real_escape_string($conn, $_GET["password"]);
|
|
||||||
$check1 = preg_match('/[^.a-zA-Z0-9-_]/', $username);
|
|
||||||
$check2 = preg_match('/[^.a-zA-Z0-9-_]/', $password);
|
|
||||||
if($check2==true) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["bad_password"];
|
|
||||||
}
|
|
||||||
if($check1==true) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["bad_username"];
|
|
||||||
}
|
|
||||||
if($error==false) {
|
|
||||||
// Everything is fine desu~
|
|
||||||
$check = $conn->query("SELECT * FROM `user` WHERE `username`='$username' LIMIT 1");
|
|
||||||
if(mysqli_num_rows($check)==1) {
|
|
||||||
// Account exists!
|
|
||||||
$check = mysqli_fetch_assoc($check);
|
|
||||||
$check = password_verify($password, $check["password"]);
|
|
||||||
if($check==true) {
|
|
||||||
// Yay, user exists & passowrd matches!
|
|
||||||
$user = $conn->query("SELECT * FROM `user` WHERE `username`='$username' LIMIT 1");
|
|
||||||
$user = mysqli_fetch_assoc($user);
|
|
||||||
$uid = $user["id"];
|
|
||||||
$token = rand();
|
|
||||||
$token = md5($token);
|
|
||||||
setcookie("".$config["cookie"]."_session", $token, time()+(86400*30), "/");
|
|
||||||
$conn->query("INSERT INTO `sessions`(`user-id`,`token`) VALUES('$uid','$token')");
|
|
||||||
header("Location: ./");
|
|
||||||
} else {
|
|
||||||
// Ewww error
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["wrong_password"];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// Username/Password doesn't match
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["attack"];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*} else {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["captcha"];
|
|
||||||
} */
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["login"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="get" id="login_form" name="login_user">
|
|
||||||
<h1 class="text-center"><?= $lang["menu"]["login"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_username" class="sr-only"><?= $lang["login"]["username"] ?></label>
|
|
||||||
<input tabindex="1" type="text" name="username" id="login_username" class="form-control" placeholder="<?= $lang["login"]["username"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_password" class="sr-only"><?= $lang["login"]["password"] ?></label>
|
|
||||||
<input tabindex="2" type="password" name="password" id="login_password" class="form-control" placeholder="<?= $lang["login"]["password"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input tabindex="4" type="checkbox" name="remember_me" value="1"> <?= $lang["login"]["cookies"] ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button tabindex="5" class="btn btn-lg btn-success btn-block" type="submit" id="login_button" name="user_login"><?= glyph("log-in",$lang["menu"]["login"]) ?> <?= $lang["menu"]["login"] ?></button>
|
|
||||||
<hr>
|
|
||||||
<p><?= $lang["login"]["message"] ?> <a href="<?= $config["url"] ?>signup"><?= $lang["menu"]["signup"] ?>!</a></p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var refreshButton = document.querySelector(".captcha-image");
|
|
||||||
refreshButton.onclick = function() {
|
|
||||||
document.querySelector(".captcha-image").src = 'render/parts/captcha.php?' + Date.now();
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,227 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
//$page = $lang["menu"]["home"];
|
|
||||||
|
|
||||||
$slug = mysqli_real_escape_string($conn, $_GET["slug"]);
|
|
||||||
$manga = $conn->query("SELECT * FROM `titles` WHERE `slug`='$slug' LIMIT 1");
|
|
||||||
$manga = mysqli_fetch_assoc($manga);
|
|
||||||
|
|
||||||
$mid = $manga["id"];
|
|
||||||
|
|
||||||
$chapters = $conn->query("SELECT * FROM `chapters` WHERE `mid`='$mid' ORDER BY `chapter` DESC");
|
|
||||||
|
|
||||||
if(empty($manga["author"])) $manga["author"] = $lang["manga"]["unknown"];
|
|
||||||
if(empty($manga["genre"])) $manga["genre"] = $lang["manga"]["unknown"];
|
|
||||||
if(empty($manga["author"])) $manga["author"] = $lang["manga"]["unknown"];
|
|
||||||
if(empty($manga["released"])) $manga["released"] = $lang["manga"]["unknown"];
|
|
||||||
if(empty($manga["description"])) $manga["description"] = $lang["manga"]["unknown"];
|
|
||||||
if(empty($manga["author"])) $manga["author"] = $lang["manga"]["unknown"];
|
|
||||||
|
|
||||||
if($manga["raw-status"]==1) {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][1];
|
|
||||||
} elseif($manga["raw-status"]==2) {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][2];
|
|
||||||
} elseif($manga["raw-status"]==3) {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][3];
|
|
||||||
} elseif($manga["raw-status"]==4) {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][4];
|
|
||||||
} elseif($manga["raw-status"]==5) {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][5];
|
|
||||||
} else {
|
|
||||||
$manga["raw-status"] = $lang["add_manga"]["rawst"][6];
|
|
||||||
}
|
|
||||||
|
|
||||||
if($manga["scan-status"]==1) {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][1];
|
|
||||||
} elseif($manga["scan-status"]==2) {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][2];
|
|
||||||
} elseif($manga["scan-status"]==3) {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][3];
|
|
||||||
} elseif($manga["scan-status"]==4) {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][4];
|
|
||||||
} elseif($manga["scan-status"]==5) {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][5];
|
|
||||||
} else {
|
|
||||||
$manga["scan-status"] = $lang["add_manga"]["scanst"][6];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["add_bookmark"])) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"]) || $_COOKIE[$config["cookie"]."_cookie-consent"]==2) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", false, time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
} else {
|
|
||||||
setcookie($config["cookie"]."_bookmark-".$manga["slug"], $manga["slug"], time()+31556926, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["remove_bookmark"])) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"]) || $_COOKIE[$config["cookie"]."_cookie-consent"]==2) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", false, time() - 3600, "/");
|
|
||||||
header("Refresh: 0;");
|
|
||||||
} else {
|
|
||||||
setcookie($config["cookie"]."_bookmark-".$manga["slug"], $manga["slug"], time() - 3600, "/");
|
|
||||||
foreach($chapters as $rch) {
|
|
||||||
if(isset($_COOKIE[$config["cookie"]."_chapter-".$rch["slug"]])) {
|
|
||||||
setcookie($config["cookie"]."_chapter-".$rch["slug"], $rch["slug"], time() - 3600, "/");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
header("Refresh: 0;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if(!empty($manga["id"])) { ?>
|
|
||||||
<title><?= $manga["title"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } else { ?>
|
|
||||||
<title><?= $lang["login"]["error"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<a href="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" target="_blank">
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<h2>
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) { ?>
|
|
||||||
<?= glyph("bookmark","Bookmarked") ?>
|
|
||||||
<?php } ?>
|
|
||||||
<b><u><?= $manga["title"] ?></u></b>
|
|
||||||
<form method="post" name="bookmark">
|
|
||||||
<?php if($loggedin==true) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/edit_title/<?= $manga["slug"] ?>"><small class="badge"><?= glyph("pencil",$lang["manga"]["edit_title"]) ?> <?= $lang["manga"]["edit_title"] ?></small></a>
|
|
||||||
<a href="<?= $config["url"] ?>admin/add_chapter/<?= $manga["slug"] ?>"><small class="badge"><?= glyph("plus",$lang["manga"]["add_ch"]) ?> <?= $lang["manga"]["add_ch"] ?></small></a>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]])) { ?>
|
|
||||||
<button type="submit" name="add_bookmark" class="badge"><?= glyph("bookmark",$lang["chapter"]["bookmark"]) ?> <?= $lang["chapter"]["bookmark"] ?></button>
|
|
||||||
<?php } else { ?>
|
|
||||||
<button type="submit" name="remove_bookmark" class="badge"><?= glyph("remove",$lang["chapter"]["remove_bm"]) ?> <?= $lang["chapter"]["remove_bm"] ?></button>
|
|
||||||
<?php } ?>
|
|
||||||
</form>
|
|
||||||
</h2>
|
|
||||||
<p><b><?= $lang["manga"]["alt"] ?>:</b> <?= $manga["alt"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["author"] ?>:</b> <?= $manga["author"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["genre"] ?>:</b> <?= $manga["genre"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["type"] ?>:</b> <?= $manga["type"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["released"] ?>:</b> <?= $manga["released"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["raw-status"] ?>:</b> <?= $manga["raw-status"] ?></p>
|
|
||||||
<p><b><?= $lang["manga"]["scan-status"] ?>:</b> <?= $manga["scan-status"] ?></p>
|
|
||||||
<?php if(!empty($manga["raw-url"])) { ?>
|
|
||||||
<p><a href="<?= $manga["raw-url"] ?>" target="_blank"><?= $lang["manga"]["raw"] ?></a></p>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if(!empty($manga["licensed"])) { ?>
|
|
||||||
<p><a href="<?= $manga["official-url"] ?>" target="_blank"><?= $lang["manga"]["licensed"] ?></a></p>
|
|
||||||
<?php } ?>
|
|
||||||
<p><i><?= $lang["manga"]["added"] ?> <?= $manga["added"] ?></i></p>
|
|
||||||
<div class="panel panel-default panel-body">
|
|
||||||
<?= $manga["description"] ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div>
|
|
||||||
|
|
||||||
<!-- Nav tabs -->
|
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
|
||||||
<li role="presentation" class="active"><a href="#chapters" aria-controls="chapters" role="tab" data-toggle="tab"><?= $lang["manga"]["chapters"] ?></a></li>
|
|
||||||
<li role="presentation"><a href="#comments" aria-controls="comments" role="tab" data-toggle="tab"><?= $lang["manga"]["comments"] ?></a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!-- Tab panes -->
|
|
||||||
<div class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane fade in active" id="chapters">
|
|
||||||
<div class="table-responsive" id="latest-titles">
|
|
||||||
<table class="table table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<th style="width:10%"><?= $lang["home"]["chapter"] ?></th>
|
|
||||||
<th style="width:40%;"><?= $lang["home"]["chap_title"] ?></th>
|
|
||||||
<th style="width:20%" class="text-center"><?= $lang["home"]["group"] ?></th>
|
|
||||||
<th style="width:10%" class="text-center"><?= $lang["home"]["uploader"] ?></th>
|
|
||||||
<th class="text-right" style="width:20%"><?= $lang["home"]["added"] ?></th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach($chapters as $chapter) { ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]) && $_COOKIE[$config["cookie"]."_chapter-".$chapter["slug"]]==$chapter["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?php if(empty($chapter["volume"]) && empty($chapter["chapter"])) { ?>
|
|
||||||
<?= $lang["chapter"]["oneshot"] ?>
|
|
||||||
<?php } elseif(empty($chapter["volume"]) && !empty($chapter["chapter"])) { ?>
|
|
||||||
Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
Vol. <?= $chapter["volume"] ?> Ch. <?= $chapter["chapter"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="<?= $config["url"] ?>chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<?php if(empty($chapter["title"])) { ?>
|
|
||||||
<?= $lang["manga"]["unknown"] ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<?= $chapter["title"] ?>
|
|
||||||
<?php } ?>
|
|
||||||
</a>
|
|
||||||
<?php if($loggedin==true) { ?>
|
|
||||||
<a href="<?= $config["url"] ?>admin/edit_chapter/<?= $chapter["slug"] ?>">
|
|
||||||
<span class="badge"><?= glyph("pencil",$lang["manga"]["edit_chap"]) ?> <?= $lang["manga"]["edit_chap"] ?></span>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
<?= munch_groups($chapter["group1"], $chapter["group2"], $chapter["group3"]) ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
<?php $uploader = $conn->query("SELECT * FROM `user` WHERE `id`='".$chapter["user"]."' LIMIT 1"); $uploader = mysqli_fetch_assoc($uploader); echo $uploader["username"]; ?>
|
|
||||||
</td>
|
|
||||||
<td class="text-right"><?= $chapter["added"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div role="tabpanel" class="tab-pane fade in" id="comments">
|
|
||||||
<div id="disqus_thread"></div>
|
|
||||||
<script>
|
|
||||||
/**
|
|
||||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
|
||||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
|
|
||||||
/*
|
|
||||||
var disqus_config = function () {
|
|
||||||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
|
||||||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
(function() { // DON'T EDIT BELOW THIS LINE
|
|
||||||
var d = document,
|
|
||||||
s = d.createElement('script');
|
|
||||||
s.src = 'https://<?= $config["disqus"] ?>.disqus.com/embed.js';
|
|
||||||
s.setAttribute('data-timestamp', +new Date());
|
|
||||||
(d.head || d.body).appendChild(s);
|
|
||||||
})();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,142 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["signup"];
|
|
||||||
|
|
||||||
if($loggedin==true) {
|
|
||||||
header("Refresh: 0; url=./");
|
|
||||||
}
|
|
||||||
|
|
||||||
$date = date('Y-m-d h:i:s');
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_GET["username"]) && isset($_GET["password"]) && isset($_GET["password2"]) && isset($_GET["invite"])) {
|
|
||||||
//if(isset($_GET['captcha_challenge']) && $_GET['captcha_challenge'] == $_SESSION['captcha_text']) {
|
|
||||||
$username = mysqli_real_escape_string($conn, $_GET["username"]);
|
|
||||||
$password1 = mysqli_real_escape_string($conn, $_GET["password"]);
|
|
||||||
$password2 = mysqli_real_escape_string($conn, $_GET["password2"]);
|
|
||||||
$invite = mysqli_real_escape_string($conn, $_GET["invite"]);
|
|
||||||
$check1 = preg_match('/[^.a-zA-Z0-9-_]/', $username);
|
|
||||||
$check2 = preg_match('/[^.a-zA-Z0-9-_]/', $password1);
|
|
||||||
$check3 = preg_match('/[^.a-zA-Z0-9-_]/', $password2);
|
|
||||||
$invitecheck = $conn->query("SELECT * FROM `invites` WHERE `token`='$invite' LIMIT 1");
|
|
||||||
$usercheck = $conn->query("SELECT * FROM `user` WHERE `username`='$username' LIMIT 1");
|
|
||||||
|
|
||||||
// Executing all the checks
|
|
||||||
|
|
||||||
if(empty($invite)) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["empty_invite"];
|
|
||||||
}
|
|
||||||
if($check3==true) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["bad_password"];
|
|
||||||
}
|
|
||||||
if($check2==true) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["bad_password"];
|
|
||||||
}
|
|
||||||
if($check1==true) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["bad_username"];
|
|
||||||
}
|
|
||||||
if(mysqli_num_rows($invitecheck)==1) {
|
|
||||||
$inv = mysqli_fetch_assoc($invitecheck);
|
|
||||||
if(!empty($inv["used"])) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["used_invite"];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(mysqli_num_rows($usercheck)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["taken_username"];
|
|
||||||
}
|
|
||||||
if($password1!=$password2) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["unmatch_password"];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Everything is right?!
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
// Everything is right!
|
|
||||||
$password = password_hash($password1, PASSWORD_BCRYPT);
|
|
||||||
$conn->query("UPDATE `invites` SET `used`='$date' WHERE `token`='$invite'");
|
|
||||||
$conn->query("INSERT INTO `user`(`username`,`password`) VALUES('$username','$password')");
|
|
||||||
header("Location: ./login");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*} else {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["captcha"];
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["signup"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="get" id="login_form" name="signup_user">
|
|
||||||
<h1 class="text-center"><?= $lang["menu"]["signup"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_username" class="sr-only"><?= $lang["login"]["username"] ?></label>
|
|
||||||
<input tabindex="1" type="text" name="username" id="login_username" class="form-control" maxlength="20" placeholder="<?= $lang["login"]["username"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_password" class="sr-only"><?= $lang["login"]["password"] ?></label>
|
|
||||||
<input tabindex="2" type="password" name="password" id="login_password" class="form-control" placeholder="<?= $lang["login"]["password"] ?>" maxlength="50">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_password2" class="sr-only"><?= $lang["signup"]["password"] ?></label>
|
|
||||||
<input tabindex="3" type="password" name="password2" id="login_password2" class="form-control" placeholder="<?= $lang["signup"]["password"] ?>" maxlength="50">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_invite" class="sr-only"><?= $lang["signup"]["invite"] ?></label>
|
|
||||||
<input tabindex="4" type="text" name="invite" id="login_invite" class="form-control" placeholder="<?= $lang["signup"]["invite"] ?>" maxlength="50">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="login_captcha" class="sr-only"><?= $lang["login"]["captcha"] ?></label>
|
|
||||||
<input tabindex="5" id="login_captcha" class="form-control" type="text" placeholder="<?= $lang["login"]["captcha"] ?>" name="captcha_challenge" tabindex="3" title="<?= $lang["login"]["captcha"] ?>" autocomplete="off" maxlength="6">
|
|
||||||
<img src="render/parts/captcha.php" alt="CAPTCHA IMAGE (Click to refresh)" class="captcha-image loading" width="200px" title="Click to refresh!" style="padding-top:10px;padding-bottom:10px;margin-left:50px;margin-right:50px;">
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<button tabindex="6" class="btn btn-lg btn-success btn-block" type="submit" id="login_button" name="signup_user"><?= glyph("plus",$lang["menu"]["signup"]) ?> <?= $lang["menu"]["signup"] ?></button>
|
|
||||||
<hr>
|
|
||||||
<p><?= $lang["signup"]["message"] ?> <a href="<?= $config["url"] ?>login"><?= $lang["menu"]["login"] ?>!</a></p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var refreshButton = document.querySelector(".captcha-image");
|
|
||||||
refreshButton.onclick = function() {
|
|
||||||
document.querySelector(".captcha-image").src = 'render/parts/captcha.php?' + Date.now();
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,26 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$static = mysqli_real_escape_string($conn, $_GET["static"]);
|
|
||||||
$s = $conn->query("SELECT * FROM `statics` WHERE `name`='$static' LIMIT 1")->fetch_assoc();
|
|
||||||
|
|
||||||
if($s["public"]==false && (($user["level"]!=1 && $user["level"]!=2) || $user["active"]==false)) {
|
|
||||||
header("Location: ../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$page = "s/".$s["name"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $s["title"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php include("../statics/".$s["name"].".html") ?>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,161 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Note to my future self: Someday I'll need to make this proccess automated...
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["titles"];
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
$titles_1 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='1' ORDER BY `title` ASC");
|
|
||||||
$titles_2 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='2' ORDER BY `title` ASC");
|
|
||||||
$titles_3 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='3' ORDER BY `title` ASC");
|
|
||||||
$titles_4 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='4' ORDER BY `title` ASC");
|
|
||||||
$titles_5 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='5' ORDER BY `title` ASC");
|
|
||||||
$titles_6 = $conn->query("SELECT * FROM `titles` WHERE `scan-status`='6' ORDER BY `title` ASC");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["titles"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<div class="row" onmouseover="search_manga()">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<input type="text" id="mangaSearch" class="form-control" onkeyup="search_manga()" placeholder="Search for Manga..." value="<?php if(isset($_GET["mtitle"])) echo mysqli_real_escape_string($conn, $_GET["mtitle"]); ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="mangaSearchList">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][1] ?></h2>
|
|
||||||
<?php foreach($titles_1 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][2] ?></h2>
|
|
||||||
<?php foreach($titles_2 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][3] ?></h2>
|
|
||||||
<?php foreach($titles_3 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][4] ?></h2>
|
|
||||||
<?php foreach($titles_4 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][5] ?></h2>
|
|
||||||
<?php foreach($titles_5 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<h2 class="text-center"><?= $lang["add_manga"]["scanst"][6] ?></h2>
|
|
||||||
<?php foreach($titles_6 as $manga) { ?>
|
|
||||||
<div class="col-sm-2 mangaSearchItem">
|
|
||||||
<a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>" class="thumbnail">
|
|
||||||
<p class="text-center mangaSearchText" style="position: absolute; margin-bottom:-10px;color: black; text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white, -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white, 0.05em 0.05em white;" title="<?= $manga["title"] ?>">
|
|
||||||
<?php if(isset($_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]) && $_COOKIE[$config["cookie"]."_bookmark-".$manga["slug"]]==$manga["slug"]) echo glyph("bookmark","Bookmarked"); ?>
|
|
||||||
<?= $manga["title"] ?>
|
|
||||||
</p>
|
|
||||||
<img src="<?= $config["url"] ?>data/covers/<?= $manga["cover"] ?>" width="100%" alt="<?= $manga["title"] ?>" title="<?= $manga["title"] ?>" class="loading">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function search_manga() {
|
|
||||||
let input = document.getElementById('mangaSearch').value
|
|
||||||
input = input.toLowerCase();
|
|
||||||
let x = document.getElementsByClassName('mangaSearchItem');
|
|
||||||
|
|
||||||
for (i = 0; i < x.length; i++) {
|
|
||||||
if (!x[i].innerHTML.toLowerCase().includes(input)) {
|
|
||||||
x[i].style.display = "none";
|
|
||||||
} else {
|
|
||||||
x[i].style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if($_GET["page"]=="login") {
|
|
||||||
header("location: login");
|
|
||||||
} elseif($_GET["page"]=="signup") {
|
|
||||||
header("location: signup");
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
@ -1,190 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["add_chapter"]["title"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$slug2 = mysqli_real_escape_string($conn, $_GET["slug"]);
|
|
||||||
$manga = $conn->query("SELECT * FROM `titles` WHERE `slug`='$slug2' LIMIT 1");
|
|
||||||
$manga = mysqli_fetch_assoc($manga);
|
|
||||||
|
|
||||||
$groups = $conn->query("SELECT * FROM `groups` WHERE `approved`='1' ORDER BY `name` ASC");
|
|
||||||
|
|
||||||
$mid = $manga["id"];
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["add_chapter"])) {
|
|
||||||
$slug = generate_url();
|
|
||||||
$volume = mysqli_real_escape_string($conn, $_POST["volume"]);
|
|
||||||
$chapter = mysqli_real_escape_string($conn, $_POST["chapter"]);
|
|
||||||
$title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
|
|
||||||
$group1 = mysqli_real_escape_string($conn, $_POST["group1"]);
|
|
||||||
$group2 = mysqli_real_escape_string($conn, $_POST["group2"]);
|
|
||||||
$group3 = mysqli_real_escape_string($conn, $_POST["group3"]);
|
|
||||||
|
|
||||||
if(empty($volume)) { $volume = "NULL"; } else { $volume = "'$volume'"; }
|
|
||||||
if(empty($chapter)) { $chapter = "'0'"; } else { $chapter = "'$chapter'"; }
|
|
||||||
if(empty($title)) { $title = "NULL"; } else { $title = "'$title'"; }
|
|
||||||
if(empty($group2) || $group2==0) { $group2 = "NULL"; } else { $group2 = "'$group2'"; }
|
|
||||||
if(empty($group3) || $group2==0) { $group3 = "NULL"; } else { $group3 = "'$group3'"; }
|
|
||||||
|
|
||||||
$target_file = "../../data/chapters/".$_FILES["archive"]["name"];
|
|
||||||
$new_file = "../../data/chapters/".$slug;
|
|
||||||
move_uploaded_file($_FILES["archive"]["tmp_name"], $target_file);
|
|
||||||
$filename = pathinfo($_FILES['archive']['name'], PATHINFO_FILENAME);
|
|
||||||
$before_file = "../../data/chapters/".$filename;
|
|
||||||
$zip = new ZipArchive;
|
|
||||||
$res = $zip->open($target_file);
|
|
||||||
$zip->extractTo('../../data/chapters/');
|
|
||||||
$zip->close();
|
|
||||||
rename($before_file, $new_file);
|
|
||||||
unlink($target_file);
|
|
||||||
|
|
||||||
$uid = $user["id"];
|
|
||||||
|
|
||||||
$conn->query("INSERT INTO `chapters`(`mid`,`slug`,`volume`,`chapter`,`title`,`user`,`group1`,`group2`,`group3`) VALUES('$mid','$slug',$volume,$chapter,$title,'$uid','$group1', $group2, $group3)");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if(!empty($manga["id"])) { ?>
|
|
||||||
<title><?= $lang["add_chapter"]["title"]." ".$manga["title"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } else { ?>
|
|
||||||
<title><?= $lang["login"]["error"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="add_chapter" enctype="multipart/form-data">
|
|
||||||
<h1 class="text-center"><?= $lang["add_chapter"]["title"] ?> <a href="<?= $config["url"] ?>manga/<?= $slug2 ?>"><b><u><?= $manga["title"] ?></u></b></a></h1>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="archive" class="sr-"><?= $lang["add_chapter"]["file"] ?></label>
|
|
||||||
<input tabindex="1" required type="file" name="archive" id="archive" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_vol"><?= $lang["add_chapter"]["volume"] ?> </label>
|
|
||||||
<input tabindex="2" type="number" name="volume" id="chapter_vol" class="form-control" value="<?php if(isset($_POST["volume"])) { $vol = $_POST["volume"]; echo $vol; } ?>" placeholder="<?= $lang["add_chapter"]["volume"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_chap"><?= $lang["add_chapter"]["chapter"] ?> </label>
|
|
||||||
<input tabindex="3" type="text" name="chapter" id="chapter_chap" class="form-control" value="<?php if(isset($_POST["chapter"])) { $chap = $_POST["chapter"]; $chap++; echo $chap; } ?>" placeholder="<?= $lang["add_chapter"]["chapter"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_title"><?= $lang["add_chapter"]["ctitle"] ?> </label>
|
|
||||||
<input tabindex="4" type="text" name="title" id="chapter_title" class="form-control" placeholder="<?= $lang["add_chapter"]["ctitle"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="checkbox" id="chkbx1" checked onchange="toggleBox('chkbx1', 'group1div')"> *<label for="chkbx1"><?= $lang["add_chapter"]["sel_grp1"] ?></label>
|
|
||||||
<div class="form-group" id="group1div">
|
|
||||||
<input type="text" id="groupSearch1" class="form-control" onkeyup="search_group('1')" placeholder="<?= $lang["add_chapter"]["ser_grp"] ?>">
|
|
||||||
<div id="groupSearch1">
|
|
||||||
<fieldset>
|
|
||||||
<div>
|
|
||||||
<input type="radio" id="yougroup1" name="group1" value="0" checked> <label for="yougroup1"><?= $lang["add_chapter"]["no_group"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php foreach($groups as $g) { ?>
|
|
||||||
<div class="groupSearchItem1">
|
|
||||||
<input type="radio" id="group1item-<?= $g["id"] ?>" name="group1" value="<?= $g["id"] ?>" <?php if(isset($_POST["group1"]) && $_POST["group1"]==$g["id"]) echo "checked"; ?>> <label for="group1item-<?= $g["id"] ?>"><?= $g["name"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="checkbox" id="chkbx2" <?php if(isset($_POST["group2"]) && $_POST["group2"]!=0) echo "checked"; ?> onchange="toggleBox('chkbx2', 'group2div')"> <label for="chkbx2"><?= $lang["add_chapter"]["sel_grp2"] ?></label>
|
|
||||||
<div class="form-group" id="group2div" <?php if(!isset($_POST["group2"]) || $_POST["group2"]==0) echo 'style="display: none"'; ?>>
|
|
||||||
<input type="text" id="groupSearch2" class="form-control" onkeyup="search_group('2')" placeholder="<?= $lang["add_chapter"]["ser_grp"] ?>" value="<?php if(isset($_GET["mtitle"])) echo mysqli_real_escape_string($conn, $_GET["mtitle"]); ?>">
|
|
||||||
<div id="groupSearch2">
|
|
||||||
<fieldset>
|
|
||||||
<div>
|
|
||||||
<input type="radio" id="yougroup2" name="group2" value="0" checked> <label for="yougroup2"><?= $lang["add_chapter"]["none"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php foreach($groups as $g) { ?>
|
|
||||||
<div class="groupSearchItem2">
|
|
||||||
<input type="radio" id="group2item-<?= $g["id"] ?>" name="group2" value="<?= $g["id"] ?>" <?php if(isset($_POST["group2"]) && $_POST["group2"]==$g["id"]) echo "checked"; ?>> <label for="group2item-<?= $g["id"] ?>"><?= $g["name"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="checkbox" id="chkbx3" <?php if(isset($_POST["group3"]) && $_POST["group3"]!=0) echo "checked"; ?> onchange="toggleBox('chkbx3', 'group3div')"> <label for="chkbx3"><?= $lang["add_chapter"]["sel_grp3"] ?></label>
|
|
||||||
<div class="form-group" id="group3div" <?php if(!isset($_POST["group3"]) || $_POST["group3"]==0) echo 'style="display: none"'; ?>>
|
|
||||||
<input type="text" id="groupSearch3" class="form-control" onkeyup="search_group('3')" placeholder="<?= $lang["add_chapter"]["ser_grp"] ?>" value="<?php if(isset($_GET["mtitle"])) echo mysqli_real_escape_string($conn, $_GET["mtitle"]); ?>">
|
|
||||||
<div id="groupSearch3">
|
|
||||||
<fieldset>
|
|
||||||
<div>
|
|
||||||
<input type="radio" id="yougroup3" name="group3" value="0" checked> <label for="yougroup3"><?= $lang["add_chapter"]["none"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php foreach($groups as $g) { ?>
|
|
||||||
<div class="groupSearchItem3">
|
|
||||||
<input type="radio" id="group3item-<?= $g["id"] ?>" name="group3" value="<?= $g["id"] ?>" <?php if(isset($_POST["group3"]) && $_POST["group3"]==$g["id"]) echo "checked"; ?>> <label for="group3item-<?= $g["id"] ?>"><?= $g["name"] ?></label>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_chapter"]["group_unap"] ?></i></p>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<button tabindex="5" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="add_chapter"><?= glyph("plus",$lang["add_chapter"]["button"]) ?> <?= $lang["add_chapter"]["button"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function toggleBox(box, div) {
|
|
||||||
var div = document.getElementById(div);
|
|
||||||
if (div.style.display === "none") {
|
|
||||||
div.style.display = "block";
|
|
||||||
} else {
|
|
||||||
div.style.display = "none";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function search_group(div) {
|
|
||||||
let input = document.getElementById('groupSearch' + div).value
|
|
||||||
input = input.toLowerCase();
|
|
||||||
let x = document.getElementsByClassName('groupSearchItem' + div);
|
|
||||||
|
|
||||||
for (i = 0; i < x.length; i++) {
|
|
||||||
if (!x[i].innerHTML.toLowerCase().includes(input)) {
|
|
||||||
x[i].style.display = "none";
|
|
||||||
} else {
|
|
||||||
x[i].style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,132 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["edit_chapter"]["title"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$slug2 = mysqli_real_escape_string($conn, $_GET["slug"]);
|
|
||||||
$chapter = $conn->query("SELECT * FROM `chapters` WHERE `slug`='$slug2' LIMIT 1");
|
|
||||||
$chapter = mysqli_fetch_assoc($chapter);
|
|
||||||
|
|
||||||
$mid = $chapter["mid"];
|
|
||||||
|
|
||||||
$manga = $conn->query("SELECT * FROM `titles` WHERE `id`='$mid' LIMIT 1");
|
|
||||||
$manga = mysqli_fetch_assoc($manga);
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["edit_chapter"])) {
|
|
||||||
$slug = generate_url();
|
|
||||||
$volume = mysqli_real_escape_string($conn, $_POST["volume"]);
|
|
||||||
$chapter = mysqli_real_escape_string($conn, $_POST["chapter"]);
|
|
||||||
$title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
|
|
||||||
if(empty($volume)) { $volume = "NULL"; } else { $volume = "'$volume'"; }
|
|
||||||
if(empty($chapter)) { $chapter = "'0'"; } else { $chapter = "'$chapter'"; }
|
|
||||||
if(empty($title)) { $title = "NULL"; } else { $title = "'$title'"; }
|
|
||||||
|
|
||||||
if(isset($_FILES["archive"]["tmp_name"]) && !empty($_FILES["archive"]["tmp_name"])) {
|
|
||||||
$target_file = "../../data/chapters/".$_FILES["archive"]["name"];
|
|
||||||
$new_file = "../../data/chapters/".$slug;
|
|
||||||
move_uploaded_file($_FILES["archive"]["tmp_name"], $target_file);
|
|
||||||
$filename = pathinfo($_FILES['archive']['name'], PATHINFO_FILENAME);
|
|
||||||
$before_file = "../../data/chapters/".$filename;
|
|
||||||
$zip = new ZipArchive;
|
|
||||||
$res = $zip->open($target_file);
|
|
||||||
$zip->extractTo('../../data/chapters/');
|
|
||||||
$zip->close();
|
|
||||||
rename($before_file, $new_file);
|
|
||||||
unlink($target_file);
|
|
||||||
} else {
|
|
||||||
$slug = $slug2;
|
|
||||||
}
|
|
||||||
|
|
||||||
$uid = $user["id"];
|
|
||||||
|
|
||||||
$conn->query("UPDATE `chapters` SET `slug`='$slug', `volume`=$volume, `chapter`=$chapter, `title`=$title, `user`='$uid' WHERE `slug`='$slug2'");
|
|
||||||
header("Refresh: 0; url=$slug");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["delete_chapter"])) {
|
|
||||||
$conn->query("DELETE FROM `chapters` WHERE `slug`='$slug2'");
|
|
||||||
header("Location: ".$config["url"]."manga/".$manga["slug"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if(!empty($chapter["id"])) { ?>
|
|
||||||
<title><?= $lang["edit_chapter"]["title"]." - ".$manga["title"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } else { ?>
|
|
||||||
<title><?= $lang["login"]["error"]." :: ".$config["title"] ?></title>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" name="edit_chapter" enctype="multipart/form-data">
|
|
||||||
<h1 class="text-center"><?= $lang["edit_chapter"]["title"] ?></h1>
|
|
||||||
<h3 class="text-center"><a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>"><?= $lang["edit_chapter"]["return"] ?>: <?= $manga["title"] ?></a></h3>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="archive" class="sr-"><?= $lang["edit_chapter"]["file"] ?></label>
|
|
||||||
<input tabindex="1" type="file" name="archive" id="archive" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_vol"><?= $lang["add_chapter"]["volume"] ?> </label>
|
|
||||||
<input tabindex="2" type="number" name="volume" id="chapter_vol" class="form-control" value="<?= $chapter["volume"] ?>" placeholder="<?= $lang["add_chapter"]["volume"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_chap"><?= $lang["add_chapter"]["chapter"] ?> </label>
|
|
||||||
<input tabindex="3" type="number" name="chapter" id="chapter_chap" class="form-control" value="<?= $chapter["chapter"] ?>" placeholder="<?= $lang["add_chapter"]["chapter"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="chapter_title"><?= $lang["add_chapter"]["ctitle"] ?> </label>
|
|
||||||
<input tabindex="4" type="text" name="title" id="chapter_title" class="form-control" placeholder="<?= $lang["add_chapter"]["ctitle"] ?>" value="<?= $chapter["title"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<button tabindex="5" class="btn btn-lg btn-success btn-block" type="submit" id="upload-file" name="edit_chapter"><?= glyph("pencil",$lang["edit_chapter"]["edit"]) ?> <?= $lang["edit_chapter"]["edit"] ?></button>
|
|
||||||
</form>
|
|
||||||
<hr>
|
|
||||||
<form method="post" name="delete_chapter">
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-danger btn-block" onclick="showDelCon()" type="button" id="delbtn"><?= glyph("trash",$lang["edit_chapter"]["delete"]) ?> <?= $lang["edit_chapter"]["delete"] ?></button>
|
|
||||||
<div id="delcon" style="display: none">
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-success btn-block" onclick="hideDelCon()" type="button" id="delbtn"><?= glyph("remove",$lang["edit_chapter"]["del_no"]) ?> <?= $lang["edit_chapter"]["del_no"] ?></button>
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-danger btn-block" type="submit" name="delete_chapter" id="delbtn"><?= glyph("trash",$lang["edit_chapter"]["del_yes"]) ?> <?= $lang["edit_chapter"]["del_yes"] ?></button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function showDelCon() {
|
|
||||||
document.getElementById("delbtn").style.display = "none";
|
|
||||||
document.getElementById("delcon").style.display = "block";
|
|
||||||
}
|
|
||||||
|
|
||||||
function hideDelCon() {
|
|
||||||
document.getElementById("delbtn").style.display = "block";
|
|
||||||
document.getElementById("delcon").style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,227 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["edit_title"]["title"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$slug2 = mysqli_real_escape_string($conn, $_GET["slug"]);
|
|
||||||
$manga = $conn->query("SELECT * FROM `titles` WHERE `slug`='$slug2' LIMIT 1");
|
|
||||||
$manga = mysqli_fetch_assoc($manga);
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
$slug = $manga["slug"];
|
|
||||||
|
|
||||||
if(isset($_POST["edit_title"])) {
|
|
||||||
$m_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
$m_alt = mysqli_real_escape_string($conn, $_POST["alt"]);
|
|
||||||
$m_author = mysqli_real_escape_string($conn, $_POST["author"]);
|
|
||||||
$m_genre = mysqli_real_escape_string($conn, $_POST["genre"]);
|
|
||||||
$m_type = mysqli_real_escape_string($conn, $_POST["type"]);
|
|
||||||
$m_released = mysqli_real_escape_string($conn, $_POST["released"]);
|
|
||||||
$m_rawstatus = mysqli_real_escape_string($conn, $_POST["raw-status"]);
|
|
||||||
$m_scanstatus = mysqli_real_escape_string($conn, $_POST["scan-status"]);
|
|
||||||
$m_description = mysqli_real_escape_string($conn, $_POST["description"]);
|
|
||||||
$m_rawurl = mysqli_real_escape_string($conn, $_POST["raw-url"]);
|
|
||||||
$m_licensed = mysqli_real_escape_string($conn, $_POST["licensed"]);
|
|
||||||
$m_officialurl = mysqli_real_escape_string($conn, $_POST["official-url"]);
|
|
||||||
|
|
||||||
if($m_title!=$manga["title"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `title`='$m_title' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_alt!=$manga["alt"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `alt`='$m_alt' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_author!=$manga["author"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `author`='$m_author' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_genre!=$manga["genre"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `genre`='$m_genre' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_released!=$manga["released"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `released`='$m_released' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_description!=$manga["description"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `description`='$m_description' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_rawurl!=$manga["raw-url"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `raw-url`='$m_rawurl' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_licensed!=$manga["licensed"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `licensed`='$m_licensed' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
if($m_officialurl!=$manga["official-url"]) {
|
|
||||||
$conn->query("UPDATE `titles` SET `official-url`='$m_officialurl' WHERE `id`='".$manga["id"]."'");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_FILES["cover"]["tmp_name"]) && !empty($_FILES["cover"]["tmp_name"])) {
|
|
||||||
$filename = pathinfo($_FILES['cover']['name'], PATHINFO_FILENAME);
|
|
||||||
$fileextension = pathinfo($_FILES['cover']['name'], PATHINFO_EXTENSION);
|
|
||||||
$finalfile = $filename."-".$slug.".".$fileextension;
|
|
||||||
$target_file = "../../data/covers/".$finalfile;
|
|
||||||
|
|
||||||
// Check if image file is a actual image or fake image
|
|
||||||
$check = getimagesize($_FILES["cover"]["tmp_name"]);
|
|
||||||
if($check !== false) {
|
|
||||||
// Update SQL for Image
|
|
||||||
move_uploaded_file($_FILES["cover"]["tmp_name"], $target_file);
|
|
||||||
$conn->query("UPDATE `titles` SET `cover`='$finalfile' WHERE `id`='".$manga["id"]."'");
|
|
||||||
} else {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["unsupported_image"];
|
|
||||||
}
|
|
||||||
} // no else statement needed
|
|
||||||
|
|
||||||
// No need for it anymore
|
|
||||||
// if($error==false) {
|
|
||||||
// $conn->query("INSERT INTO `titles`(`slug`,`title`,`cover`,`alt`,`author`,`genre`,`type`,`released`,`raw-status`,`scan-status`,`description`,`raw-url`,`licensed`,`official-url`) VALUES('$slug','$m_title','$finalfile',$m_alt,$m_author,$m_genre,'$m_type',$m_released,'$m_rawstatus','$m_scanstatus',$m_description,$m_rawurl,$m_licensed,$m_officialurl)");
|
|
||||||
// if(isset($_FILES["cover"]["tmp_name"])) {
|
|
||||||
// move_uploaded_file($_FILES["cover"]["tmp_name"], $target_file);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
header("Refresh: 0");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["delete_title"])) {
|
|
||||||
$conn->query("DELETE FROM `titles` WHERE `slug`='$slug'");
|
|
||||||
header("Location: ../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["edit_title"]["title"]." - ".$manga["title"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" id="login_form" name="edit_title" enctype="multipart/form-data">
|
|
||||||
<h1 class="text-center"><?= $lang["edit_title"]["title"] ?></h1>
|
|
||||||
<h3 class="text-center"><a href="<?= $config["url"] ?>manga/<?= $manga["slug"] ?>"><?= $lang["edit_chapter"]["return"] ?>: <?= $manga["title"] ?></a></h3>
|
|
||||||
<hr>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_title"><?= $lang["add_manga"]["title"] ?></label>
|
|
||||||
<input tabindex="1" type="text" name="title" id="manga_title" class="form-control" value="<?= $manga["title"] ?>" placeholder="<?= $lang["add_manga"]["title"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_cover" class="sr-"><?= $lang["add_manga"]["cover"] ?></label>
|
|
||||||
<input tabindex="2" type="file" name="cover" id="manga_cover" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_alt"><?= $lang["add_manga"]["alt"] ?></label>
|
|
||||||
<input tabindex="3" type="text" name="alt" id="manga_alt" class="form-control" value="<?= $manga["alt"] ?>" placeholder="<?= $lang["add_manga"]["alt"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_author"><?= $lang["add_manga"]["author"] ?></label>
|
|
||||||
<input tabindex="4" type="text" name="author" id="manga_author" class="form-control" value="<?= $manga["author"] ?>" placeholder="<?= $lang["add_manga"]["author"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_genre"><?= $lang["add_manga"]["genre"] ?></label>
|
|
||||||
<input tabindex="5" type="text" name="genre" id="manga_genre" class="form-control" value="<?= $manga["genre"] ?>" placeholder="<?= $lang["add_manga"]["genre"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-status"><?= $lang["add_manga"]["type"] ?></label>
|
|
||||||
<select required tabindex="6" class="selectpicker form-control" name="type" id="manga_type">
|
|
||||||
<option <?php if($manga["type"]=="Manga") echo "selected"; ?> value="Manga"><?= $lang["add_manga"]["type_manga"] ?></option>
|
|
||||||
<option <?php if($manga["type"]=="Manwha") echo "selected"; ?> value="Manwha"><?= $lang["add_manga"]["type_manwha"] ?></option>
|
|
||||||
<option <?php if($manga["type"]=="Manhua") echo "selected"; ?> value="Manhua"><?= $lang["add_manga"]["type_manhua"] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_released"><?= $lang["add_manga"]["released"] ?></label>
|
|
||||||
<input tabindex="7" type="number" name="released" id="manga_released" class="form-control" value="<?= $manga["released"] ?>" placeholder="<?= $lang["add_manga"]["released"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-status"><?= $lang["add_manga"]["raw-st"] ?></label>
|
|
||||||
<select tabindex="8" class="selectpicker form-control" name="raw-status" id="manga_raw-status">
|
|
||||||
<option <?php if($manga["raw-status"]==1) echo "selected"; ?> value="1"><?= $lang["add_manga"]["rawst"][1] ?></option>
|
|
||||||
<option <?php if($manga["raw-status"]==2) echo "selected"; ?> value="2"><?= $lang["add_manga"]["rawst"][2] ?></option>
|
|
||||||
<option <?php if($manga["raw-status"]==3) echo "selected"; ?> value="3"><?= $lang["add_manga"]["rawst"][3] ?></option>
|
|
||||||
<option <?php if($manga["raw-status"]==4) echo "selected"; ?> value="4"><?= $lang["add_manga"]["rawst"][4] ?></option>
|
|
||||||
<option <?php if($manga["raw-status"]==5) echo "selected"; ?> value="5"><?= $lang["add_manga"]["rawst"][5] ?></option>
|
|
||||||
<option <?php if($manga["raw-status"]==6) echo "selected"; ?> value="5"><?= $lang["add_manga"]["rawst"][6] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_scan-status"><?= $lang["add_manga"]["status"] ?></label>
|
|
||||||
<select required tabindex="9" class="selectpicker form-control" name="scan-status" id="manga_scan-status">
|
|
||||||
<option <?php if($manga["scan-status"]==1) echo "selected"; ?> value="1"><?= $lang["add_manga"]["scanst"][1] ?></option>
|
|
||||||
<option <?php if($manga["scan-status"]==2) echo "selected"; ?> value="2"><?= $lang["add_manga"]["scanst"][2] ?></option>
|
|
||||||
<option <?php if($manga["scan-status"]==3) echo "selected"; ?> value="3"><?= $lang["add_manga"]["scanst"][3] ?></option>
|
|
||||||
<option <?php if($manga["scan-status"]==4) echo "selected"; ?> value="4"><?= $lang["add_manga"]["scanst"][4] ?></option>
|
|
||||||
<option <?php if($manga["scan-status"]==5) echo "selected"; ?> value="5"><?= $lang["add_manga"]["scanst"][5] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_description"><?= $lang["add_manga"]["descript"] ?></label>
|
|
||||||
<textarea tabindex="10" type="text" name="description" id="manga_description" class="form-control" placeholder="<?= $lang["add_manga"]["descript"] ?>" style="margin-left: -200px; width: 700px; max-width: 700px; min-width: 700px; min-height:200px"><?= $manga["description"] ?></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-url"><?= $lang["add_manga"]["raw-url"] ?></label>
|
|
||||||
<input tabindex="11" type="text" name="raw-url" id="manga_raw-url" class="form-control" value="<?= $manga["raw-url"] ?>" placeholder="<?= $lang["add_manga"]["raw-url"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_licensed"><?= $lang["add_manga"]["licensed"] ?></label>
|
|
||||||
<input tabindex="12" type="text" name="licensed" id="manga_licensed" class="form-control" value="<?= $manga["licensed"] ?>" placeholder="<?= $lang["add_manga"]["licensed"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_official-url"><?= $lang["add_manga"]["official"] ?></label>
|
|
||||||
<input tabindex="13" type="text" name="official-url" id="manga_official-url" class="form-control" value="<?= $manga["official-url"] ?>" placeholder="<?= $lang["add_manga"]["official"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<button tabindex="14" class="btn btn-lg btn-success btn-block" type="submit" id="login_button" name="edit_title"><?= glyph("plus",$lang["edit_title"]["save"]) ?> <?= $lang["edit_title"]["save"] ?></button>
|
|
||||||
</form>
|
|
||||||
<hr>
|
|
||||||
<form method="post" name="delete_title">
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-danger btn-block" onclick="showDelCon()" type="button" id="delbtn"><?= glyph("trash",$lang["edit_title"]["delete"]) ?> <?= $lang["edit_title"]["delete"] ?></button>
|
|
||||||
<div id="delcon" style="display: none">
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-success btn-block" onclick="hideDelCon()" type="button" id="delbtn"><?= glyph("remove",$lang["edit_chapter"]["del_no"]) ?> <?= $lang["edit_chapter"]["del_no"] ?></button>
|
|
||||||
<button style="width: 300px; display: block" class="btn btn-lg btn-danger btn-block" type="submit" name="delete_title" id="delbtn"><?= glyph("trash",$lang["edit_chapter"]["del_yes"]) ?> <?= $lang["edit_chapter"]["del_yes"] ?></button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function showDelCon() {
|
|
||||||
document.getElementById("delbtn").style.display = "none";
|
|
||||||
document.getElementById("delcon").style.display = "block";
|
|
||||||
}
|
|
||||||
|
|
||||||
function hideDelCon() {
|
|
||||||
document.getElementById("delbtn").style.display = "block";
|
|
||||||
document.getElementById("delcon").style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1,180 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require("../../requires.php");
|
|
||||||
|
|
||||||
$page = $lang["menu"]["add_new"];
|
|
||||||
|
|
||||||
if($loggedin==false || $user["active"]==0) {
|
|
||||||
header("Refresh: 0; url=../../");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = false;
|
|
||||||
$error_msg = "";
|
|
||||||
|
|
||||||
if(isset($_POST["add_manga"])) {
|
|
||||||
$m_title = mysqli_real_escape_string($conn, $_POST["title"]);
|
|
||||||
$m_alt = mysqli_real_escape_string($conn, $_POST["alt"]);
|
|
||||||
$m_author = mysqli_real_escape_string($conn, $_POST["author"]);
|
|
||||||
$m_genre = mysqli_real_escape_string($conn, $_POST["genre"]);
|
|
||||||
$m_type = mysqli_real_escape_string($conn, $_POST["type"]);
|
|
||||||
$m_released = mysqli_real_escape_string($conn, $_POST["released"]);
|
|
||||||
$m_rawstatus = mysqli_real_escape_string($conn, $_POST["raw-status"]);
|
|
||||||
$m_scanstatus = mysqli_real_escape_string($conn, $_POST["scan-status"]);
|
|
||||||
$m_description = mysqli_real_escape_string($conn, $_POST["description"]);
|
|
||||||
$m_rawurl = mysqli_real_escape_string($conn, $_POST["raw-url"]);
|
|
||||||
$m_licensed = mysqli_real_escape_string($conn, $_POST["licensed"]);
|
|
||||||
$m_officialurl = mysqli_real_escape_string($conn, $_POST["official-url"]);
|
|
||||||
$titlecheck = $conn->query("SELECT * FROM `titles` WHERE `title`='$m_title' LIMIT 1");
|
|
||||||
$slug = generate_url();
|
|
||||||
|
|
||||||
if(mysqli_num_rows($titlecheck)==1) {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["title_exists"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(empty($m_alt)) { $m_alt = "NULL"; } else { $m_alt = "'$m_alt'"; }
|
|
||||||
if(empty($m_author)) { $m_author = "NULL"; } else { $m_author = "'$m_author'"; }
|
|
||||||
if(empty($m_genre)) { $m_genre = "NULL"; } else { $m_genre = "'$m_genre'"; }
|
|
||||||
if(empty($m_released)) { $m_released = "NULL"; } else { $m_released = "'$m_released'"; }
|
|
||||||
if(empty($m_description)) { $m_description = "NULL"; } else { $m_description = "'$m_description'"; }
|
|
||||||
if(empty($m_rawurl)) { $m_rawurl = "NULL"; } else { $m_rawurl = "'$m_rawurl'"; }
|
|
||||||
if(empty($m_licensed)) { $m_licensed = "NULL"; } else { $m_licensed = "'$m_licensed'"; }
|
|
||||||
if(empty($m_officialurl)) { $m_officialurl = "NULL"; } else { $m_officialurl = "'$m_officialurl'"; }
|
|
||||||
|
|
||||||
if(isset($_FILES["cover"]["tmp_name"]) && !empty($_FILES["cover"]["tmp_name"])) {
|
|
||||||
$filename = pathinfo($_FILES['cover']['name'], PATHINFO_FILENAME);
|
|
||||||
$fileextension = pathinfo($_FILES['cover']['name'], PATHINFO_EXTENSION);
|
|
||||||
$finalfile = $filename."-".$slug.".".$fileextension;
|
|
||||||
$target_file = "../../data/covers/".$finalfile;
|
|
||||||
|
|
||||||
// Check if image file is a actual image or fake image
|
|
||||||
$check = getimagesize($_FILES["cover"]["tmp_name"]);
|
|
||||||
if($check !== false) {
|
|
||||||
//echo "File is an image - " . $check["mime"] . ".";
|
|
||||||
} else {
|
|
||||||
$error = true;
|
|
||||||
$error_msg = $lang["errors"]["unsupported_image"];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$finalfile = "no-cover.jpg";
|
|
||||||
}
|
|
||||||
|
|
||||||
if($error==false) {
|
|
||||||
$conn->query("INSERT INTO `titles`(`slug`,`title`,`cover`,`alt`,`author`,`genre`,`type`,`released`,`raw-status`,`scan-status`,`description`,`raw-url`,`licensed`,`official-url`) VALUES('$slug','$m_title','$finalfile',$m_alt,$m_author,$m_genre,'$m_type',$m_released,'$m_rawstatus','$m_scanstatus',$m_description,$m_rawurl,$m_licensed,$m_officialurl)");
|
|
||||||
if(isset($_FILES["cover"]["tmp_name"])) {
|
|
||||||
move_uploaded_file($_FILES["cover"]["tmp_name"], $target_file);
|
|
||||||
}
|
|
||||||
$title = $conn->query("SELECT * FROM `titles` WHERE `slug`='$slug' LIMIT 1")->fetch_assoc();
|
|
||||||
header("Location: ../manga/$slug");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
include("../parts/header.php");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?= $lang["menu"]["add_new"]." :: ".$config["title"] ?></title>
|
|
||||||
|
|
||||||
<?php include("../parts/menu.php"); ?>
|
|
||||||
|
|
||||||
<?php if(!isset($_COOKIE[$config["cookie"]."_cookie-consent"]) || empty($_COOKIE[$config["cookie"]."_cookie-consent"])) { include("../parts/cookies.php"); } ?>
|
|
||||||
|
|
||||||
<?php if(!empty($error_msg)) { ?>
|
|
||||||
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<strong><?= $lang["login"]["error"] ?>:</strong> <?= $error_msg ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<div style="margin: 0 auto; width: 300px" id="login_container">
|
|
||||||
<form method="post" id="login_form" name="add_manga" enctype="multipart/form-data">
|
|
||||||
<h1 class="text-center"><?= $lang["menu"]["add_new"] ?></h1>
|
|
||||||
<hr>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_title"><?= $lang["add_manga"]["title"] ?></label>
|
|
||||||
<input required tabindex="1" type="text" name="title" id="manga_title" class="form-control" placeholder="<?= $lang["add_manga"]["title"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_cover" class="sr-"><?= $lang["add_manga"]["cover"] ?></label>
|
|
||||||
<input tabindex="2" type="file" name="cover" id="manga_cover" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_alt"><?= $lang["add_manga"]["alt"] ?></label>
|
|
||||||
<input tabindex="3" type="text" name="alt" id="manga_alt" class="form-control" placeholder="<?= $lang["add_manga"]["alt"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_author"><?= $lang["add_manga"]["author"] ?></label>
|
|
||||||
<input tabindex="4" type="text" name="author" id="manga_author" class="form-control" placeholder="<?= $lang["add_manga"]["author"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_genre"><?= $lang["add_manga"]["genre"] ?></label>
|
|
||||||
<input tabindex="5" type="text" name="genre" id="manga_genre" class="form-control" placeholder="<?= $lang["add_manga"]["genre"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-status"><?= $lang["add_manga"]["type"] ?></label>
|
|
||||||
<select required tabindex="6" class="selectpicker form-control" name="type" id="manga_type">
|
|
||||||
<option value="<?= $lang["add_manga"]["manga"] ?>" selected><?= $lang["add_manga"]["type_manga"] ?></option>
|
|
||||||
<option value="<?= $lang["add_manga"]["manwha"] ?>"><?= $lang["add_manga"]["type_manwha"] ?></option>
|
|
||||||
<option value="<?= $lang["add_manga"]["manhua"] ?>"><?= $lang["add_manga"]["type_manhua"] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_released"><?= $lang["add_manga"]["released"] ?></label>
|
|
||||||
<input tabindex="7" type="number" name="released" id="manga_released" class="form-control" placeholder="<?= $lang["add_manga"]["released"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-status"><?= $lang["add_manga"]["raw-st"] ?></label>
|
|
||||||
<select tabindex="8" class="selectpicker form-control" name="raw-status" id="manga_raw-status">
|
|
||||||
<option value="1" selected><?= $lang["add_manga"]["rawst"][1] ?></option>
|
|
||||||
<option value="2"><?= $lang["add_manga"]["rawst"][2] ?></option>
|
|
||||||
<option value="3"><?= $lang["add_manga"]["rawst"][3] ?></option>
|
|
||||||
<option value="4"><?= $lang["add_manga"]["rawst"][4] ?></option>
|
|
||||||
<option value="5"><?= $lang["add_manga"]["rawst"][5] ?></option>
|
|
||||||
<option value="5"><?= $lang["add_manga"]["rawst"][6] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_scan-status"><?= $lang["add_manga"]["status"] ?></label>
|
|
||||||
<select required tabindex="9" class="selectpicker form-control" name="scan-status" id="manga_scan-status">
|
|
||||||
<option value="1"><?= $lang["add_manga"]["scanst"][1] ?></option>
|
|
||||||
<option value="2" selected><?= $lang["add_manga"]["scanst"][2] ?></option>
|
|
||||||
<option value="3"><?= $lang["add_manga"]["scanst"][3] ?></option>
|
|
||||||
<option value="4"><?= $lang["add_manga"]["scanst"][4] ?></option>
|
|
||||||
<option value="5"><?= $lang["add_manga"]["scanst"][5] ?></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_description"><?= $lang["add_manga"]["descript"] ?></label>
|
|
||||||
<textarea tabindex="10" type="text" name="description" id="manga_description" class="form-control" placeholder="<?= $lang["add_manga"]["descript"] ?>" style="margin-left: -200px; width: 700px; max-width: 700px; min-width: 700px; min-height:200px"></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_raw-url"><?= $lang["add_manga"]["raw-url"] ?></label>
|
|
||||||
<input tabindex="11" type="text" name="raw-url" id="manga_raw-url" class="form-control" placeholder="<?= $lang["add_manga"]["raw-url"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_licensed"><?= $lang["add_manga"]["licensed"] ?></label>
|
|
||||||
<input tabindex="12" type="text" name="licensed" id="manga_licensed" class="form-control" placeholder="<?= $lang["add_manga"]["licensed"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="manga_official-url"><?= $lang["add_manga"]["official"] ?></label>
|
|
||||||
<input tabindex="13" type="text" name="official-url" id="manga_official-url" class="form-control" placeholder="<?= $lang["add_manga"]["official"] ?>">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><i><?= $lang["add_manga"]["required"] ?></i></p>
|
|
||||||
<button tabindex="14" class="btn btn-lg btn-success btn-block" type="submit" id="login_button" name="add_manga"><?= glyph("plus",$lang["add_manga"]["add"]) ?> <?= $lang["add_manga"]["add"] ?></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("../parts/footer.php"); ?>
|
|
@ -1 +0,0 @@
|
|||||||
TO-DO!
|
|
@ -1,24 +0,0 @@
|
|||||||
<div class="alert alert-danger text-center"><b>Don't make any profit from scans. You (and we) scan because we like the Manga and want to support the author, so you should, as we do, buy the Raws from your own money.</b></div>
|
|
||||||
<h1 class="text-center">About this Group?!</h1>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<p>This is you place to write something about your Group... I guess? <b>Supports <i>(obviously)</i> HTML!</b></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<div class="well well-sm">
|
|
||||||
So just in case you don't know how Bootstrap works, you can use Bootstrap 3.4 here! <a href="https://getbootstrap.com/docs/3.4/components/" target="_blank">Click here to read the Docs and find examples of blocks you can use here.</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<div class="panel panel-success">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Socials</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<li>Twitter: <a href="https://twitter.com/saintly2k" target="_blank">@saintly2k</a></li>
|
|
||||||
<li>GitHub: <a href="https://github.com/saintly2k" target="_blank">@saintly2k</a></li>
|
|
||||||
<li>PayPal: <a href="https://paypal.me/WOLFRAMEdev" target="_blank">yuki.akihabara@yandex.com</a></li>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1 +0,0 @@
|
|||||||
Typewriters!
|
|
63
requires.php
63
requires.php
@ -1,63 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if(!file_exists("../../.installed")) {
|
|
||||||
header("Location: install");
|
|
||||||
}
|
|
||||||
|
|
||||||
ini_set('display_errors', 1);
|
|
||||||
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
require("config.php");
|
|
||||||
require("vhs/conn.php");
|
|
||||||
require("vhs/user.php");
|
|
||||||
require("vhs/funky.php");
|
|
||||||
|
|
||||||
if(isset($_GET["lang"])) {
|
|
||||||
if($_GET["lang"]=="de") {
|
|
||||||
setcookie($config["cookie"]."_lang", "de", time()+31556926, "/");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
if($_GET["lang"]=="en") {
|
|
||||||
setcookie($config["cookie"]."_lang", "en", time()+31556926, "/");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
if($_GET["lang"]=="pt") {
|
|
||||||
setcookie($config["cookie"]."_lang", "pt", time()+31556926, "/");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
if($_GET["lang"]=="ru") {
|
|
||||||
setcookie($config["cookie"]."_lang", "ru", time()+31556926, "/");
|
|
||||||
echo "<script>window.close();</script>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["refuse_cookies"])) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", "2", time()+31556926, "/");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST["accept_cookies"])) {
|
|
||||||
setcookie($config["cookie"]."_cookie-consent", true, time()+31556926, "/");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_COOKIE[$config["cookie"]."_cookie-consent"]) && $_COOKIE[$config["cookie"]."_cookie-consent"]==1) {
|
|
||||||
if(!isset($_COOKIE[$config["cookie"]."_lang"])) {
|
|
||||||
setcookie($config["cookie"]."_lang", $config["lang"], time()+31556926, "/");
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
$lang = mysqli_real_escape_string($conn, $_COOKIE[$config["cookie"]."_lang"]);
|
|
||||||
} else {
|
|
||||||
if(!isset($_SESSION[$config["cookie"]."_lang"])) {
|
|
||||||
$_SESSION[$config["cookie"]."_lang"] = $config["lang"];
|
|
||||||
header("Refresh: 0");
|
|
||||||
}
|
|
||||||
$lang = mysqli_real_escape_string($conn, $_SESSION[$config["cookie"]."_lang"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
require("lang/".$lang.".lang.php");
|
|
||||||
|
|
||||||
$version = file_get_contents("../../.installed");
|
|
||||||
|
|
||||||
?>
|
|
335
theme.css
335
theme.css
@ -1,335 +0,0 @@
|
|||||||
@font-face {
|
|
||||||
font-weight: 300;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-L.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-R.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 600;
|
|
||||||
font-style: normal;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-M.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-weight: 700;
|
|
||||||
font-style: bold;
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url(/bootstrap/fonts/Ubuntu-B.ttf);
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
position: relative;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin-bottom: 40px;
|
|
||||||
padding-top: 70px;
|
|
||||||
padding-bottom: 30px;
|
|
||||||
font-family: "Ubuntu", sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-dropdown .dropdown-menu {
|
|
||||||
position: static;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
position: absolute;
|
|
||||||
padding: 10px 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
/* Set the fixed height of the footer here */
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.display-none {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-file {
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-file input[type=file] {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
min-width: 100%;
|
|
||||||
min-height: 100%;
|
|
||||||
font-size: 100px;
|
|
||||||
text-align: right;
|
|
||||||
filter: alpha(opacity=0);
|
|
||||||
opacity: 0;
|
|
||||||
background: red;
|
|
||||||
cursor: inherit;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[readonly] {
|
|
||||||
cursor: text !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#message_container {
|
|
||||||
position: fixed;
|
|
||||||
top: 70px;
|
|
||||||
z-index: 100;
|
|
||||||
height: 100px;
|
|
||||||
left: 50%;
|
|
||||||
width: 50%;
|
|
||||||
margin-left: -25%;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.captcha {
|
|
||||||
margin: 0 auto 15px auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.td-768,
|
|
||||||
.td-992,
|
|
||||||
.td-1440,
|
|
||||||
.span-992,
|
|
||||||
.span-1440,
|
|
||||||
.li-992 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
border-radius: 4px 0 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
|
|
||||||
.nav-label-992,
|
|
||||||
.nav-label-1440 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.td-768 {
|
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
|
|
||||||
.td-992 {
|
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-label-992,
|
|
||||||
.span-992 {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 170px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1440px) {
|
|
||||||
|
|
||||||
.nav-label-1440,
|
|
||||||
.span-1440 {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.span-not-1440,
|
|
||||||
.td-not-1440 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_input {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quick_search_form {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
img.reader {
|
|
||||||
cursor: pointer;
|
|
||||||
max-width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.avatar {
|
|
||||||
max-width: 100px;
|
|
||||||
max-height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.click {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.webtoon,
|
|
||||||
img.long-strip {
|
|
||||||
max-width: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.webtoon {
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.long-strip {
|
|
||||||
margin: 0 auto 10px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.genre,
|
|
||||||
a.genre:hover,
|
|
||||||
a.genre:focus {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.manga_title,
|
|
||||||
a.manga_title:hover,
|
|
||||||
a.manga_title:focus {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
tr.comment {
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea.comment-box {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading {
|
|
||||||
background: transparent url('loading.gif') center no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-shadow {
|
|
||||||
text-shadow: 0px 0px 6px white;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-right {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Addtional CSS changes below for better visibility + mobile fixes */
|
|
||||||
|
|
||||||
/* Top nav */
|
|
||||||
#top_nav{
|
|
||||||
background-image:linear-gradient(to right, #0575e6 0%, #021b79 100%);
|
|
||||||
border-right-style:none;
|
|
||||||
border-bottom-style:none;
|
|
||||||
border-left-style:none;
|
|
||||||
border-top-style:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Link */
|
|
||||||
#titles a{
|
|
||||||
color:#e5e5e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Span Tag */
|
|
||||||
.dropdown .dropdown-toggle span{
|
|
||||||
color:#e8e8e8;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Image */
|
|
||||||
#mangaSearchList .thumbnail img{
|
|
||||||
max-height:100%;
|
|
||||||
height:205px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Image */
|
|
||||||
.container .row #mangaSearchList .col-sm-12 .mangaSearchItem .thumbnail img{
|
|
||||||
width:165px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Manga search item */
|
|
||||||
#mangaSearchList .mangaSearchItem{
|
|
||||||
display:inline-flex !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width:767px){
|
|
||||||
|
|
||||||
/* Paragraph */
|
|
||||||
#mangaSearchList .thumbnail p{
|
|
||||||
background-color:rgba(0,0,0,0.64);
|
|
||||||
text-shadow:rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) -1px 0px 1px !important;
|
|
||||||
color:#ffffff !important;
|
|
||||||
max-width:100%;
|
|
||||||
width:168px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Label primary */
|
|
||||||
#latest-titles tr .label-primary{
|
|
||||||
background-color:#0d5fc3;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Label info */
|
|
||||||
#latest-titles tr .label-info{
|
|
||||||
background-color:#1da016;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Col 6 */
|
|
||||||
.container .col-sm-6{
|
|
||||||
background-color:transparent;
|
|
||||||
background-image:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Button */
|
|
||||||
.row .col-sm-6 a{
|
|
||||||
background-image:linear-gradient(to right, rgb(5, 117, 230) 0%, rgb(2, 27, 121) 100%);
|
|
||||||
border-bottom-color:#161e45;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* List group item */
|
|
||||||
.sidebar .list-group span.list-group-item{
|
|
||||||
background-color:#158cba;
|
|
||||||
background-image:linear-gradient(to right, rgb(5, 117, 230) 0%, rgb(2, 27, 121) 100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width:767px){
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
.container footer{
|
|
||||||
max-width:100%;
|
|
||||||
max-height:100%;
|
|
||||||
width:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Carousel caption */
|
|
||||||
#manga-carousel a .carousel-caption{
|
|
||||||
background-color:rgba(30,30,30,0.67);
|
|
||||||
text-shadow:rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) -1px 0px 1px;
|
|
||||||
}
|
|
10
vhs/conn.php
10
vhs/conn.php
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$conn = new mysqli($slave["host"],$slave["user"],$slave["pass"],$slave["table"]);
|
|
||||||
$conn->set_charset("utf8mb4");
|
|
||||||
|
|
||||||
if($conn->connect_error) {
|
|
||||||
die("Database Error: " . $conn->connect_error);
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
@ -1,94 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
function glyph($glyph,$gtitle = "Glyphicon") {
|
|
||||||
return "<span class=\"glyphicon glyphicon-".$glyph."\" title=\"$gtitle\" aria-hidden=\"true\"></span>";
|
|
||||||
}
|
|
||||||
|
|
||||||
function generate_url() {
|
|
||||||
|
|
||||||
function generate_string($length = 5) {
|
|
||||||
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
||||||
$charactersLength = strlen($characters);
|
|
||||||
$randomString = '';
|
|
||||||
for ($i = 0; $i < $length; $i++) {
|
|
||||||
$randomString .= $characters[rand(0, $charactersLength - 1)];
|
|
||||||
}
|
|
||||||
return $randomString;
|
|
||||||
}
|
|
||||||
$a = generate_string(5);
|
|
||||||
$b = generate_string(5);
|
|
||||||
$c = generate_string(5);
|
|
||||||
$d = generate_string(5);
|
|
||||||
|
|
||||||
$string = $a."-".$b."-".$c."-".$d;
|
|
||||||
|
|
||||||
return $string;
|
|
||||||
}
|
|
||||||
|
|
||||||
function bbconvert($text) {
|
|
||||||
|
|
||||||
// Always ensure that user inputs are scanned and filtered properly.
|
|
||||||
$text = htmlspecialchars($text, ENT_QUOTES);
|
|
||||||
|
|
||||||
// BBcode array
|
|
||||||
$find = array(
|
|
||||||
'~\[b\](.*?)\[/b\]~s',
|
|
||||||
'~\[i\](.*?)\[/i\]~s',
|
|
||||||
'~\[s\](.*?)\[/s\]~s',
|
|
||||||
'~\[u\](.*?)\[/u\]~s',
|
|
||||||
'~\[center\](.*?)\[/center\]~s',
|
|
||||||
'~\[br\]~s',
|
|
||||||
'~\[hr\]~s',
|
|
||||||
'~\[quote\](.*?)\[/quote\]~s',
|
|
||||||
'~\[size=(.*?)\](.*?)\[/size\]~s',
|
|
||||||
'~\[color=(.*?)\](.*?)\[/color\]~s',
|
|
||||||
'~\[url\]((?:ftp|https?)://.*?)\[/url\]~s',
|
|
||||||
'~\[img\](https?://.*?\.(?:jpg|jpeg|gif|png|bmp))\[/img\]~s'
|
|
||||||
);
|
|
||||||
|
|
||||||
// HTML tags to replace BBcode
|
|
||||||
$replace = array(
|
|
||||||
'<b>$1</b>',
|
|
||||||
'<i>$1</i>',
|
|
||||||
'<s>$1</s>',
|
|
||||||
'<span style="text-decoration:underline;">$1</span>',
|
|
||||||
'<center>$1</center>',
|
|
||||||
'<br>',
|
|
||||||
'<hr>',
|
|
||||||
'<pre>$1</'.'pre>',
|
|
||||||
'<span style="font-size:$1px;">$2</span>',
|
|
||||||
'<span style="color:$1;">$2</span>',
|
|
||||||
'<a href="$1" target="_blank">$1</a>',
|
|
||||||
'<img src="$1" alt="$1">'
|
|
||||||
);
|
|
||||||
|
|
||||||
// Replacing the BBcodes with corresponding HTML tags
|
|
||||||
return preg_replace($find,$replace,$text);
|
|
||||||
}
|
|
||||||
|
|
||||||
function munch_groups($a, $b = "", $c = "", $html = true) {
|
|
||||||
require("../../config.php");
|
|
||||||
require("conn.php");
|
|
||||||
require("user.php");
|
|
||||||
|
|
||||||
$output = "";
|
|
||||||
|
|
||||||
if($a=="0") {
|
|
||||||
$output .= "No Group";
|
|
||||||
} else {
|
|
||||||
$a = $conn->query("SELECT * FROM `groups` WHERE `id`='$a' LIMIT 1")->fetch_assoc();
|
|
||||||
$output .= "<a href='".$config["url"]."group/".$a["slug"]."'>".$a["name"]."</a>";
|
|
||||||
}
|
|
||||||
if(!empty($b)) {
|
|
||||||
$b = $conn->query("SELECT * FROM `groups` WHERE `id`='$b' LIMIT 1")->fetch_assoc();
|
|
||||||
$output .= ", <a href='".$config["url"]."group/".$b["slug"]."'>".$b["name"]."</a>";
|
|
||||||
}
|
|
||||||
if(!empty($c)) {
|
|
||||||
$c = $conn->query("SELECT * FROM `groups` WHERE `id`='$c' LIMIT 1")->fetch_assoc();
|
|
||||||
$output .= ", <a href='".$config["url"]."group/".$c["slug"]."'>".$c["name"]."</a>";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $output;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
42
vhs/user.php
42
vhs/user.php
@ -1,42 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$config = $conn->query("SELECT * FROM `config`")->fetch_assoc();
|
|
||||||
$display = $conn->query("SELECT * FROM `display` ORDER BY `order` ASC");
|
|
||||||
|
|
||||||
$i = 1;
|
|
||||||
foreach($display as $ds) {
|
|
||||||
$d[$i] = $ds;
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if((isset($_COOKIE[$config["cookie"]."_session"]) && !empty($_COOKIE[$config["cookie"]."_session"])) || (isset($_SESSION[$config["cookie"]."_session"]) && !empty($_SESSION[$config["cookie"]."_session"]))) {
|
|
||||||
if(!empty($_COOKIE[$config["cookie"]."_session"])) {
|
|
||||||
$token = mysqli_real_escape_string($conn, $_COOKIE[$config["cookie"]."_session"]);
|
|
||||||
} else {
|
|
||||||
$token = mysqli_real_escape_string($conn, $_SESSION[$config["cookie"]."_session"]);
|
|
||||||
}
|
|
||||||
$checking = $conn->query("SELECT * FROM `sessions` WHERE `token`='$token'");
|
|
||||||
if(mysqli_num_rows($checking)<=1) {
|
|
||||||
// Perform user-check of all data
|
|
||||||
$user = mysqli_fetch_assoc($checking);
|
|
||||||
$user = $user["user-id"];
|
|
||||||
$user = $conn->query("SELECT * FROM `user` WHERE `id`='$user' LIMIT 1");
|
|
||||||
$user = mysqli_fetch_assoc($user);
|
|
||||||
$loggedin = true;
|
|
||||||
} else {
|
|
||||||
// Invalid session! (Hacking attempt or outdated? who knows...)
|
|
||||||
$loggedin = false;
|
|
||||||
$user = [
|
|
||||||
"level" => 5,
|
|
||||||
"theme" => $config["theme"],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$loggedin = false;
|
|
||||||
$user = [
|
|
||||||
"level" => 5,
|
|
||||||
"theme" => $config["theme"],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
Loading…
x
Reference in New Issue
Block a user