Compare commits
32 Commits
7
.htaccess
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
Options +FollowSymlinks
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule ^/(.*)$ /index.php?$1 [QSA,PT,L]
|
||||||
|
</IfModule>
|
||||||
169
404.html
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>404</title>
|
||||||
|
<style>
|
||||||
|
/*Variables*/
|
||||||
|
.left-section .inner-content {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Fira Sans", sans-serif;
|
||||||
|
color: #f5f6fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(#0C0E10, #446182);
|
||||||
|
}
|
||||||
|
.background .ground {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 25vh;
|
||||||
|
background: #0C0E10;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.background .ground {
|
||||||
|
height: 0vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 85%;
|
||||||
|
height: 100vh;
|
||||||
|
padding-bottom: 25vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.container {
|
||||||
|
flex-direction: column;
|
||||||
|
padding-bottom: 0vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-section {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-section {
|
||||||
|
width: 265px;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.left-section {
|
||||||
|
width: 100%;
|
||||||
|
height: 40%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.left-section .inner-content {
|
||||||
|
position: relative;
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 9em;
|
||||||
|
line-height: 1.3em;
|
||||||
|
margin: 2rem 0 0.5rem 0;
|
||||||
|
padding: 0;
|
||||||
|
text-shadow: 0 0 1rem #fefefe;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.heading {
|
||||||
|
font-size: 7em;
|
||||||
|
line-height: 1.15;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subheading {
|
||||||
|
text-align: center;
|
||||||
|
max-width: 480px;
|
||||||
|
font-size: 1.5em;
|
||||||
|
line-height: 1.15em;
|
||||||
|
padding: 0 1rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.subheading {
|
||||||
|
font-size: 1.3em;
|
||||||
|
line-height: 1.15;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-section {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
@media (max-width: 770px) {
|
||||||
|
.right-section {
|
||||||
|
width: 100%;
|
||||||
|
height: 60%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes glow {
|
||||||
|
0% {
|
||||||
|
text-shadow: 0 0 1rem #fefefe;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
text-shadow: 0 0 1.85rem #ededed;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
text-shadow: 0 0 1rem #fefefe;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.bottom{
|
||||||
|
position: absolute;
|
||||||
|
bottom:30px;
|
||||||
|
left:0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="background">
|
||||||
|
<div class="ground"></div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="left-section">
|
||||||
|
<div class="inner-content">
|
||||||
|
<h1 class="heading">404</h1>
|
||||||
|
<p class="subheading">page not found</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bottom">
|
||||||
|
<p style="text-align:center">Powered by PicHome</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
661
LICENSE
@@ -1,661 +0,0 @@
|
|||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
|
||||||
and/or modify the software.
|
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
|
||||||
improvements made in alternate versions of the program, if they
|
|
||||||
receive widespread use, become available for other developers to
|
|
||||||
incorporate. Many developers of free software are heartened and
|
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
|
||||||
letting the public access it on a server without ever releasing its
|
|
||||||
source code to the public.
|
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
|
||||||
provide the source code of the modified version running there to the
|
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
|
||||||
code of the modified version.
|
|
||||||
|
|
||||||
An older license, called the Affero General Public License and
|
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
|
||||||
this license.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<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 Affero General Public License as published
|
|
||||||
by the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<http://www.gnu.org/licenses/>.
|
|
||||||
21
UPDATE.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
## PicHome Home 2.0 更新说明
|
||||||
|
|
||||||
|
### 1:增加PH库,支持上传文件,编辑文件信息(名称,标签,描述,评分等)
|
||||||
|
### 2:增加单页功能,可以自定义单页内容
|
||||||
|
### 3:增加栏目功能,库,单页,连接可以设置成栏目,对外展示,新增加的库将自动生成栏目,默认是关闭状态,对于老版本升级后将自动为开启状态
|
||||||
|
### 4:增加个人中心,统一管理用户相关的内容,个人中心包括下载记录,浏览记录等信息
|
||||||
|
### 5:重构并优化系统缩略图机制,提升加载速度。
|
||||||
|
### 6:增加管理工具,包含系统设置,系统工具,登录日志和存储位置,将原有的站点设置功能迁移到系统设置中,并丰富原有设置内容,增加如缩略图,邮件的设置
|
||||||
|
### 7:兼容Billfish 3版本的导入
|
||||||
|
### 8:优化库导入和更新机制
|
||||||
|
### 9:支持腾讯云存储以及cdn加速域名
|
||||||
|
### 10:栏目,库,单页支持短链接,需设置rewrite规则,具体内容安装包中包含
|
||||||
|
注:
|
||||||
|
1. 当前版本展示内容和管理内容实行分开处理,不再直接将库展示给游客和普通用户,安装完成之后站点首页内容可根据需要自行设置
|
||||||
|
2. 安装完成后默认为站点不公开,必须登录才能访问,如需公开,请在管理工具,系统设置中进行设置
|
||||||
|
3. 缩略图设置在管理工具存储位置中设置,原则上优先文件位置选择生成方式
|
||||||
|
|
||||||
|
## PicHome Home 1.1 升级到 2.0 升级方法
|
||||||
|
### 1:复制所有文件覆盖到网站目录
|
||||||
|
### 2:运行 http(s)://网站域名(ip)/install/update.php,按提示步骤完成升级
|
||||||
|
### 3:升级完成后,使用管理员登录站点,进入系统设置,打开站点,并且进入 系统工具 更新系统缓存
|
||||||
67
admin/appmarket/appupgrade.php
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$navtitle=lang('upgrade').' - '.lang('appname');
|
||||||
|
include libfile('function/organization');
|
||||||
|
$op=$_GET['op'];
|
||||||
|
|
||||||
|
//获取所有标签top50;
|
||||||
|
//$tags = DB::fetch_all("SELECT * FROM %t WHERE hot>0 ORDER BY HOT DESC limit 50", array('app_tag'),'appid');
|
||||||
|
|
||||||
|
$keyword = trim($_GET['keyword']);
|
||||||
|
$tagid = intval($_GET['tagid']);
|
||||||
|
$group = intval($_GET['group']);
|
||||||
|
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
|
||||||
|
$perpage = 20;
|
||||||
|
$gets = array('mod' => 'appmarket', 'keyword' => $keyword, 'tagid' => $tagid, 'group' => $group);
|
||||||
|
$theurl = BASESCRIPT . "?" . url_implode($gets);
|
||||||
|
$refer = urlencode($theurl . '&page=' . $page);
|
||||||
|
|
||||||
|
$order = 'ORDER BY disp';
|
||||||
|
$start = ($page - 1) * $perpage;
|
||||||
|
$apps = array();
|
||||||
|
if ($keyword) {
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE upgrade_version!='' and available>0 and appname like '%$keyword%' or vendor like '%$keyword%'")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE upgrade_version!='' and available>0 and appname like '%$keyword%' or vendor like '%$keyword%' $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
} elseif ($tagid) {
|
||||||
|
$appids = C::t('app_relative') -> fetch_appids_by_tagid($tagid);
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE upgrade_version!='' and available>0 and appid IN (" . dimplode($appids) . ") $sql")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE upgrade_version!='' and available>0 and appid IN (" . dimplode($appids) . ") $sql $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$sql = " and upgrade_version!='' and available>0";
|
||||||
|
if ($group) {
|
||||||
|
$sql = " and upgrade_version!='' and `group` = '{$group}'";
|
||||||
|
}
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE 1 $sql")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE 1 $sql $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$list = array();
|
||||||
|
$grouptitle = array('0' => lang('all'), '-1' => lang('visitors_visible'), '1' => lang('members_available'), '2' => lang('section_administrators_available'), '3' => lang('system_administrators_available'));
|
||||||
|
foreach ($apps as $value) {
|
||||||
|
$value['tags'] = C::t('app_relative') -> fetch_all_by_appid($value['appid']);
|
||||||
|
if ($value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
$value['appurl'] = replace_canshu($value['appurl']);
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['department'] = getDepartmentByAppid($value['appid']);
|
||||||
|
$value['upgrade_version'] = unserialize($value['upgrade_version']);
|
||||||
|
$list[] = $value;
|
||||||
|
}
|
||||||
|
include template('upgrade');
|
||||||
|
?>
|
||||||
68
admin/appmarket/check_upgrade.php
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 检测应用更新
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author qchlian(3580164@qq.com)
|
||||||
|
*/
|
||||||
|
if(!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
include_once DZZ_ROOT . './core/core_version.php';
|
||||||
|
require_once libfile('function/admin');
|
||||||
|
include_once libfile('function/cache');
|
||||||
|
$map=array();
|
||||||
|
$today = dgmdate(TIMESTAMP,'Ymd');
|
||||||
|
$map["available"]=1;
|
||||||
|
$applist =DB::fetch_all("select * from %t where `available`>0",array('app_market'));
|
||||||
|
|
||||||
|
$return = array("sum"=>0);
|
||||||
|
$num=0;
|
||||||
|
if( $applist ){
|
||||||
|
$dzz_upgrade = new dzz_upgrade_app();
|
||||||
|
$appinfo=array();
|
||||||
|
$appinfo["mysqlversion"] = helper_dbtool::dbversion();
|
||||||
|
$appinfo["phpversion"] = PHP_VERSION ;
|
||||||
|
$appinfo["dzzversion"] = CORE_VERSION;
|
||||||
|
foreach($applist as $k=>$v ){
|
||||||
|
if(empty($v['app_path'])) $v['app_path']='dzz';
|
||||||
|
$savedata=array();
|
||||||
|
if( $v["mid"]>0){//云端检测
|
||||||
|
if( $v["upgrade_version"] ){
|
||||||
|
$num++;
|
||||||
|
}else{
|
||||||
|
//if( $v["mid"]==80 ){
|
||||||
|
//根据当前版本查询是否需要更新
|
||||||
|
$info=array_merge($v,$appinfo);
|
||||||
|
$response = $dzz_upgrade->check_upgrade_byversion( $info );
|
||||||
|
if($response && $response["status"]==1 ) {
|
||||||
|
$map=array(
|
||||||
|
"upgrade_version"=>serialize($response["data"]),
|
||||||
|
"check_upgrade_time"=>dgmdate(TIMESTAMP,'Ymd')
|
||||||
|
);
|
||||||
|
$re=C::t('app_market')->update($v['appid'],$map);//C::tp_t('app_market')->where("appid=".$v['appid'])->save( $map );
|
||||||
|
$num++;
|
||||||
|
}
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
}else{//本地检测
|
||||||
|
$file = DZZ_ROOT . './'.$v['app_path'].'/' . $v['identifier'] . '/dzz_app_' . $v['identifier'] . '.xml';
|
||||||
|
if ( file_exists($file) ) {
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app',0,0,$importtxt);
|
||||||
|
if($apparray["app"]["version"]>$v["version"]){
|
||||||
|
$num++;
|
||||||
|
$savedata=array( "upgrade_version"=>serialize($apparray["app"]), "check_upgrade_time"=>$today );
|
||||||
|
$re=C::t('app_market')->update($v['appid'],$savedata);
|
||||||
|
//$re= C::tp_t('app_market')->where("appid=".$v["appid"])->save( $savedata );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$return["sum"]=$num;
|
||||||
|
exit( json_encode( $return ) );
|
||||||
|
?>
|
||||||
70
admin/appmarket/cloudappmarket.php
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
//define('DZZ_OUTPUTED', 1);
|
||||||
|
$navtitle=lang('appname');
|
||||||
|
include libfile('function/organization');
|
||||||
|
$op='cloudappmarket';
|
||||||
|
$cloudurl = APP_CHECK_URL."index.php";
|
||||||
|
$url=APP_CHECK_URL."market/app/list";//$cloudurl."?mod=dzzmarket&op=index_ajax";
|
||||||
|
$type=empty($_GET['type'])?1:intval($_GET['type']);
|
||||||
|
$page = empty($_GET['page'])?1:intval($_GET['page']);
|
||||||
|
$keyword=trim($_GET['keyword']);
|
||||||
|
$classid=intval($_GET['classid']);
|
||||||
|
$post_data = array("siteuniqueid"=>$_G["setting"]["siteuniqueid"],"page"=>$page,"type"=>1 );
|
||||||
|
$json = curlcloudappmarket($url,$post_data);
|
||||||
|
$json = json_decode($json,true);
|
||||||
|
$list=array();
|
||||||
|
$total=0;
|
||||||
|
if( $json["status"]==1){
|
||||||
|
$list = $json["data"]["list"];
|
||||||
|
$total = $json["data"]["total"];
|
||||||
|
$perpage = $json["data"]["perpage"];
|
||||||
|
//$perpage =1;
|
||||||
|
$theurl = BASESCRIPT."?mod=".MOD_NAME."&op=cloudappmarket";
|
||||||
|
$multi=multi($total, $perpage, $page, $theurl);
|
||||||
|
}
|
||||||
|
//print_r($list);exit;
|
||||||
|
$local_applist=DB::fetch_all("select * from %t where 1",array('app_market'));//C::tp_t("app_market")->select();
|
||||||
|
if( $list ){
|
||||||
|
foreach($list as $k=>$v){
|
||||||
|
$list[$k]["local_appinfo"]=array();
|
||||||
|
$list[$k]["baseinfo"]=base64_encode( serialize($v) );
|
||||||
|
if( $v["identifier"] ){
|
||||||
|
foreach($local_applist as $k2=>$v3){
|
||||||
|
if($v["identifier"]==$v3["identifier"]){
|
||||||
|
$list[$k]["local_appinfo"]=$v3;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include template('cloudappmarket');
|
||||||
|
exit;
|
||||||
|
function curlcloudappmarket( $url="",$post_data="", $token="" ){
|
||||||
|
$curl = curl_init();
|
||||||
|
curl_setopt($curl, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||||
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($curl, CURLOPT_POST, 1);
|
||||||
|
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
|
||||||
|
$response = curl_exec_redir($curl);
|
||||||
|
/*$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||||
|
$errorno = curl_errno($curl);
|
||||||
|
if ($errorno) {
|
||||||
|
return($errorno);
|
||||||
|
}*/
|
||||||
|
return($response);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
326
admin/appmarket/cp.php
Normal file
@@ -0,0 +1,326 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
require_once libfile('function/admin');
|
||||||
|
$do = trim($_GET['do']);
|
||||||
|
$op=$_GET['op'];
|
||||||
|
if ($do == 'export') {//应用导出
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
$app = C::t('app_market') -> fetch($appid);
|
||||||
|
if (!$app) {
|
||||||
|
showmessage('application_nonentity');
|
||||||
|
}
|
||||||
|
if ($app['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $app['appico'])) {
|
||||||
|
$app['appico'] = $_G['setting']['attachdir'] . $app['appico'];
|
||||||
|
}
|
||||||
|
$app['appico'] = imagetobase64($app['appico']);
|
||||||
|
$app['extra'] = array();
|
||||||
|
$appid=$app['appid'];
|
||||||
|
//unset($app['mid']);
|
||||||
|
unset($app['appid']);
|
||||||
|
unset($app['orgid']);
|
||||||
|
unset($app['available']);
|
||||||
|
unset($app['dateline']);
|
||||||
|
unset($app['upgrade_version']);
|
||||||
|
unset($app['check_upgrade_time']);
|
||||||
|
$apparray = array();
|
||||||
|
if ($app['identifier']) {
|
||||||
|
if(empty($app['app_path'])) $app['app_path']='dzz';
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
if (file_exists($entrydir . '/install.php')) {
|
||||||
|
$app['extra']['installfile'] = 'install.php';
|
||||||
|
}
|
||||||
|
if (file_exists($entrydir . '/uninstall.php')) {
|
||||||
|
$app['extra']['uninstallfile'] = 'uninstall.php';
|
||||||
|
}
|
||||||
|
if (file_exists($entrydir . '/upgrade.php')) {
|
||||||
|
$app['extra']['upgradefile'] = 'upgrade.php';
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
if (file_exists($entrydir . '/check.php')) {
|
||||||
|
$app['extra']['checkfile'] = 'check.php';
|
||||||
|
}*/
|
||||||
|
if (file_exists($entrydir . '/enable.php')) {
|
||||||
|
$app['extra']['enablefile'] = 'enable.php';
|
||||||
|
}
|
||||||
|
if (file_exists($entrydir . '/disable.php')) {
|
||||||
|
$app['extra']['disablefile'] = 'disable.php';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$apparray['app'] = $app;
|
||||||
|
$apparray['version'] = strip_tags($_G['setting']['version']);
|
||||||
|
$hooks=array();
|
||||||
|
|
||||||
|
foreach(DB::fetch_all("SELECT * FROM %t where `status`='1' and app_market_id='".$appid."' ORDER BY priority",array('hooks')) as $value) {
|
||||||
|
$hooks[$value['name']]=$value['addons'];
|
||||||
|
$hooks['_attributes'][$value['name']]=array("priority"=>$value['priority'],'description'=>$value['description']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($hooks) $apparray['hooks']=$hooks;
|
||||||
|
exportdata('Dzz! app', $app['identifier'] ? $app['identifier'] : random(5), $apparray);
|
||||||
|
exit();
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($do == 'import') {//导入应用
|
||||||
|
if (!submitcheck('importsubmit')) {
|
||||||
|
include template('import');
|
||||||
|
} else {
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
if ($apparray['app']['identifier']) {
|
||||||
|
if(empty($apparray['app']['app_path'])) $apparray['app']['app_path']='dzz';
|
||||||
|
if (!is_dir(DZZ_ROOT . './'.$apparray['app']['app_path'].'/' . $apparray['app']['identifier'])) {
|
||||||
|
showmessage(lang('list_cp_Application_directory_exist',array('app_path'=>$app['app_path'],'identifier'=>$app['identifier'])));
|
||||||
|
}
|
||||||
|
$extra = $apparray['app']['extra'];
|
||||||
|
$filename = $extra['installfile'];
|
||||||
|
if (!empty($filename) && preg_match('/^[\w\.]+$/', $filename)) {
|
||||||
|
$filename = DZZ_ROOT . './'.$apparray['app']['app_path'].'/' . $apparray['app']['identifier'] . '/' . $filename;
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include_once $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
if ($app = importByarray($apparray, 1)) {
|
||||||
|
cron_create($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
showmessage(lang('application_import_successful'), ADMINSCRIPT . '?mod=appmarket', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$app = importByarray($apparray, 0);
|
||||||
|
showmessage('application_import_successful', ADMINSCRIPT . '?mod=appmarket', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($do == 'disable') {//关闭应用
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$app = C::t('app_market') -> fetch($appid)) {
|
||||||
|
showmessage('list_cp_Application_delete');
|
||||||
|
}
|
||||||
|
if(empty($app['app_path'])) $app['app_path']='dzz';
|
||||||
|
//system=2为系统应用禁止进行关闭等操作
|
||||||
|
if ($app["system"]==2) {
|
||||||
|
showmessage('system_cant_disable');
|
||||||
|
}
|
||||||
|
if ($app['identifier']) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
$file = $entrydir . '/dzz_app_' . $app['identifier'] . '.xml';
|
||||||
|
if (!file_exists($file)) {
|
||||||
|
$apparray['disablefile'] = $app['extra']['disablefile'];
|
||||||
|
$apparray['app']['version'] = $app['version'];
|
||||||
|
} else {
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
}
|
||||||
|
if (!empty($apparray['disablefile']) && preg_match('/^[\w\.]+$/', $apparray['disablefile'])) {
|
||||||
|
$filename = $entrydir . '/' . $apparray['disablefile'];
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
C::t('app_market') -> update($appid, array('available' => 0));
|
||||||
|
writelog('otherlog', "关闭应用 ".$app['appname']);
|
||||||
|
showmessage('application_close_successful', $_GET['refer'], array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($do == 'enable') {//开启应用
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$app = C::t('app_market') -> fetch($appid)) {
|
||||||
|
showmessage('list_cp_Application_delete');
|
||||||
|
}
|
||||||
|
if(empty($app['app_path'])) $app['app_path']='dzz';
|
||||||
|
$finish = FALSE;
|
||||||
|
if ($app['identifier']) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
$file = $entrydir . '/dzz_app_' . $app['identifier'] . '.xml';
|
||||||
|
$app['extra'] && $app['extra']=unserialize($app['extra']);
|
||||||
|
$app['appadminurl'] && $app['appadminurl'] = replace_canshu($app['appadminurl']);
|
||||||
|
if( isset($app['extra']['enablefile']) && $app['extra']['enablefile'] ){
|
||||||
|
$apparray['app']['extra'] = $app['extra'] ;
|
||||||
|
$apparray['app']['version'] = $app['version'];
|
||||||
|
}else{
|
||||||
|
if ( file_exists($file)) {
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
} else {
|
||||||
|
$apparray['app']['extra']['enablefile'] = "";
|
||||||
|
$apparray['app']['version'] = $app['version'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!empty($apparray['app']['extra']['enablefile']) && preg_match('/^[\w\.]+$/', $apparray['app']['extra']['enablefile'])) {
|
||||||
|
$filename = $entrydir . '/' . $apparray['app']['extra']['enablefile'];
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
//调用语言包
|
||||||
|
if( file_exists ($entrydir.'/language/'. $_G['language'].'/'.'lang.php') ){
|
||||||
|
include $entrydir.'/language/'. $_G['language'].'/'.'lang.php';
|
||||||
|
$_G['lang']['template']=array_merge($_G['lang']['template'],$lang);
|
||||||
|
}
|
||||||
|
@include $filename;
|
||||||
|
} else {
|
||||||
|
//防止开启文件执行脚本丢失导致绕过开启脚本
|
||||||
|
showmessage( 'enable_file_disappear' );
|
||||||
|
//$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
C::t('app_market') -> update($appid, array('available' => 1));
|
||||||
|
writelog('otherlog', lang('open_app').$app['appname']);
|
||||||
|
showmessage('application_start_successful', $_GET['refer'], array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($do == 'install') {//安装应用
|
||||||
|
$finish = FALSE;
|
||||||
|
$dir = $_GET['app_path'];
|
||||||
|
$appname = $_GET['app_name'];
|
||||||
|
$xmlfile = 'dzz_app_' . $appname . '.xml';
|
||||||
|
$importfile = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $xmlfile;
|
||||||
|
if (!file_exists($importfile)) {
|
||||||
|
showmessage('list_cp_Application_allocation' . ':' . $xmlfile, $_GET['refer']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$importtxt = @implode('', file($importfile));
|
||||||
|
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
if(empty($apparray['app']['app_path'])) $apparray['app']['app_path']=$dir;
|
||||||
|
$filename = $apparray['app']['extra']['installfile'];
|
||||||
|
|
||||||
|
$request_uri = ADMINSCRIPT . '?mod=appmarket';
|
||||||
|
if (!empty($filename) && preg_match('/^[\w\.]+$/', $filename)) {
|
||||||
|
$filename = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $filename;
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include_once $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
if ($app = importByarray($apparray, 1)) {
|
||||||
|
cron_create($app);
|
||||||
|
}
|
||||||
|
writelog('otherlog', lang('install_app').$apparray['app']['appname']);
|
||||||
|
showmessage('application_install_successful', ADMINSCRIPT . '?mod=appmarket', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($do == 'uninstall') {//卸载应用
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$app = C::t('app_market') -> fetch($appid)) {
|
||||||
|
showmessage('list_cp_Application_delete', '', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
$app['extra'] = unserialize($app['extra']);
|
||||||
|
$finish = FALSE;
|
||||||
|
$request_uri = ADMINSCRIPT . '?mod=app';
|
||||||
|
$refer = $_GET['refer'];
|
||||||
|
$appinfo=$app;
|
||||||
|
$msg='';
|
||||||
|
if ($app['identifier']) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
$file = $entrydir . '/dzz_app_' . $app['identifier'] . '.xml';
|
||||||
|
if (!file_exists($file)) {
|
||||||
|
$apparray['app']['extra']['uninstallfile'] = $app['extra']['uninstallfile'];
|
||||||
|
$apparray['app']['version'] = $app['version'];
|
||||||
|
} else {
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($apparray['app']['extra']['uninstallfile']) && preg_match('/^[\w\.]+$/', $apparray['app']['extra']['uninstallfile'])) {
|
||||||
|
$filename = $entrydir . '/' . $apparray['app']['extra']['uninstallfile'];
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
$confirm_uninstall_url= outputurl( $_G['siteurl'].MOD_URL.'&op=cp&do=uninstall_confirm&appid='.$appid.'&refer='.urlencode($refer) );
|
||||||
|
@include $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
$msg .= lang('list_cp_del_Application') . $app['identifier'];
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
$msg = lang('app_upgrade_uninstall_successful', array('upgradeurl' => upgradeinformation_app(-10))).$msg;
|
||||||
|
if ($finish) {
|
||||||
|
C::t('app_market') -> delete_by_appid($appid);
|
||||||
|
cron_delete($app);
|
||||||
|
//删除安装临时文件
|
||||||
|
$temp_install=DZZ_ROOT.'./data/update/app/'.$app['app_path'].'/'.$app['identifier'];
|
||||||
|
removedirectory($temp_install);
|
||||||
|
writelog('otherlog', "卸载应用 ".$app['appname']);
|
||||||
|
showmessage($msg, ADMINSCRIPT . '?mod=appmarket', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($do == 'uninstall_confirm') {//卸载应用
|
||||||
|
$refer = $_GET['refer'];
|
||||||
|
$appid=intval($_GET['appid']);
|
||||||
|
if(!$app=C::t('app_market')->fetch($appid)){
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$app_delete_confirm=lang('app_delete_confirm', array('appname' => $app['appname']));
|
||||||
|
include template('uninstall_confirm');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif ($do == 'upgrade') {//本地升级应用
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$app = C::t('app_market') -> fetch($appid)) {
|
||||||
|
showmessage('list_cp_Application_delete');
|
||||||
|
}
|
||||||
|
$finish = FALSE;
|
||||||
|
$msg = lang('application_upgrade_successful');
|
||||||
|
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
$file = $entrydir . '/dzz_app_' . $app['identifier'] . '.xml';
|
||||||
|
if (!file_exists($file)) {
|
||||||
|
showmessage('list_cp_Application_tautology');
|
||||||
|
}
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 0, $importtxt);
|
||||||
|
|
||||||
|
$filename = $apparray['app']['extra']['upgradefile'];
|
||||||
|
$toversion = $apparray['app']['version'];
|
||||||
|
if (!empty($apparray['app']['extra']['upgradefile']) && preg_match('/^[\w\.]+$/', $apparray['app']['extra']['upgradefile'])) {
|
||||||
|
$filename = $entrydir . '/' . $apparray['app']['extra']['upgradefile'];
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
C::t('app_market') -> update($appid, array('version' => $toversion));
|
||||||
|
showmessage('application_upgrade_successful', ADMINSCRIPT . '?mod=appmarket', array(), array('alert' => 'right'));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
127
admin/appmarket/default.php
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$navtitle=lang('permission_management').' - '.lang('appname');
|
||||||
|
$op=$_GET['op'];
|
||||||
|
if ($_GET['do'] == 'clear') {
|
||||||
|
$i = intval($_GET['i']);
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$appid)
|
||||||
|
exit(json_encode(array('error' => lang('application_nonentity'))));
|
||||||
|
|
||||||
|
$start = 0;
|
||||||
|
foreach (DB::fetch_all("select uid,applist from %t where uid>%d order by uid limit 50",array('user_field',$i)) as $value) {
|
||||||
|
$i = $value['uid'];
|
||||||
|
$start++;
|
||||||
|
$applist = $value['applist'] ? explode(',', $value['applist']) : array();
|
||||||
|
$diff = array_diff($applist, array($appid));
|
||||||
|
C::t('user_field') -> update($value['uid'], array('applist' => implode(',', $diff)));
|
||||||
|
}
|
||||||
|
$ret = array();
|
||||||
|
if ($start < 50) {
|
||||||
|
$ret['msg'] = 'success';
|
||||||
|
} else {
|
||||||
|
$ret['msg'] = 'continue';
|
||||||
|
$ret['start'] = $i;
|
||||||
|
}
|
||||||
|
exit(json_encode($ret));
|
||||||
|
|
||||||
|
}
|
||||||
|
if (submitcheck('appsubmit')) {
|
||||||
|
$setarr = array();
|
||||||
|
foreach ($_GET['disp'] as $key => $value) {
|
||||||
|
$setarr = array('disp' => intval($value), 'position' => intval($_GET['position'][$key]), 'notdelete' => intval($_GET['notdelete'][$key]), );
|
||||||
|
C::t('app_market') -> update($key, $setarr);
|
||||||
|
}
|
||||||
|
showmessage('do_success', dreferer());
|
||||||
|
}
|
||||||
|
$positionarr = array('0' => lang('none'), '1' => lang('start_menu')/*, '2' => lang('desktop'), '3' => lang('taskbar')*/);
|
||||||
|
include libfile('function/organization');
|
||||||
|
$group = intval($_GET['group']);
|
||||||
|
$depid = intval($_GET['depid']);
|
||||||
|
|
||||||
|
$org = array();
|
||||||
|
if ($depid && $org = C::t('organization') -> fetch($depid)) {
|
||||||
|
$orgpath = getPathByOrgid($depid);
|
||||||
|
$orgpath = implode('-', ($orgpath));
|
||||||
|
} else {
|
||||||
|
$orgpath = lang('select_a_organization_or_department');
|
||||||
|
}
|
||||||
|
|
||||||
|
$position = intval($_GET['position']);
|
||||||
|
$keyword = trim($_GET['keyword']);
|
||||||
|
|
||||||
|
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
|
||||||
|
$perpage = 20;
|
||||||
|
$gets = array('mod' => 'app', 'op' => 'default', 'keyword' => $keyword, 'depid' => $depid, 'group' => $group, 'position' => $position, );
|
||||||
|
$theurl = BASESCRIPT . "?" . url_implode($gets);
|
||||||
|
$refer = urlencode($theurl . '&page=' . $page);
|
||||||
|
|
||||||
|
$order = 'ORDER BY disp';
|
||||||
|
$start = ($page - 1) * $perpage;
|
||||||
|
$list = array();
|
||||||
|
$sqlarr = array();
|
||||||
|
if ($depid) {
|
||||||
|
//获取此机构所有下级机构的id
|
||||||
|
if ($appids = C::t('app_organization') -> fetch_appids_by_orgid($depid, true)) {
|
||||||
|
$sqlarr[] = "appid IN (" . dimplode($appids) . ") and `group`='1'";
|
||||||
|
} else {
|
||||||
|
$sqlarr[] = "appid='0'";
|
||||||
|
}
|
||||||
|
|
||||||
|
} elseif ($group == 1) {
|
||||||
|
$appids = array();
|
||||||
|
// (DB::fetch_all("select appid from %t where 1 ",array('app_organization')) as $value) {
|
||||||
|
// $appids[$value['appid']] = $value['appid'];
|
||||||
|
//}
|
||||||
|
//if ($appids) {
|
||||||
|
//$sqlarr[] = "appid NOT IN (" . dimplode($appids) . ") and `group`='1'";
|
||||||
|
//} else {
|
||||||
|
$sqlarr[] = "`group`='1'";
|
||||||
|
//}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$sqlarr[] = "`group`='{$group}'";
|
||||||
|
}
|
||||||
|
$sql = 'available>0';
|
||||||
|
if ($sqlarr) {
|
||||||
|
$sql .= " and (" . implode('and', $sqlarr) . " )";
|
||||||
|
} else {
|
||||||
|
$sql .= " and `group='0'";
|
||||||
|
}
|
||||||
|
if ($keyword) {
|
||||||
|
$sql .= " and appname like '%$keyword%'";
|
||||||
|
} elseif ($position) {
|
||||||
|
$sql .= " and `position`='{$position}'";
|
||||||
|
}
|
||||||
|
|
||||||
|
$apps = array();
|
||||||
|
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE $sql ")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE $sql $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
$orgs = array();
|
||||||
|
foreach(DB::fetch_all("select a.appid,o.orgid,o.orgname from %t a LEFT JOIN %t o ON o.orgid=a.orgid where 1 ",array('app_organization','organization')) as $value) {
|
||||||
|
$orgs[$value['appid']][] = $value;
|
||||||
|
}
|
||||||
|
foreach ($apps as $value) {
|
||||||
|
if(isset($orgs[$value['appid']])){
|
||||||
|
$value['orgs']=$orgs[$value['appid']];
|
||||||
|
}
|
||||||
|
if ($value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
$value['appurl'] = BASESCRIPT . '?mod=appmarket&op=edit&appid=' . $value['appid'];
|
||||||
|
$list[] = $value;
|
||||||
|
}
|
||||||
|
include template('appdefault');
|
||||||
|
?>
|
||||||
1285
admin/appmarket/dzz_app_appmarket.xml
Normal file
220
admin/appmarket/edit.php
Normal file
@@ -0,0 +1,220 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
include_once DZZ_ROOT . './data/extdata/exts.php';
|
||||||
|
require_once libfile('function/user', '', 'user');
|
||||||
|
$grouptitle = array('0' => lang('all'), '-1' => lang('visitors_visible'), '1' => lang('members_available'), '2' => lang('section_administrators_available'), '3' => lang('system_administrators_available'));
|
||||||
|
|
||||||
|
$do = trim($_GET['do']);
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
$refer = dreferer();
|
||||||
|
$op = $_GET['op'];
|
||||||
|
if (submitcheck('appsubmit')) {
|
||||||
|
$appurl = addslashes(trim($_GET['appurl']));
|
||||||
|
$appadminurl = addslashes(trim($_GET['appadminurl']));
|
||||||
|
$identifier = getstr($_GET['identifier']);
|
||||||
|
$app_path = getstr($_GET['app_path']);
|
||||||
|
$_GET['appdesc'] = getstr($_GET['appdesc']);
|
||||||
|
$_GET['feature'] = getstr($_GET['feature']);
|
||||||
|
$_GET['taginput'] = str_replace(array(',', "'", ','), '', trim($_GET['taginput']));
|
||||||
|
$_GET['fileextinput'] = trim($_GET['fileextinput']);
|
||||||
|
if (!empty($_GET['fileextinput']))
|
||||||
|
$_GET['fileext'][] = $_GET['fileextinput'];
|
||||||
|
if (!empty($_GET['taginput']))
|
||||||
|
$_GET['tag'][] = $_GET['taginput'];
|
||||||
|
$setarr = array(
|
||||||
|
'appname' => getstr($_GET['appname'], 80, 0, 0, 0, -1),
|
||||||
|
'appurl' => trim($_GET['appurl']),
|
||||||
|
'appadminurl' => $appadminurl,
|
||||||
|
'identifier' => $identifier,
|
||||||
|
'app_path' => $app_path,
|
||||||
|
'noticeurl' => trim($_GET['noticeurl']),
|
||||||
|
'haveflash' => intval($_GET['haveflash']),
|
||||||
|
'vendor' => trim($_GET['vendor']),
|
||||||
|
'hideInMarket' => intval($_GET['hideInMarket']),
|
||||||
|
'appdesc' => ($_GET['appdesc']),
|
||||||
|
'isshow' => intval($_GET['isshow']),
|
||||||
|
'havetask' => intval($_GET['havetask']),
|
||||||
|
'feature' => $_GET['feature'],
|
||||||
|
'fileext' => $_GET['fileext'],
|
||||||
|
'group' => intval($_GET['group']),
|
||||||
|
'open' => intval($_GET['open']),
|
||||||
|
'nodup' => intval($_GET['nodup'])
|
||||||
|
);
|
||||||
|
|
||||||
|
//判断依序的参数是否有值
|
||||||
|
$msg = '';
|
||||||
|
if (!$setarr['appname']) $msg .= lang('application_appname').lang('not_empty');
|
||||||
|
if (!$setarr['appurl']) $msg .= lang('application_site').lang('not_empty');
|
||||||
|
if (!$setarr['identifier']) $msg .= lang('application_identifier').lang('not_empty');
|
||||||
|
if (!$setarr['app_path']) $msg .= lang('application_app_path').lang('not_empty');
|
||||||
|
|
||||||
|
if (($oappid = DB::result_first("select appid from %t where appurl=%s", array('app_market', $setarr['appurl']))) && $oappid != $appid) {
|
||||||
|
$msg .= lang('application_site') .lang('already_exist');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (($oappid = DB::result_first("select appid from %t where identifier=%s", array('app_market', $setarr['identifier']))) && $oappid != $appid) {
|
||||||
|
$msg .= lang('application_identifier') .lang('already_exist');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($msg) showmessage($msg);
|
||||||
|
|
||||||
|
//处理应用图标
|
||||||
|
$iconnew = '';
|
||||||
|
$target = '';
|
||||||
|
if ($appid) {
|
||||||
|
$target = DB::result_first("select appico from " . DB::table('app_market') . " where appid='{$appid}'");
|
||||||
|
}
|
||||||
|
if ($_FILES['iconnew']) {
|
||||||
|
if ($_FILES['iconnew']['tmp_name']) {
|
||||||
|
if ($appico = uploadtolocal($_FILES['iconnew'], 'appico', $target)) {
|
||||||
|
$setarr['appico'] = $appico;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!$_GET['iconnew'])
|
||||||
|
$_GET['iconnew'] = 'dzz/images/default/icodefault.png';
|
||||||
|
if ($_GET['iconnew'] && $_GET['iconnew'] != $_G['setting']['attachurl'] . $target) {
|
||||||
|
if ($appico = imagetolocal($_GET['iconnew'], 'appico', $target)) {
|
||||||
|
$setarr['appico'] = $appico;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$picids = $_GET['picids'];
|
||||||
|
//删除已有图片
|
||||||
|
$delete_picids = $_GET['delete_pics'];
|
||||||
|
if ($delete_picids)
|
||||||
|
app_pic_delete($delete_picids);
|
||||||
|
|
||||||
|
|
||||||
|
//处理组织机构
|
||||||
|
if ($setarr['group'] != 1){
|
||||||
|
$orgids = array();
|
||||||
|
}else{//只有用户可用时才设置部门
|
||||||
|
$orgids = $_GET['orgids'] ? explode(',', $_GET['orgids']) : array();
|
||||||
|
}
|
||||||
|
$uids=array();
|
||||||
|
foreach($orgids as $orgid){
|
||||||
|
$uids[]='g_'.$orgid;
|
||||||
|
}
|
||||||
|
if($uids){
|
||||||
|
$setarr['uids']=implode(',',$uids);
|
||||||
|
}else{
|
||||||
|
$setarr['uids']='';
|
||||||
|
}
|
||||||
|
if ($appid) {
|
||||||
|
C::t('app_market') -> update($appid, $setarr);
|
||||||
|
} else {
|
||||||
|
$setarr['dateline'] = $_G['timestamp'];
|
||||||
|
if (!$setarr['appico'])
|
||||||
|
$setarr['appico'] = 'dzz/images/default/icodefault.png';
|
||||||
|
$setarr["version"]="1.0";//默认版本1.0开始
|
||||||
|
$appid = C::t('app_market') -> insert($setarr, 1);
|
||||||
|
}
|
||||||
|
//处理标签
|
||||||
|
C::t('app_tag') -> addtags($_GET['tag'], $appid);
|
||||||
|
//更新上传图片的id
|
||||||
|
if ($picids) C::t('app_pic') -> update($picids, array('appid' => $appid));
|
||||||
|
C::t('app_open') -> insert_by_exts($appid, $_GET['fileext'], false);
|
||||||
|
C::t('app_organization') -> replace_orgids_by_appid($appid, $orgids);
|
||||||
|
|
||||||
|
showmessage('do_success', $_GET['refer']);
|
||||||
|
|
||||||
|
} elseif ($do == 'upload') {
|
||||||
|
$picid = 0;
|
||||||
|
$uploadfiles = dzz_app_pic_save($_FILES['attach']);
|
||||||
|
if ($uploadfiles && is_array($uploadfiles)) {
|
||||||
|
$picid = $uploadfiles['picid'];
|
||||||
|
$uploadStat = 1;
|
||||||
|
} else {
|
||||||
|
$uploadStat = $uploadfiles;
|
||||||
|
}
|
||||||
|
echo "<script>";
|
||||||
|
echo "parent.uploadStat = '$uploadStat';";
|
||||||
|
echo "parent.picid = $picid;";
|
||||||
|
echo "parent.upload();";
|
||||||
|
echo "</script>";
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
include_once libfile('function/organization');
|
||||||
|
$sexts = array();
|
||||||
|
foreach ($exts as $ext) {
|
||||||
|
$sexts[] = array('name' => $ext);
|
||||||
|
}
|
||||||
|
$fileext_source = htmlspecialchars(json_encode($sexts));
|
||||||
|
$orglist = C::t('organization') -> fetch_all_by_forgid(0);
|
||||||
|
$tags = DB::fetch_all("SELECT tagname FROM %t WHERE hot>0 ORDER BY HOT DESC limit 50", array('app_tag'));
|
||||||
|
$tag_source = array();
|
||||||
|
foreach ($tags as $value) {
|
||||||
|
$tag_source[] = array('name' => $value['tagname']);
|
||||||
|
}
|
||||||
|
$tag_source = htmlspecialchars(json_encode($tag_source));
|
||||||
|
$app = array();
|
||||||
|
if ($app = dstripslashes(C::t('app_market') -> fetch($appid))) {
|
||||||
|
if ($app['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $app['appico'])) {
|
||||||
|
$app['appico'] = $_G['setting']['attachurl'] . $app['appico'];
|
||||||
|
}
|
||||||
|
$apptags = array();
|
||||||
|
foreach (C::t('app_relative')->fetch_all_by_appid($app['appid']) as $value) {
|
||||||
|
$apptags[] = $value['tagname'];
|
||||||
|
}
|
||||||
|
if ($apptags)
|
||||||
|
$app['tags'] = implode(',', $apptags);
|
||||||
|
else
|
||||||
|
$app['tags'] = '';
|
||||||
|
//$app['fileext']=$app['fileext']?explode(',',$app['fileext']):array();
|
||||||
|
|
||||||
|
$open = $sel = array();
|
||||||
|
$orgids = C::t('app_organization') -> fetch_orgids_by_appid($app['appid']);
|
||||||
|
if ($orgids) {
|
||||||
|
$sel_org = C::t('organization') -> fetch_all($orgids);
|
||||||
|
foreach ($sel_org as $key => $value) {
|
||||||
|
$orgpath = getPathByOrgid($value['orgid']);
|
||||||
|
$sel_org[$key]['orgname'] = implode('-', ($orgpath));
|
||||||
|
$sel[] = $value['orgid'];
|
||||||
|
$arr = (array_keys($orgpath));
|
||||||
|
array_pop($arr);
|
||||||
|
$count = count($arr);
|
||||||
|
if ($open[$arr[$count - 1]]) {
|
||||||
|
if (count($open[$arr[$count - 1]]) > $count)
|
||||||
|
$open[$arr[count($arr) - 1]] = $arr;
|
||||||
|
} else {
|
||||||
|
$open[$arr[$count - 1]] = $arr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$sel = implode(',', $sel);
|
||||||
|
$openarr = json_encode(array('orgids' => $open));
|
||||||
|
$piclist = array();
|
||||||
|
$list = C::t('app_pic') -> fetch_all_by_appid($appid, false, true);
|
||||||
|
foreach ($list as $value) {
|
||||||
|
$value['pic'] = getAttachUrl($value);
|
||||||
|
$value['dateline'] = dgmdate($value['dateline'], 'd');
|
||||||
|
$piclist[] = $value;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$app = array();
|
||||||
|
$app['hideInMarket'] = 0;
|
||||||
|
$app['isshow'] = 1;
|
||||||
|
$app['havetask'] = 1;
|
||||||
|
$app['haveflash'] = 0;
|
||||||
|
$app['group'] = 1;
|
||||||
|
}
|
||||||
|
include template('edit');
|
||||||
|
}
|
||||||
|
function app_pic_delete($picids) {
|
||||||
|
if (!is_array($picids))
|
||||||
|
$picids = array($picids);
|
||||||
|
foreach ($picids as $picid) {
|
||||||
|
C::t('app_pic') -> delete_by_picid($picid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
106
admin/appmarket/extopen.php
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$navtitle=lang('open_way').' - '.lang('appname');
|
||||||
|
$op='extopen';
|
||||||
|
$do=$_GET['do'];
|
||||||
|
|
||||||
|
if ( $do =="setdefault" ) {
|
||||||
|
$extid = intval( $_GET["extid"] );
|
||||||
|
if($extid){
|
||||||
|
$result = C::t('app_open') -> setDefault($extid);
|
||||||
|
if($result){
|
||||||
|
success( lang('set_default').lang('success'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
error(lang('set_default').lang('failure'));
|
||||||
|
}else if( $do =="setorder"){
|
||||||
|
$extid = $_GET["extid"];
|
||||||
|
if( $extid ){
|
||||||
|
$result = C::t('app_open') -> setOrders($extid);
|
||||||
|
if($result){
|
||||||
|
success( lang('set_default').lang('success'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
error(lang('set_default').lang('failure'));
|
||||||
|
}
|
||||||
|
$sql_app="`available`>0";
|
||||||
|
$param_app=array('app_market');
|
||||||
|
$sql = '1';
|
||||||
|
$param=array('app_open');
|
||||||
|
if(preg_match("/[a-zA-Z0-9]{1,10}/i",$_GET['ext'])){
|
||||||
|
$ext = trim($_GET['ext']);
|
||||||
|
$sql .= " and `ext` = %s";
|
||||||
|
$param[]=$ext;
|
||||||
|
}elseif($_GET['ext']){
|
||||||
|
$appname=trim($_GET['ext']);
|
||||||
|
$sql_app.=' and appname LIke %s';
|
||||||
|
$param_app[]='%'.$appname.'%';
|
||||||
|
}
|
||||||
|
$ext = trim($_GET['ext']);
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
|
||||||
|
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
|
||||||
|
$perpage = 20;
|
||||||
|
$gets = array('mod' => 'appmarket', 'op' => 'extopen', 'ext' => $ext, 'appid' => $appid);
|
||||||
|
$theurl = BASESCRIPT . "?" . url_implode($gets);
|
||||||
|
$refer = urlencode($theurl . '&page=' . $page);
|
||||||
|
|
||||||
|
$start = ($page - 1) * $perpage;
|
||||||
|
$apps = array();
|
||||||
|
|
||||||
|
|
||||||
|
if ($appid) {
|
||||||
|
$sql .= " and `appid` = %d";
|
||||||
|
$param[]=$appid;
|
||||||
|
}
|
||||||
|
|
||||||
|
$count = DB::result_first("select COUNT(*) from %t where $sql_app ",$param_app);
|
||||||
|
if($count){
|
||||||
|
$appdatas =DB::fetch_all("select appid,appico,appname,appurl from %t where $sql_app ",$param_app,'appid');
|
||||||
|
$sql .= ' and `appid` IN(%n)';
|
||||||
|
$param[] = array_keys($appdatas);
|
||||||
|
$list = DB::fetch_all("select * from %t where $sql ORDER BY ext DESC",$param);
|
||||||
|
$newlist=array();
|
||||||
|
foreach($list as $k=>$v ){
|
||||||
|
$appdata = $appdatas[$v["appid"]];
|
||||||
|
if ($appdata['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $appdata['appico'])) {
|
||||||
|
$appdata['appico'] = $_G['setting']['attachurl'] . $appdata['appico'];
|
||||||
|
}
|
||||||
|
$appdata['appurl'] = replace_canshu($appdata['appurl']);
|
||||||
|
$v["appdata"]=$appdata;
|
||||||
|
$newlist[$v["ext"]][]=$v;
|
||||||
|
}
|
||||||
|
$count = count($newlist);
|
||||||
|
}
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl );
|
||||||
|
//根据分页截取数组
|
||||||
|
ksort($newlist,SORT_STRING );
|
||||||
|
$list = array_slice($newlist,$start,$perpage);
|
||||||
|
foreach($list as $k=>$nlist){
|
||||||
|
$sort = array(
|
||||||
|
'direction' => 'SORT_ASC', //排序顺序标志 SORT_DESC 降序;SORT_ASC 升序
|
||||||
|
'field' => 'disp', //排序字段
|
||||||
|
);
|
||||||
|
$arrSort = array();
|
||||||
|
foreach($nlist AS $uniqid => $row){
|
||||||
|
foreach($row AS $key=>$value){
|
||||||
|
$arrSort[$key][$uniqid] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($sort['direction']){
|
||||||
|
array_multisort($arrSort[$sort['field']], constant($sort['direction']), $nlist);
|
||||||
|
}
|
||||||
|
$list[$k]=$nlist;
|
||||||
|
}
|
||||||
|
//print_r($list);exit;
|
||||||
|
include template('extopen');
|
||||||
|
?>
|
||||||
53
admin/appmarket/function/function_appmarket.php
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<?php
|
||||||
|
/* @authorcode codestrings
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author qchlian(3580164@qq.com)
|
||||||
|
*/
|
||||||
|
if(!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
function dzzunzip($filename,$path,$md5file){
|
||||||
|
if( file_exists( $filename )){//压缩包存在
|
||||||
|
//打开压缩包
|
||||||
|
$resource = zip_open($filename);
|
||||||
|
$i = 1;
|
||||||
|
//遍历读取压缩包里面的一个个文件
|
||||||
|
while ($dir_resource = zip_read($resource)) {
|
||||||
|
//如果能打开则继续
|
||||||
|
if (zip_entry_open($resource,$dir_resource)) {
|
||||||
|
//获取当前项目的名称,即压缩包里面当前对应的文件名
|
||||||
|
$file_name = $path.zip_entry_name($dir_resource);
|
||||||
|
//以最后一个“/”分割,再用字符串截取出路径部分
|
||||||
|
$file_path = substr($file_name,0,strrpos($file_name, "/"));
|
||||||
|
//如果路径不存在,则创建一个目录,true表示可以创建多级目录
|
||||||
|
if(!is_dir($file_path)){
|
||||||
|
mkdir($file_path,0777,true);
|
||||||
|
}
|
||||||
|
//如果不是目录,则写入文件
|
||||||
|
if(!is_dir($file_name)){
|
||||||
|
//读取这个文件
|
||||||
|
if( $file_name==$md5file){
|
||||||
|
continue; //排查md5文件,dzzmdfile会重新生成
|
||||||
|
}
|
||||||
|
$file_size = zip_entry_filesize($dir_resource);
|
||||||
|
//最大读取6M,如果文件过大,跳过解压,继续下一个
|
||||||
|
//if($file_size<(1024*1024*300)){
|
||||||
|
$file_content = zip_entry_read($dir_resource,$file_size);
|
||||||
|
if(file_exists( $file_name)){
|
||||||
|
@unlink($file_name);
|
||||||
|
}
|
||||||
|
file_put_contents($file_name,$file_content);
|
||||||
|
}
|
||||||
|
//关闭当前
|
||||||
|
zip_entry_close($dir_resource);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//关闭压缩包
|
||||||
|
zip_close($resource);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
BIN
admin/appmarket/images/bg.gif
Normal file
|
After Width: | Height: | Size: 746 B |
BIN
admin/appmarket/images/bg.jpg
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
admin/appmarket/images/icon-deletH.png
Normal file
|
After Width: | Height: | Size: 1015 B |
489
admin/appmarket/images/jquery-ui.css
vendored
Normal file
@@ -0,0 +1,489 @@
|
|||||||
|
/*! jQuery UI - v1.11.4 - 2018-01-24
|
||||||
|
* http://jqueryui.com
|
||||||
|
* Includes: core.css, sortable.css, theme.css
|
||||||
|
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=e9e9e9&bgTextureHeader=flat&borderColorHeader=dddddd&fcHeader=333333&iconColorHeader=444444&bgColorContent=ffffff&bgTextureContent=flat&borderColorContent=dddddd&fcContent=333333&iconColorContent=444444&bgColorDefault=f6f6f6&bgTextureDefault=flat&borderColorDefault=c5c5c5&fcDefault=454545&iconColorDefault=777777&bgColorHover=ededed&bgTextureHover=flat&borderColorHover=cccccc&fcHover=2b2b2b&iconColorHover=555555&bgColorActive=007fff&bgTextureActive=flat&borderColorActive=003eff&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=fffa90&bgTextureHighlight=flat&borderColorHighlight=dad55e&fcHighlight=777620&iconColorHighlight=777620&bgColorError=fddfdf&bgTextureError=flat&borderColorError=f1a899&fcError=5f3f3f&iconColorError=cc0000&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px
|
||||||
|
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||||
|
|
||||||
|
/* Layout helpers
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-helper-hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.ui-helper-hidden-accessible {
|
||||||
|
border: 0;
|
||||||
|
clip: rect(0 0 0 0);
|
||||||
|
height: 1px;
|
||||||
|
margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
position: absolute;
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
.ui-helper-reset {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
outline: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 100%;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.ui-helper-clearfix:before,
|
||||||
|
.ui-helper-clearfix:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
.ui-helper-clearfix:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.ui-helper-clearfix {
|
||||||
|
min-height: 0; /* support: IE7 */
|
||||||
|
}
|
||||||
|
.ui-helper-zfix {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
|
filter:Alpha(Opacity=0); /* support: IE8 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-front {
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Interaction Cues
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-disabled {
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Icons
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* states and images */
|
||||||
|
.ui-icon {
|
||||||
|
display: block;
|
||||||
|
text-indent: -99999px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Misc visuals
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* Overlays */
|
||||||
|
.ui-widget-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.ui-sortable-handle {
|
||||||
|
-ms-touch-action: none;
|
||||||
|
touch-action: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Component containers
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-widget {
|
||||||
|
font-family: Arial,Helvetica,sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.ui-widget .ui-widget {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.ui-widget input,
|
||||||
|
.ui-widget select,
|
||||||
|
.ui-widget textarea,
|
||||||
|
.ui-widget button {
|
||||||
|
font-family: Arial,Helvetica,sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.ui-widget-content {
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
background: #ffffff;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.ui-widget-content a {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.ui-widget-header {
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
background: #e9e9e9;
|
||||||
|
color: #333333;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.ui-widget-header a {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Interaction states
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-default,
|
||||||
|
.ui-widget-content .ui-state-default,
|
||||||
|
.ui-widget-header .ui-state-default {
|
||||||
|
border: 1px solid #c5c5c5;
|
||||||
|
background: #f6f6f6;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #454545;
|
||||||
|
}
|
||||||
|
.ui-state-default a,
|
||||||
|
.ui-state-default a:link,
|
||||||
|
.ui-state-default a:visited {
|
||||||
|
color: #454545;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ui-state-hover,
|
||||||
|
.ui-widget-content .ui-state-hover,
|
||||||
|
.ui-widget-header .ui-state-hover,
|
||||||
|
.ui-state-focus,
|
||||||
|
.ui-widget-content .ui-state-focus,
|
||||||
|
.ui-widget-header .ui-state-focus {
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
background: #ededed;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #2b2b2b;
|
||||||
|
}
|
||||||
|
.ui-state-hover a,
|
||||||
|
.ui-state-hover a:hover,
|
||||||
|
.ui-state-hover a:link,
|
||||||
|
.ui-state-hover a:visited,
|
||||||
|
.ui-state-focus a,
|
||||||
|
.ui-state-focus a:hover,
|
||||||
|
.ui-state-focus a:link,
|
||||||
|
.ui-state-focus a:visited {
|
||||||
|
color: #2b2b2b;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ui-state-active,
|
||||||
|
.ui-widget-content .ui-state-active,
|
||||||
|
.ui-widget-header .ui-state-active {
|
||||||
|
border: 1px solid #003eff;
|
||||||
|
background: #007fff;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.ui-state-active a,
|
||||||
|
.ui-state-active a:link,
|
||||||
|
.ui-state-active a:visited {
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Interaction Cues
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-highlight,
|
||||||
|
.ui-widget-content .ui-state-highlight,
|
||||||
|
.ui-widget-header .ui-state-highlight {
|
||||||
|
border: 1px solid #dad55e;
|
||||||
|
background: #fffa90;
|
||||||
|
color: #777620;
|
||||||
|
}
|
||||||
|
.ui-state-highlight a,
|
||||||
|
.ui-widget-content .ui-state-highlight a,
|
||||||
|
.ui-widget-header .ui-state-highlight a {
|
||||||
|
color: #777620;
|
||||||
|
}
|
||||||
|
.ui-state-error,
|
||||||
|
.ui-widget-content .ui-state-error,
|
||||||
|
.ui-widget-header .ui-state-error {
|
||||||
|
border: 1px solid #f1a899;
|
||||||
|
background: #fddfdf;
|
||||||
|
color: #5f3f3f;
|
||||||
|
}
|
||||||
|
.ui-state-error a,
|
||||||
|
.ui-widget-content .ui-state-error a,
|
||||||
|
.ui-widget-header .ui-state-error a {
|
||||||
|
color: #5f3f3f;
|
||||||
|
}
|
||||||
|
.ui-state-error-text,
|
||||||
|
.ui-widget-content .ui-state-error-text,
|
||||||
|
.ui-widget-header .ui-state-error-text {
|
||||||
|
color: #5f3f3f;
|
||||||
|
}
|
||||||
|
.ui-priority-primary,
|
||||||
|
.ui-widget-content .ui-priority-primary,
|
||||||
|
.ui-widget-header .ui-priority-primary {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.ui-priority-secondary,
|
||||||
|
.ui-widget-content .ui-priority-secondary,
|
||||||
|
.ui-widget-header .ui-priority-secondary {
|
||||||
|
opacity: .7;
|
||||||
|
filter:Alpha(Opacity=70); /* support: IE8 */
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.ui-state-disabled,
|
||||||
|
.ui-widget-content .ui-state-disabled,
|
||||||
|
.ui-widget-header .ui-state-disabled {
|
||||||
|
opacity: .35;
|
||||||
|
filter:Alpha(Opacity=35); /* support: IE8 */
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.ui-state-disabled .ui-icon {
|
||||||
|
filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Icons
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* states and images */
|
||||||
|
.ui-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
.ui-icon,
|
||||||
|
.ui-widget-content .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_444444_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-widget-header .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_444444_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-state-default .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_777777_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-state-hover .ui-icon,
|
||||||
|
.ui-state-focus .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_555555_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-state-active .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_ffffff_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-state-highlight .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_777620_256x240.png");
|
||||||
|
}
|
||||||
|
.ui-state-error .ui-icon,
|
||||||
|
.ui-state-error-text .ui-icon {
|
||||||
|
background-image: url("images/ui-icons_cc0000_256x240.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* positioning */
|
||||||
|
.ui-icon-blank { background-position: 16px 16px; }
|
||||||
|
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||||
|
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||||
|
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||||
|
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||||
|
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||||
|
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||||
|
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||||
|
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||||
|
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||||
|
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||||
|
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||||
|
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||||
|
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||||
|
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||||
|
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||||
|
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||||
|
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||||
|
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||||
|
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||||
|
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||||
|
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||||
|
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||||
|
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||||
|
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||||
|
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||||
|
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||||
|
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||||
|
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||||
|
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||||
|
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||||
|
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||||
|
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||||
|
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||||
|
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||||
|
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||||
|
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||||
|
.ui-icon-extlink { background-position: -32px -80px; }
|
||||||
|
.ui-icon-newwin { background-position: -48px -80px; }
|
||||||
|
.ui-icon-refresh { background-position: -64px -80px; }
|
||||||
|
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||||
|
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||||
|
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||||
|
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||||
|
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||||
|
.ui-icon-document { background-position: -32px -96px; }
|
||||||
|
.ui-icon-document-b { background-position: -48px -96px; }
|
||||||
|
.ui-icon-note { background-position: -64px -96px; }
|
||||||
|
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||||
|
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||||
|
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||||
|
.ui-icon-comment { background-position: -128px -96px; }
|
||||||
|
.ui-icon-person { background-position: -144px -96px; }
|
||||||
|
.ui-icon-print { background-position: -160px -96px; }
|
||||||
|
.ui-icon-trash { background-position: -176px -96px; }
|
||||||
|
.ui-icon-locked { background-position: -192px -96px; }
|
||||||
|
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||||
|
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||||
|
.ui-icon-tag { background-position: -240px -96px; }
|
||||||
|
.ui-icon-home { background-position: 0 -112px; }
|
||||||
|
.ui-icon-flag { background-position: -16px -112px; }
|
||||||
|
.ui-icon-calendar { background-position: -32px -112px; }
|
||||||
|
.ui-icon-cart { background-position: -48px -112px; }
|
||||||
|
.ui-icon-pencil { background-position: -64px -112px; }
|
||||||
|
.ui-icon-clock { background-position: -80px -112px; }
|
||||||
|
.ui-icon-disk { background-position: -96px -112px; }
|
||||||
|
.ui-icon-calculator { background-position: -112px -112px; }
|
||||||
|
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||||
|
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||||
|
.ui-icon-search { background-position: -160px -112px; }
|
||||||
|
.ui-icon-wrench { background-position: -176px -112px; }
|
||||||
|
.ui-icon-gear { background-position: -192px -112px; }
|
||||||
|
.ui-icon-heart { background-position: -208px -112px; }
|
||||||
|
.ui-icon-star { background-position: -224px -112px; }
|
||||||
|
.ui-icon-link { background-position: -240px -112px; }
|
||||||
|
.ui-icon-cancel { background-position: 0 -128px; }
|
||||||
|
.ui-icon-plus { background-position: -16px -128px; }
|
||||||
|
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||||
|
.ui-icon-minus { background-position: -48px -128px; }
|
||||||
|
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||||
|
.ui-icon-close { background-position: -80px -128px; }
|
||||||
|
.ui-icon-closethick { background-position: -96px -128px; }
|
||||||
|
.ui-icon-key { background-position: -112px -128px; }
|
||||||
|
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||||
|
.ui-icon-scissors { background-position: -144px -128px; }
|
||||||
|
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||||
|
.ui-icon-copy { background-position: -176px -128px; }
|
||||||
|
.ui-icon-contact { background-position: -192px -128px; }
|
||||||
|
.ui-icon-image { background-position: -208px -128px; }
|
||||||
|
.ui-icon-video { background-position: -224px -128px; }
|
||||||
|
.ui-icon-script { background-position: -240px -128px; }
|
||||||
|
.ui-icon-alert { background-position: 0 -144px; }
|
||||||
|
.ui-icon-info { background-position: -16px -144px; }
|
||||||
|
.ui-icon-notice { background-position: -32px -144px; }
|
||||||
|
.ui-icon-help { background-position: -48px -144px; }
|
||||||
|
.ui-icon-check { background-position: -64px -144px; }
|
||||||
|
.ui-icon-bullet { background-position: -80px -144px; }
|
||||||
|
.ui-icon-radio-on { background-position: -96px -144px; }
|
||||||
|
.ui-icon-radio-off { background-position: -112px -144px; }
|
||||||
|
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||||
|
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||||
|
.ui-icon-play { background-position: 0 -160px; }
|
||||||
|
.ui-icon-pause { background-position: -16px -160px; }
|
||||||
|
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||||
|
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||||
|
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||||
|
.ui-icon-seek-start { background-position: -80px -160px; }
|
||||||
|
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
||||||
|
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||||
|
.ui-icon-stop { background-position: -96px -160px; }
|
||||||
|
.ui-icon-eject { background-position: -112px -160px; }
|
||||||
|
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||||
|
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||||
|
.ui-icon-power { background-position: 0 -176px; }
|
||||||
|
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||||
|
.ui-icon-signal { background-position: -32px -176px; }
|
||||||
|
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||||
|
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||||
|
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||||
|
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||||
|
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||||
|
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||||
|
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||||
|
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||||
|
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||||
|
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||||
|
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||||
|
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||||
|
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||||
|
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||||
|
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||||
|
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||||
|
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||||
|
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||||
|
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||||
|
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||||
|
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||||
|
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||||
|
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||||
|
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||||
|
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||||
|
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||||
|
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||||
|
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||||
|
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||||
|
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Misc visuals
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* Corner radius */
|
||||||
|
.ui-corner-all,
|
||||||
|
.ui-corner-top,
|
||||||
|
.ui-corner-left,
|
||||||
|
.ui-corner-tl {
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
.ui-corner-all,
|
||||||
|
.ui-corner-top,
|
||||||
|
.ui-corner-right,
|
||||||
|
.ui-corner-tr {
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
.ui-corner-all,
|
||||||
|
.ui-corner-bottom,
|
||||||
|
.ui-corner-left,
|
||||||
|
.ui-corner-bl {
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
|
.ui-corner-all,
|
||||||
|
.ui-corner-bottom,
|
||||||
|
.ui-corner-right,
|
||||||
|
.ui-corner-br {
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Overlays */
|
||||||
|
.ui-widget-overlay {
|
||||||
|
background: #aaaaaa;
|
||||||
|
opacity: .3;
|
||||||
|
filter: Alpha(Opacity=30); /* support: IE8 */
|
||||||
|
}
|
||||||
|
.ui-widget-shadow {
|
||||||
|
margin: 0px 0 0 0px;
|
||||||
|
padding: 5px;
|
||||||
|
background: #666666;
|
||||||
|
opacity: .3;
|
||||||
|
filter: Alpha(Opacity=30); /* support: IE8 */
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
BIN
admin/appmarket/images/logo.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
362
admin/appmarket/images/market.css
Normal file
@@ -0,0 +1,362 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
/* CSS Document */
|
||||||
|
html, body {
|
||||||
|
overflow: hidden;
|
||||||
|
word-break:break-all;
|
||||||
|
background:#FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand{
|
||||||
|
padding-left:50px;
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
}
|
||||||
|
.navbar-brand .logo{
|
||||||
|
position:absolute;
|
||||||
|
left:0;top:0;
|
||||||
|
padding:5px;
|
||||||
|
width:50px;
|
||||||
|
height:50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.img_236{
|
||||||
|
max-width: 236px;
|
||||||
|
}
|
||||||
|
* html .img_236 {
|
||||||
|
width: expression(this.width > 236 && this.width>=this.height ? 236 : true);
|
||||||
|
|
||||||
|
}
|
||||||
|
.market-container .appitem{
|
||||||
|
|
||||||
|
background:#FFF;
|
||||||
|
width:236px;
|
||||||
|
height:330px;
|
||||||
|
box-shadow:0 1px 3px rgba(0,0,0,.3);
|
||||||
|
position:relative;
|
||||||
|
border-radius:2px;
|
||||||
|
margin:8px;
|
||||||
|
}
|
||||||
|
.ie8 .market-container .appitem{
|
||||||
|
border:1px solid #D9D9D7;
|
||||||
|
}
|
||||||
|
.img-container {
|
||||||
|
width:236px;
|
||||||
|
height:136px;
|
||||||
|
padding:0;
|
||||||
|
text-align:center;
|
||||||
|
position:relative;
|
||||||
|
overflow:hidden;
|
||||||
|
display:block;
|
||||||
|
border-radius:2px 2px 0 0;
|
||||||
|
}
|
||||||
|
.ie8 .img-container {
|
||||||
|
width:234px;
|
||||||
|
height:135px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.appitem-desc{
|
||||||
|
padding:10px 0;
|
||||||
|
height:84px;
|
||||||
|
line-height:1.5;
|
||||||
|
overflow:hidden;
|
||||||
|
color:#808080;
|
||||||
|
}
|
||||||
|
.appitem-footer{
|
||||||
|
line-height:35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.appitem-title a{
|
||||||
|
font-size:14px;font-weight:bold;color:#333;
|
||||||
|
text-shadow:1px 1px 1px #FFF;
|
||||||
|
}
|
||||||
|
.appitem .appmeta{
|
||||||
|
color: #353535;
|
||||||
|
padding: 15px 15px 0 15px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.appmeta a {
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.appmeta a h3 {
|
||||||
|
display: block;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 14px;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
height:14px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;font-weight: bold;
|
||||||
|
}
|
||||||
|
.appmeta h4 {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #808080;
|
||||||
|
margin:0;
|
||||||
|
/*margin-top: -8px;*/
|
||||||
|
padding-bottom: 8px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
.color-block-1 {
|
||||||
|
background: #B82F68;
|
||||||
|
}
|
||||||
|
.color-block-2 {
|
||||||
|
background: #DB4B00;
|
||||||
|
}
|
||||||
|
.color-block-3 {
|
||||||
|
background: #BA4B3A;
|
||||||
|
}
|
||||||
|
.color-block-4 {
|
||||||
|
background: #009BCB;
|
||||||
|
}
|
||||||
|
.color-block-5 {
|
||||||
|
background: #37B298;
|
||||||
|
}
|
||||||
|
.color-block-6 {
|
||||||
|
background: #F1C42C;
|
||||||
|
}
|
||||||
|
.color-block-7 {
|
||||||
|
background: #7BBA39;
|
||||||
|
}
|
||||||
|
.color-block-8 {
|
||||||
|
background: #7938BA;
|
||||||
|
}
|
||||||
|
.color-block-9 {
|
||||||
|
background: #3850BA;
|
||||||
|
}
|
||||||
|
.color-block-10 {
|
||||||
|
background: #51CB8F;
|
||||||
|
}
|
||||||
|
|
||||||
|
.price-container p{ margin:0 0 5px 0}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.document-container {
|
||||||
|
background:#FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.document-header{
|
||||||
|
|
||||||
|
padding:0;
|
||||||
|
position:relative;
|
||||||
|
margin:0;
|
||||||
|
border-bottom:1px solid #DDD;
|
||||||
|
min-height:137px;
|
||||||
|
text-shadow: 0 1px 0 rgba(0,0,0,.1);
|
||||||
|
background-color: #6f5499;
|
||||||
|
background-image: -webkit-gradient(linear,left top,left bottom,from(#563d7c),to(#6f5499));
|
||||||
|
background-image: -webkit-linear-gradient(top,#563d7c 0,#6f5499 100%);
|
||||||
|
background-image: -o-linear-gradient(top,#563d7c 0,#6f5499 100%);
|
||||||
|
background-image: linear-gradient(to bottom,#563d7c 0,#6f5499 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#563d7c', endColorstr='#6F5499', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
color: #cdbfe3;
|
||||||
|
border-radius:2px 2px 0 0;
|
||||||
|
}
|
||||||
|
.ie8 .document-header{
|
||||||
|
min-height:135px;
|
||||||
|
}
|
||||||
|
.document-header .img-container{
|
||||||
|
border-radius:2px 0 0 0;
|
||||||
|
position:absolute;
|
||||||
|
left:0;top:0;
|
||||||
|
|
||||||
|
}
|
||||||
|
.document-header .header-info{
|
||||||
|
padding: 0px 0 10px 246px;
|
||||||
|
line-height:30px;
|
||||||
|
min-width:500px;
|
||||||
|
}
|
||||||
|
.ie8 .document-header .header-info{
|
||||||
|
min-width:150px;
|
||||||
|
}
|
||||||
|
.document-header .header-info .appname{
|
||||||
|
font-size:16px;
|
||||||
|
line-height:35px;
|
||||||
|
color:#FFF;
|
||||||
|
}
|
||||||
|
.download-container{
|
||||||
|
position:absolute;
|
||||||
|
right:10px;top:10px;
|
||||||
|
z-index:100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.document-container {
|
||||||
|
width:100%;
|
||||||
|
margin:0;
|
||||||
|
border:none;
|
||||||
|
background:#FFF;
|
||||||
|
box-shadow:none;
|
||||||
|
overflow-x:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.document-container .document-body {
|
||||||
|
padding: 20px 0 0 0;
|
||||||
|
margin: 0 20px 0 20px;
|
||||||
|
overflow-x:hidden;
|
||||||
|
position:relative;
|
||||||
|
line-height:2;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
.document-container .document-body img.dzz-image{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
.document-container .document-Carousel {
|
||||||
|
padding: 20px 0 0 0;
|
||||||
|
margin: 0 20px 0 20px;
|
||||||
|
min-height:200px;
|
||||||
|
overflow-x:hidden;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.document-container .document-comment {
|
||||||
|
padding: 20px 0 0 0;
|
||||||
|
margin: 0 20px;
|
||||||
|
}
|
||||||
|
.document-comment .attach-item{
|
||||||
|
height:20px;
|
||||||
|
line-height:20px;
|
||||||
|
padding:0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.attach-item{
|
||||||
|
line-height:24px;
|
||||||
|
display:inline-block;
|
||||||
|
height:24px;
|
||||||
|
padding-right:8px;
|
||||||
|
}
|
||||||
|
span.attach-item img{
|
||||||
|
max-height:100%;
|
||||||
|
padding-right:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.carousel-inner>.item>img, .carousel-inner>.item>a>img{
|
||||||
|
margin:0 auto;
|
||||||
|
}
|
||||||
|
.bs-navbar-default .navbar-nav li{
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.bs-navbar-default .navbar-nav>li>a{
|
||||||
|
padding:15px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.bs-navbar-default .navbar-toggle{
|
||||||
|
margin-top:8px
|
||||||
|
}
|
||||||
|
.bs-navbar-default .navbar-form{
|
||||||
|
margin-top:8px
|
||||||
|
}
|
||||||
|
.bs-navbar-default .container-fluid>.navbar-header{
|
||||||
|
margin-right:0;
|
||||||
|
margin-left:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*12.12修改*/
|
||||||
|
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td{
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
.group-td-wrapper{
|
||||||
|
max-width:120px;
|
||||||
|
white-space:normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span {
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span>img {
|
||||||
|
margin:0;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
.tag-td-wrapper{
|
||||||
|
max-width:120px;
|
||||||
|
height: 20px;
|
||||||
|
white-space:normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.tag-td-wrapper a{
|
||||||
|
color:#666;
|
||||||
|
display:inline-block;
|
||||||
|
padding:0 2px;
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.app-info>a{
|
||||||
|
color:#999;
|
||||||
|
line-height: 34px;
|
||||||
|
}
|
||||||
|
.app-info .select-info{
|
||||||
|
position:absolute;
|
||||||
|
left:0;
|
||||||
|
top:0;
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
span.num {
|
||||||
|
color:#4A89FD;
|
||||||
|
font-weight:700;
|
||||||
|
padding:0 2px;
|
||||||
|
margin:0;
|
||||||
|
|
||||||
|
}
|
||||||
|
.main-header{
|
||||||
|
padding:5px
|
||||||
|
}
|
||||||
|
.main-header>div{
|
||||||
|
line-height:34px;
|
||||||
|
/*margin:0 5px;*/
|
||||||
|
}
|
||||||
|
.checkbox-custom{
|
||||||
|
margin-bottom:0;
|
||||||
|
margin-top:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.appname{
|
||||||
|
margin:0;
|
||||||
|
line-height:25px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.appname a{
|
||||||
|
color:#333;
|
||||||
|
font-weight:600;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
.appdesc{
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color:#999;
|
||||||
|
font-size:13px;
|
||||||
|
cursor:default;
|
||||||
|
line-height: 25px;
|
||||||
|
max-width:300px;
|
||||||
|
}
|
||||||
|
.btn-top{
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
.btn-top a{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.all-center-top{
|
||||||
|
padding: 13px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*结束*/
|
||||||
BIN
admin/appmarket/images/new.gif
Normal file
|
After Width: | Height: | Size: 589 B |
94
admin/appmarket/import.php
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
include libfile('function/admin');
|
||||||
|
include libfile('function/organization');
|
||||||
|
$do = empty($_GET['do']) ? 'available' : trim($_GET['do']);
|
||||||
|
|
||||||
|
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
|
||||||
|
$perpage = 20;
|
||||||
|
$gets = array('mod' => 'app', 'op' => 'import', 'do' => $do, );
|
||||||
|
$theurl = BASESCRIPT . "?" . url_implode($gets);
|
||||||
|
$refer = urlencode($theurl . '&page=' . $page);
|
||||||
|
|
||||||
|
$order = 'ORDER BY disp';
|
||||||
|
$start = ($page - 1) * $perpage;
|
||||||
|
$apps = array();
|
||||||
|
if ($do == 'available') {
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE available<1")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE available<1 limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
} elseif ($do == 'notinstall') {
|
||||||
|
$identifiers = C::t('app_market') -> fetch_all_identifier();
|
||||||
|
|
||||||
|
$list=search_app('dzz',$identifiers);
|
||||||
|
$list2=search_app('admin',$identifiers);
|
||||||
|
$list3=search_app('user',$identifiers);
|
||||||
|
$list=array_merge($list,$list2,$list3);
|
||||||
|
|
||||||
|
} elseif ($do == 'upgrade') {
|
||||||
|
$sql = '';
|
||||||
|
if ($group) {
|
||||||
|
$sql = " and `group` = '{$group}'";
|
||||||
|
}
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE 1 $sql")) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE 1 $sql $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$list = array();
|
||||||
|
$grouptitle = array('0' => lang('all'), '-1' => lang('visitors_visible'), '1' => lang('members_available'), '2' => lang('section_administrators_available'), '3' => lang('system_administrators_available'));
|
||||||
|
foreach ($apps as $value) {
|
||||||
|
|
||||||
|
$value['tags'] = C::t('app_relative') -> fetch_all_by_appid($value['appid']);
|
||||||
|
if ($value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
$value['appurl'] = replace_canshu($value['appurl']);
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['department'] = getDepartmentByAppid($value['appid']);
|
||||||
|
$list[] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function search_app($dir,$identifiers){
|
||||||
|
$plugindir = DZZ_ROOT . './'.$dir;
|
||||||
|
$pluginsdir = dir($plugindir);
|
||||||
|
$newplugins = array();
|
||||||
|
$list = array();
|
||||||
|
while ($entry = $pluginsdir -> read()) {
|
||||||
|
if (!in_array($entry, array('.', '..')) && is_dir($plugindir . '/' . $entry) && !in_array($entry, $identifiers)) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$dir.'/' . $entry;
|
||||||
|
$d = dir($entrydir);
|
||||||
|
$filemtime = filemtime($entrydir);
|
||||||
|
$entrytitle = $entry;
|
||||||
|
$entryversion = $entrycopyright = $importtxt = '';
|
||||||
|
if (file_exists($entrydir . '/dzz_app_' . $entry . '.xml')) {
|
||||||
|
$importtxt = @implode('', file($entrydir . '/dzz_app_' . $entry . '.xml'));
|
||||||
|
}
|
||||||
|
if ($importtxt) {
|
||||||
|
$pluginarray = getimportdata('Dzz! app', 0, 1);
|
||||||
|
if (!empty($pluginarray['plugin']['name'])) {
|
||||||
|
$pluginarray['plugin']['name'] = dhtmlspecialchars($pluginarray['plugin']['name']);
|
||||||
|
$pluginarray['plugin']['version'] = dhtmlspecialchars($pluginarray['plugin']['version']);
|
||||||
|
$pluginarray['plugin']['copyright'] = dhtmlspecialchars($pluginarray['plugin']['copyright']);
|
||||||
|
}
|
||||||
|
$list[$entry] = $pluginarray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
|
||||||
|
include template('import');
|
||||||
|
?>
|
||||||
74
admin/appmarket/index.php
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$navtitle=lang('installed').' - '.lang('appname');
|
||||||
|
include libfile('function/organization');
|
||||||
|
$op='index';
|
||||||
|
if (submitcheck('appsubmit')) {
|
||||||
|
$dels = $_GET['del'];
|
||||||
|
$allids = array();
|
||||||
|
foreach ($_GET['disp'] as $key => $value) {
|
||||||
|
if (!in_array($key, $dels))
|
||||||
|
C::t('app_market') -> update($key, array('disp' => $value));
|
||||||
|
}
|
||||||
|
//删除应用
|
||||||
|
if ($dels) {
|
||||||
|
C::t('app_market') -> delete_by_appid($dels);
|
||||||
|
}
|
||||||
|
showmessage('do_success', dreferer());
|
||||||
|
}
|
||||||
|
//获取所有标签top50;
|
||||||
|
$tags = DB::fetch_all("SELECT * FROM %t WHERE `hot`>0 ORDER BY HOT DESC limit 50", array('app_tag'),'tagid');
|
||||||
|
|
||||||
|
$keyword = trim($_GET['keyword']);
|
||||||
|
$tagid = intval($_GET['tagid']);
|
||||||
|
$group = intval($_GET['group']);
|
||||||
|
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
|
||||||
|
$perpage = 20;
|
||||||
|
$gets = array('mod' => 'appmarket', 'keyword' => $keyword, 'tagid' => $tagid, 'group' => $group);
|
||||||
|
$theurl = BASESCRIPT . "?" . url_implode($gets);
|
||||||
|
$refer = urlencode($theurl . '&page=' . $page);
|
||||||
|
|
||||||
|
$order = ' ORDER BY disp';
|
||||||
|
$start = ($page - 1) * $perpage;
|
||||||
|
$apps = array();
|
||||||
|
$string = " 1 and `system`<1 ";
|
||||||
|
if ($keyword) {
|
||||||
|
$string .= " and appname like '%$keyword%' or vendor like '%$keyword%'";
|
||||||
|
}
|
||||||
|
if ($tagid) {
|
||||||
|
$appids = C::t('app_relative') -> fetch_appids_by_tagid($tagid);
|
||||||
|
$string .= " and appid IN (" . dimplode($appids) . ")";
|
||||||
|
}
|
||||||
|
if ($group) {
|
||||||
|
$sql = " and `group` = '{$group}'";
|
||||||
|
$string .= " and `group` = '{$group}'";
|
||||||
|
}
|
||||||
|
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('app_market') . " WHERE ".$string)) {
|
||||||
|
$apps = DB::fetch_all("SELECT * FROM " . DB::table('app_market') . " WHERE ".$string." $order limit $start,$perpage");
|
||||||
|
$multi = multi($count, $perpage, $page, $theurl, 'pull-right');
|
||||||
|
}
|
||||||
|
|
||||||
|
$list = array();
|
||||||
|
$grouptitle = array('0' => lang('all'), '-1' => lang('visitors_visible'), '1' => lang('members_available'), '2' => lang('section_administrators_available'), '3' => lang('system_administrators_available'));
|
||||||
|
foreach ($apps as $value) {
|
||||||
|
$value['tags'] = C::t('app_relative') -> fetch_all_by_appid($value['appid']);
|
||||||
|
if ($value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
$value['appurl'] = replace_canshu($value['appurl']);
|
||||||
|
$value['appadminurl'] = replace_canshu($value['appadminurl']);
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['department'] = getDepartmentByAppid($value['appid']);
|
||||||
|
$list[] = $value;
|
||||||
|
}
|
||||||
|
include template('index');
|
||||||
|
?>
|
||||||
453
admin/appmarket/install_app_ajax.php
Normal file
@@ -0,0 +1,453 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author qchlian 3580164@qq.com
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
@set_time_limit(0);
|
||||||
|
include_once DZZ_ROOT . './core/core_version.php';
|
||||||
|
include_once libfile('function/admin');
|
||||||
|
include_once libfile('function/cache');
|
||||||
|
include_once libfile('function/appmarket');
|
||||||
|
$step = intval($_GET['step']);
|
||||||
|
$op = $_GET['op'];
|
||||||
|
$step = $step ? $step : 1;
|
||||||
|
$operation = $_GET['operation'] ? trim($_GET['operation']) : 'upgrade';
|
||||||
|
header('Content-type:text/json');
|
||||||
|
$steplang = array('', lang('founder_upgrade_updatelist'), lang('founder_upgrade_download'), lang('founder_upgrade_compare'), lang('founder_upgrade_upgrading'), lang('founder_upgrade_complete'), 'dbupdate' => lang('founder_upgrade_dbupdate'));
|
||||||
|
if ($operation == 'check_install' ) {//根据appid检查app应用是否需要更新
|
||||||
|
$baseinfo = $_GET["baseinfo"];
|
||||||
|
$baseinfo = base64_decode($baseinfo);
|
||||||
|
$baseinfo = unserialize($baseinfo);
|
||||||
|
//$map["identifier"]=$baseinfo["identifier"];
|
||||||
|
//$map["app_path"]=$baseinfo["app_path"];
|
||||||
|
$map["mid"]=$baseinfo["mid"];
|
||||||
|
if( !$baseinfo || $baseinfo["identifier"]==""){
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang("app_upgrade_identifier_error");
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
//根据当前版本查询是否达到安装条件
|
||||||
|
$dbversion= helper_dbtool::dbversion();
|
||||||
|
$dzzversion = CORE_VERSION;
|
||||||
|
if(version_compare($baseinfo['dzzversion'], $dzzversion) > 0 ) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_dzzversion_error', array('version' => $baseinfo['dzzversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
if( version_compare($baseinfo['phpversion'], PHP_VERSION) > 0 ) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_phpversion_error', array('version' => $baseinfo['phpversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
if( version_compare($baseinfo['mysqlversion'], $dbversion) > 0) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_mysqlversion_error', array('version' => $baseinfo['mysqlversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
$time =dgmdate(TIMESTAMP,'Ymd');
|
||||||
|
|
||||||
|
$appinfo = DB::result_first("select COUNT(*) from %t where mid=%d",array('app_market',$baseinfo['mid']));//C::tp_t('app_market')->where($map)->find();
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod='.MOD_NAME.'&op=install_app_ajax',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>5,
|
||||||
|
"second"=>1,
|
||||||
|
"msg"=>lang("app_upgrade_check_is_install")
|
||||||
|
);
|
||||||
|
//start 处理检查是否已有该目录
|
||||||
|
$isinstall=0;
|
||||||
|
$app_folder=DZZ_ROOT.'./'.$baseinfo['app_path'].'/'.$baseinfo['identifier'];
|
||||||
|
if( is_dir($app_folder) ){
|
||||||
|
$isinstall=1;
|
||||||
|
$xmlfile = 'dzz_app_' . $baseinfo['identifier'] . '.xml';
|
||||||
|
$importfile = $app_folder . '/' . $xmlfile;
|
||||||
|
if ( file_exists($importfile) ) {
|
||||||
|
$importtxt = @implode('', file($importfile));
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 0, $importtxt);
|
||||||
|
$mid = isset($apparray['app']['mid'])?intval($apparray['app']['mid']):0;
|
||||||
|
if( $mid==$baseinfo['mid'] ){
|
||||||
|
$isinstall=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//end处理检查是否已有该目录
|
||||||
|
|
||||||
|
if( $appinfo || $isinstall){
|
||||||
|
$return["status"]=0;
|
||||||
|
if($appinfo){
|
||||||
|
$return["msg"]= lang("app_upgrade_installed");
|
||||||
|
}else{
|
||||||
|
$return["msg"]= lang( $baseinfo["app_path"]."/".$baseinfo["identifier"].lang('directory_overwriting') );
|
||||||
|
}
|
||||||
|
/*if( $appinfo["mid"]==0 ){
|
||||||
|
$return["msg"]= lang("app_upgrade_installed_local");
|
||||||
|
}*/
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除安装临时文件
|
||||||
|
$temp_download=DZZ_ROOT.'./data/update/app/'.$baseinfo['app_path'].'/'.$baseinfo['identifier'];
|
||||||
|
removedirectory($temp_download);
|
||||||
|
exit(json_encode($return));//未安装
|
||||||
|
}
|
||||||
|
elseif($operation == 'upgrade' ){
|
||||||
|
$baseinfo = $_GET["baseinfo"];
|
||||||
|
$baseinfo = base64_decode($baseinfo);
|
||||||
|
$baseinfo = unserialize($baseinfo);
|
||||||
|
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod=appmarket&op=cloudappmarket',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>10,
|
||||||
|
"second"=>1,
|
||||||
|
"msg"=>lang('prepare_installation')
|
||||||
|
);
|
||||||
|
|
||||||
|
$release ="";
|
||||||
|
$charset = str_replace('-', '', strtoupper($_G['config']['output']['charset']));
|
||||||
|
$locale = '';
|
||||||
|
if ($charset == 'BIG5') {
|
||||||
|
$locale = 'TC';
|
||||||
|
} elseif ($charset == 'GBK') {
|
||||||
|
$locale = 'SC';
|
||||||
|
} elseif ($charset == 'UTF8') {
|
||||||
|
if ($_G['config']['output']['language'] == 'zh-cn' || $_G['config']['output']['language'] == 'zh_cn') {
|
||||||
|
$locale = 'SC';
|
||||||
|
} elseif ($_G['config']['output']['language'] == 'zh-tw' || $_G['config']['output']['language'] == 'zh_tw') {
|
||||||
|
$locale = 'TC';
|
||||||
|
}else{
|
||||||
|
$locale = 'SC';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$dbversion = helper_dbtool::dbversion();
|
||||||
|
//判断是否升级mysql 或者php
|
||||||
|
$charset='UTF8';
|
||||||
|
if(version_compare($baseinfo['phpversion'], PHP_VERSION) > 0 || version_compare($baseinfo['mysqlversion'], $dbversion) > 0) {
|
||||||
|
$return["status"]=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=install_app_ajax&operation=patch&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
elseif($operation == 'cross' || $operation == 'patch'){
|
||||||
|
$baseinfo = $_GET["baseinfo"];
|
||||||
|
$baseinfo = base64_decode($baseinfo);
|
||||||
|
$baseinfo = unserialize($baseinfo);
|
||||||
|
$baseinfo["latestversion"] = $baseinfo["version"];
|
||||||
|
$baseinfo["upgradeinfo"]=$baseinfo;
|
||||||
|
$appinfo =$baseinfo;
|
||||||
|
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod=appmarket&op=install_app_ajax',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>10,
|
||||||
|
"second"=>1,
|
||||||
|
"step"=>0,
|
||||||
|
"msg"=>lang('Application_acquisition')
|
||||||
|
);
|
||||||
|
|
||||||
|
if (0 && !$_G['setting']['bbclosed']) {//应用升级暂时可不关闭站点
|
||||||
|
$msg = '<p style="margin:10px 0;color:red">' . lang('upgrade_close_site') . '</p>';
|
||||||
|
$msg .= '<p style="margin:10px 0"><input type="button" class="btn btn-primary" onclick="window.location.reload();" value="' . lang('founder_upgrade_reset') . '" /></p>';
|
||||||
|
$msg .= "<p style=\"margin:10px 0\"><script type=\"text/javascript\">";
|
||||||
|
$msg .= "if(history.length > (BROWSER.ie ? 0 : 1)) document.write('<a href=\"javascript:history.go(-1);\" >" . lang('message_return') . "</a>');";
|
||||||
|
$msg .= "</script></p>";
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('upgrade_close_site') ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$step = intval($_REQUEST['step']);
|
||||||
|
$step = $step ? $step : 1;
|
||||||
|
|
||||||
|
$release = trim($_GET['release']);
|
||||||
|
$locale = trim($_GET['locale']);
|
||||||
|
$charset = trim($_GET['charset']);
|
||||||
|
|
||||||
|
/*$upgradeinfo = $upgrade_step = array();
|
||||||
|
|
||||||
|
$appid = $_GET["appid"];
|
||||||
|
$appinfo = C::tp_t('app_market')->find( $appid );
|
||||||
|
|
||||||
|
$upgrade_version = unserialize($appinfo["upgrade_version"]);
|
||||||
|
$upgradeinfo = $upgrade_version[$operation];
|
||||||
|
$appinfo["upgradeinfo"]=$upgradeinfo;*/
|
||||||
|
|
||||||
|
$dzz_upgrade = new dzz_upgrade_app();
|
||||||
|
if($step != 5) {
|
||||||
|
//$updatefilelist = $dzz_upgrade->fetch_installfile_list( $baseinfo );
|
||||||
|
$theurl = ADMINSCRIPT . '?mod=appmarket&op=install_app_ajax&operation=' . $operation .'&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($step == 1) {
|
||||||
|
$linkurl=$theurl. '&step=2';
|
||||||
|
$return["percent"]=15;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["msg"]=lang('Application_downloaded');
|
||||||
|
$return["step"]=2;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif($step == 2) {
|
||||||
|
//start 下载zip.md5
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_installapp_zip( $baseinfo );
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_none', array('upgradeurl' => upgradeinformation_app(-1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
$updatemd5filelist = $updatefilelist['md5'];
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
//end
|
||||||
|
|
||||||
|
$return["msg"]=lang("app_upgrade_downloading");
|
||||||
|
$return["step"]=2;
|
||||||
|
$percent = 60;
|
||||||
|
|
||||||
|
$fileseq = intval($_GET['fileseq']);
|
||||||
|
$fileseq = $fileseq ? $fileseq : 1;
|
||||||
|
$position = intval($_GET['position']);
|
||||||
|
$position = $position ? $position : 0;
|
||||||
|
$offset = 1024 * 1024;
|
||||||
|
$packagesize = $baseinfo["packagesize"];
|
||||||
|
if($fileseq > count($updatefilelist)) {
|
||||||
|
$linkurl = $theurl.'&step=3';
|
||||||
|
$percent = 100;
|
||||||
|
$return["step"]=3;
|
||||||
|
$return["msg"]= lang('app_upgrade_download_complete', array('upgradeurl' => upgradeinformation_app(6)));
|
||||||
|
} else {
|
||||||
|
$downloadstatus = $dzz_upgrade->download_file($baseinfo, $updatefilelist[$fileseq-1], '', $updatemd5filelist[$fileseq-1] , $position, $offset);
|
||||||
|
if($downloadstatus == 1) {
|
||||||
|
$linkurl = $theurl.'&step=2&fileseq='.$fileseq.'&position='.($position+$offset);
|
||||||
|
$percent = 60+ sprintf("%2d", 40 * $position/$packagesize);//60+sprintf("%2d", 40 * $fileseq/count($updatefilelist));
|
||||||
|
$file = $updatefilelist[$fileseq-1];
|
||||||
|
} elseif($downloadstatus == 2) {
|
||||||
|
$linkurl = $theurl.'&step=2&fileseq='.($fileseq+1);
|
||||||
|
$percent = 60+ sprintf("%2d", 40 * $position/$packagesize);//60+sprintf("%2d", 40 * $fileseq/count($updatefilelist));
|
||||||
|
$file = $updatefilelist[$fileseq-1];
|
||||||
|
} else {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_downloading_error', array('file' => $updatefilelist[$fileseq-1], 'upgradeurl'=>upgradeinformation_app(-3) )) ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$msg = lang('upgrade_downloading_file', array('file' => $updatefilelist[$fileseq - 1], 'percent' =>$percent. '%' ,'upgradeurl'=>'')) ;
|
||||||
|
}
|
||||||
|
$stepover= 1;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=intval(50*$percent/100);
|
||||||
|
$return["second"]=1;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step == 3) {
|
||||||
|
$return["percent"]=55;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["msg"]= lang("app_upgrade_check_download_complete");
|
||||||
|
$return["step"]=3;
|
||||||
|
//此处应下载压缩包内文件的md5文件
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_installfile_list( $baseinfo );
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_none', array('upgradeurl' => upgradeinformation_app(-1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
//解压压缩包
|
||||||
|
$zippath= DZZ_ROOT . 'data/update/app/'.$baseinfo["app_path"].'/'.$baseinfo["identifier"].'/'.$baseinfo['version'].'/';
|
||||||
|
$zipfile=$zippath.$baseinfo["identifier"].".zip";
|
||||||
|
$md5file =$zippath.$baseinfo["identifier"].".md5.dzz";
|
||||||
|
dzzunzip($zipfile,$zippath,$md5file);
|
||||||
|
|
||||||
|
|
||||||
|
$linkurl = $theurl.'&step=4';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step==4){
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["msg"]= lang("app_upgrade_installing");
|
||||||
|
$return["step"]=4;
|
||||||
|
|
||||||
|
//start 下载更新文件的.md5
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_installfile_list( $baseinfo );
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
//end
|
||||||
|
|
||||||
|
|
||||||
|
$confirm = $_GET['confirm'];
|
||||||
|
if (!$confirm) {
|
||||||
|
$checkupdatefilelist = $updatefilelist;
|
||||||
|
if ($dzz_upgrade -> check_folder_perm($baseinfo,$checkupdatefilelist)) {
|
||||||
|
$confirm = 'file';
|
||||||
|
} else {
|
||||||
|
$linkurl = $theurl . '&step=4';
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["percent"]=55;
|
||||||
|
$return["second"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_cannot_access_file', array('upgradeurl' => upgradeinformation_app(-4)));
|
||||||
|
$return["step"]=1;
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$paraftp = '';
|
||||||
|
if ($_GET['siteftp']) {
|
||||||
|
foreach ($_GET['siteftp'] as $k => $v) {
|
||||||
|
$paraftp .= '&siteftp[' . $k . ']=' . $v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$_GET['fileupgrade']) {
|
||||||
|
foreach ($updatefilelist as $updatefile) {
|
||||||
|
$srcfile = DZZ_ROOT . 'data/update/app/'.$baseinfo["app_path"].'/'.$baseinfo["identifier"].'/'.$baseinfo['version'].'/'.$updatefile;
|
||||||
|
if ($confirm == 'ftp') {//待测试
|
||||||
|
$destfile = $updatefile;
|
||||||
|
} else {
|
||||||
|
$destfile = DZZ_ROOT .$baseinfo['app_path'].'/' . $baseinfo['identifier'].'/'.$updatefile;
|
||||||
|
if( isset( $baseinfo["new_identifier"]) && $baseinfo["new_identifier"] ){
|
||||||
|
$destfile = DZZ_ROOT .$baseinfo['app_path'].'/' . $baseinfo['new_identifier'].'/'.$updatefile;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$dzz_upgrade -> copy_file($srcfile, $destfile, $confirm)) {
|
||||||
|
if ($confirm == 'ftp') {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_ftp_upload_error', array('file'=>$updatefile,'upgradeurl' => upgradeinformation_app(-6)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
} else {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["file"]=array($srcfile,$destfile);
|
||||||
|
$return["msg"]=lang('app_upgrade_copy_error', array('file'=>$updatefile,'upgradeurl' => upgradeinformation_app(-7)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//移动md5文件
|
||||||
|
$srcfile = DZZ_ROOT . 'data/update/app/'.$baseinfo["app_path"].'/'.$baseinfo['identifier'].'/'.$baseinfo['version'].'/'.$baseinfo['identifier'].'.md5.tmp';
|
||||||
|
if ($confirm == 'ftp') {
|
||||||
|
$destfile = './'.$baseinfo['identifier'].'.md5';
|
||||||
|
} else {
|
||||||
|
$destfile = DZZ_ROOT .$baseinfo['app_path'].'/' . $baseinfo['identifier'].'/'.$baseinfo['identifier'].'.md5';
|
||||||
|
if( isset( $baseinfo["new_identifier"]) && $baseinfo["new_identifier"] ){
|
||||||
|
$destfile = DZZ_ROOT .$baseinfo['app_path'].'/' . $baseinfo['new_identifier'].'/'.$baseinfo['new_identifier'].'.md5';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$dzz_upgrade -> copy_file($srcfile, $destfile, $confirm)) {
|
||||||
|
if ($confirm == 'ftp') {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_copy_error', array('file'=>$baseinfo['identifier'].'.md5.tmp','upgradeurl' => upgradeinformation_app(-6)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_copy_error', array('file'=>$baseinfo['identifier'].'.md5.tmp','upgradeurl' => upgradeinformation_app(-7)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$return["url"]= $theurl . '&step=4&fileupgrade=1&dodabase=1&confirm=' . $confirm;
|
||||||
|
$return["percent"]=75;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["msg"]= lang('app_upgrade_move_success', array( 'upgradeurl' => upgradeinformation_app(4)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($_GET['dodabase']){
|
||||||
|
$finish = FALSE;
|
||||||
|
$dir = $baseinfo['app_path'];
|
||||||
|
$appname = $baseinfo['identifier'];
|
||||||
|
if( isset( $baseinfo["new_identifier"]) && $baseinfo["new_identifier"] ){
|
||||||
|
$appname = $baseinfo['new_identifier'];
|
||||||
|
}
|
||||||
|
$xmlfile = 'dzz_app_' . $appname . '.xml';
|
||||||
|
$importfile = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $xmlfile;
|
||||||
|
|
||||||
|
if (!file_exists($importfile)) {
|
||||||
|
$importfile2 = DZZ_ROOT . './'.$dir.'/' . $appname . '/dzz_app_' . $baseinfo['identifier'] . '.xml';
|
||||||
|
if(!file_exists($importfile2)){
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("app_upgrade_xmlfile_error" ,array('file'=>$xmlfile,'upgradeurl' => upgradeinformation_app(-8)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}else{
|
||||||
|
@rename($importfile2,$importfile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$importtxt = @implode('', file($importfile));
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
|
||||||
|
$filename = isset($apparray['app']['extra']['installfile'])?$apparray['app']['extra']['installfile']:'';
|
||||||
|
if (!empty($filename) && preg_match('/^[\w\.]+$/', $filename)) {
|
||||||
|
$filename = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $filename;
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include_once $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
//安装时保存云端mid
|
||||||
|
$apparray["app"]["mid"]=$baseinfo["mid"];
|
||||||
|
//保存对应的应用名及应用地址
|
||||||
|
if( isset( $baseinfo["new_identifier"]) && $baseinfo["new_identifier"] ){
|
||||||
|
$apparray['app']['identifier']=$baseinfo['new_identifier'];
|
||||||
|
$apparray['app']['appurl']= str_replace("mod=".$baseinfo['identifier'],"mod=".$baseinfo['new_identifier'],$apparray['app']['appurl']);
|
||||||
|
$apparray['app']['appadminurl']= str_replace("mod=".$baseinfo['identifier'],"mod=".$baseinfo['new_identifier'],$apparray['app']['appadminurl']);
|
||||||
|
$apparray['app']['noticeurl']= str_replace("mod=".$baseinfo['identifier'],"mod=".$baseinfo['new_identifier'],$apparray['app']['noticeurl']);
|
||||||
|
$apparray['app']['identifier']= $baseinfo['new_identifier'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($app = importByarray($apparray, 1)) {
|
||||||
|
cron_create( $app );
|
||||||
|
}
|
||||||
|
writelog('otherlog', lang('install_app').$apparray['app']['appname']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=install_app_ajax&operation=' . $operation .'&step=5';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]= lang("app_upgrade_install_will_success");
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=install_app_ajax&operation=' . $operation . '&appid=' .$appid. '&step=5';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]=lang("app_upgrade_install_will_success");
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step==5){
|
||||||
|
//判断如果是网址类型删除对应目录
|
||||||
|
if( $baseinfo["atype"]==1 && $baseinfo['app_path'] && $baseinfo['app_path']=="link"){ //防止删除整个目录直接判断=link
|
||||||
|
$dzz_upgrade->rmdirs( DZZ_ROOT .$baseinfo['app_path']."/" );
|
||||||
|
}
|
||||||
|
updatecache('setting');
|
||||||
|
|
||||||
|
$return["url"] = ADMINSCRIPT . '?mod=appmarket&op=install_app_ajax&operation=check_install';
|
||||||
|
$return["percent"]=100;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]= lang("app_upgrade_install_success" ,array( 'upgradeurl' => upgradeinformation_app(1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
97
admin/appmarket/language/en-US/lang.php
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
<?php
|
||||||
|
$lang = array (
|
||||||
|
'appmarket' => 'Application market',
|
||||||
|
'installed' => 'installed',
|
||||||
|
'upgrade' => 'Upgrade',
|
||||||
|
'open_way'=>'Open mode',
|
||||||
|
'permission_management'=>'Authority management',
|
||||||
|
'system_cant_disable'=>'System apps cannot use this action',
|
||||||
|
'app_newest'=>'Scalable app',
|
||||||
|
'new_edition_function'=>'New features',
|
||||||
|
'enable_file_disappear'=>'Application open execution script file missing',
|
||||||
|
'app'=>'application',
|
||||||
|
'ge'=>'one',
|
||||||
|
'selected'=>'chosen',
|
||||||
|
'update_onekey'=>'One-click upgrade',
|
||||||
|
'install_onekey'=>'A key installation',
|
||||||
|
'appname'=>'Application market',
|
||||||
|
'no_need_update_applist'=>'No apps to update',
|
||||||
|
'appInLocal'=>'Local application',
|
||||||
|
'app_upgrade_uninstall_successful'=>'Application uninstallation is successful!{upgradeurl}',
|
||||||
|
'app_upgrade_check_need_update2' => 'Detect new version',
|
||||||
|
|
||||||
|
'app_upgrade_check_is_install' => 'Check if it is installed...',
|
||||||
|
'app_upgrade_check_need_update' => 'Detect new version...',
|
||||||
|
'app_upgrade_to_lastversion' => 'Already the latest version',
|
||||||
|
'app_upgrade_installed' => 'The app is already installed',
|
||||||
|
'app_upgrade_installed_local' => 'Installed local app conflicts with the app',
|
||||||
|
'app_upgrade_identifier_error' => 'Application ID is empty',
|
||||||
|
'app_upgrade_dzzversion_error' => 'oaooa version requirements: {version}',
|
||||||
|
'app_upgrade_phpversion_error' => 'Php version requirements: {version}',
|
||||||
|
'app_upgrade_mysqlversion_error' => 'Mysql Version requirements: {version}',
|
||||||
|
'app_upgrade_newversion_will_start'=>'Upgrade is about to begin',
|
||||||
|
'app_upgrade_newversioninfo_error'=>'The version information is empty. Please check the update again.',
|
||||||
|
'app_upgrade_newversion_folder_error'=> 'The new version of the directory already exists:{path}',
|
||||||
|
'app_upgrade_newversion_start'=> 'The upgrade begins...',
|
||||||
|
'app_upgrade_newversion_ing'=> 'upgrading...',
|
||||||
|
|
||||||
|
'app_upgrade_data_error' => 'Data error, please refresh and try again',
|
||||||
|
'app_upgrade_none' => 'Installation or update file missing {upgradeurl}', //-1
|
||||||
|
'app_upgrade_exchange_none' => 'No verification file exists {upgradeurl}',//-9
|
||||||
|
'app_upgrade_downloading' => 'To be updated or installed in the file download...',
|
||||||
|
'app_upgrade_downloading_error' => 'There is a problem with the file {file} download, please ensure that the network connection and data directory write permission {upgradeurl}',//-3
|
||||||
|
'app_upgrade_download_complete' => 'Pending update or installation file download completed {upgradeurl}',//-2
|
||||||
|
'app_upgrade_download_complete_to_compare' => 'To be updated or the installation file is downloaded, the local file comparison will be performed {upgradeurl}', //待修改,,,,
|
||||||
|
'app_upgrade_downloading_file' => 'Downloading update file from official {file} <br>completed {percent} {upgradeurl}',
|
||||||
|
'app_upgrade_check_download_complete' => 'Check application download integrity...',
|
||||||
|
'app_upgrade_installing' => 'Application file installation...',
|
||||||
|
'app_upgrade_cannot_access_file' => 'Directory and files have no modification rights, please fill in the ftp account or modify the file permissions to read and write and try again {upgradeurl}',//-4
|
||||||
|
'app_upgrade_ftp_upload_error' => 'Ftp upload file {file} error, please modify file permissions and re-upload or reset ftp account {upgradeurl}',//-6
|
||||||
|
'app_upgrade_copy_error' => 'Error copying file {file}, please check if the original file exists, re-copy or upload the copied file via ftp {upgradeurl}',//-7
|
||||||
|
'app_upgrade_move_success' => 'Application file copying is complete... imminently entering the database installation {upgradeurl}',
|
||||||
|
'app_upgrade_xmlfile_error'=> 'Application file {file} is missing {upgradeurl}',//-8
|
||||||
|
'app_upgrade_install_will_success' => 'Installation is almost complete...',
|
||||||
|
'app_upgrade_install_success' => 'Successful installation Please go to the installed list to launch the app {upgradeurl}',//1
|
||||||
|
'app_upgrade_already_downloadfile' => 'Prepare to download the update file...',
|
||||||
|
'app_upgrade_backuping' => 'Backing up the original file... {upgradeurl}', //2
|
||||||
|
'app_upgrade_backup_error' => 'Error backing up the original file {upgradeurl}',//-5
|
||||||
|
'app_upgrade_backup_complete' => 'Backup is complete, upgrade is in progress... {upgradeurl}',//3
|
||||||
|
'app_upgrade_file_success' => 'The file upgrade is successful and will enter the update database. {upgradeurl}',//4
|
||||||
|
'app_upgrade_database_success' => 'Update database successfully {upgradeurl}',//5
|
||||||
|
'app_upgrade_newversion_will_success' => 'Phase upgrade is almost complete...',
|
||||||
|
'app_upgrade_newversion_success' => 'update successed{upgradeurl}',//1
|
||||||
|
|
||||||
|
'application_identifier'=>'Application identifier',
|
||||||
|
'app_application_identifier_text'=>'<li>Apply unique identifier, please enter the English alphabet string, generally use the directory name of the corresponding application (English).</li>
|
||||||
|
<li>If you encounter a duplicate name through online installation, it will be automatically renamed.</li>',
|
||||||
|
'not_empty'=>'Can not be empty',
|
||||||
|
'already_exist'=>'existed',
|
||||||
|
'application_app_path'=>'Application path',
|
||||||
|
'app_application_app_path_text'=>'<li>The path relative to the root of the site. If the path of the thing application relative to the root of the site is ./dzz/thame, then fill in the field. dzz </li>
|
||||||
|
<li>If the application is a link type, fill in the string without a path link </li>',
|
||||||
|
'application_appadminurl'=>'Management settings address',
|
||||||
|
'app_application_appadminurl_text'=>'<li>Manage settings address, which can be a relative address (relative to the site root) or a network address</li>
|
||||||
|
<li>The address of the application can have parameters such as:{dzzscript}?mod=document&op=textviewer&icoid={icoid}</li>
|
||||||
|
<li>Parameters: wrap the parameters in the address with "{}", dzzscript: the main program (ie index.php), adminscript: the main program for the background management (ie admin.php), use this parameter to add the application when adding the application Compatibility and portability</li>
|
||||||
|
<li>Fields in the dzz_resources table can be brought in as parameters</li>',
|
||||||
|
'app_delete_confirm'=>'This will delete the app: <b>{appname}</b> All data, please be careful<br /><br />If you really need to delete, please enter DELETE below to confirm the deletion.',
|
||||||
|
'app_sure_delete'=>'Determine uninstall application',
|
||||||
|
'app_not_delete'=>'Do not uninstall',
|
||||||
|
'installed'=>'Installed',
|
||||||
|
'newest'=>'up to date',
|
||||||
|
'buy'=>'buy',
|
||||||
|
'view_detail'=>'View details',
|
||||||
|
'buy_contract'=>'Contact purchase',
|
||||||
|
'manual_install_tip'=>'Note: If you cannot install online, please pass <a class="num" href="http://help.oaooa.com/index.php?mod=dzzmarket" target="_blank">Official application market</a> Download application installation package manually download',
|
||||||
|
'no_new_updates_were_detected'=>'No new updates detected',
|
||||||
|
'upgrading_in_progress_please_wait_a_minute'=>'Upgrading, please wait...',
|
||||||
|
'open_app'=>'Open app',
|
||||||
|
'install_app'=>'Install app',
|
||||||
|
'directory_overwriting'=>'The directory already exists, please rename the directory or remove it to prevent duplication or overwriting',
|
||||||
|
'prepare_installation'=>'Prepare before installation...',
|
||||||
|
'Application_acquisition'=>'Application file list acquisition...',
|
||||||
|
'Application_downloaded'=>'Application file will be downloaded soon...',
|
||||||
|
'Update_application'=>'Update application',
|
||||||
|
'not_exist'=>'Application does not exist'
|
||||||
|
);
|
||||||
|
?>
|
||||||
98
admin/appmarket/language/zh-CN/lang.php
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<?php
|
||||||
|
$lang = array (
|
||||||
|
'appmarket' => '应用市场',
|
||||||
|
'installed' => '已安装',
|
||||||
|
'upgrade' => '升级',
|
||||||
|
'open_way'=>'打开方式',
|
||||||
|
'permission_management'=>'权限管理',
|
||||||
|
'system_cant_disable'=>'系统应用不能使用该操作',
|
||||||
|
'app_newest'=>'可升级应用',
|
||||||
|
'new_edition_function'=>'新版功能',
|
||||||
|
'enable_file_disappear'=>'应用开启执行脚本文件丢失',
|
||||||
|
'app'=>'应用',
|
||||||
|
'ge'=>'个',
|
||||||
|
'selected'=>'已选择',
|
||||||
|
'update_onekey'=>'一键升级',
|
||||||
|
'install_onekey'=>'一键安装',
|
||||||
|
'appname'=>'应用市场',
|
||||||
|
'no_need_update_applist'=>'没有需要更新的应用',
|
||||||
|
'appInLocal'=>'本地应用',
|
||||||
|
'app_upgrade_uninstall_successful'=>'应用卸载成功! {upgradeurl}',
|
||||||
|
'app_upgrade_check_need_update2' => '检测新版本',
|
||||||
|
|
||||||
|
'app_upgrade_check_is_install' => '检测是否已安装...',
|
||||||
|
'app_upgrade_check_need_update' => '检测新版本...',
|
||||||
|
'app_upgrade_to_lastversion' => '已为最新版本',
|
||||||
|
'app_upgrade_installed' => '已安装该应用',
|
||||||
|
'app_upgrade_installed_local' => '已安装本地应用与该应用冲突',
|
||||||
|
'app_upgrade_identifier_error' => '应用标识为空',
|
||||||
|
'app_upgrade_dzzversion_error' => 'oaooa版本要求: {version}',
|
||||||
|
'app_upgrade_phpversion_error' => 'php版本要求: {version}',
|
||||||
|
'app_upgrade_mysqlversion_error' => 'Mysql版本要求: {version}',
|
||||||
|
'app_upgrade_newversion_will_start'=>'升级即将开始',
|
||||||
|
'app_upgrade_newversioninfo_error'=>'版本信息为空,请重新检测更新',
|
||||||
|
'app_upgrade_newversion_folder_error'=> '新版目录已存在:{path}',
|
||||||
|
'app_upgrade_newversion_start'=> '升级开始...',
|
||||||
|
'app_upgrade_newversion_ing'=> '正在升级...',
|
||||||
|
|
||||||
|
'app_upgrade_data_error' => '数据错误请刷新后再试',
|
||||||
|
'app_upgrade_none' => '安装或更新文件丢失 {upgradeurl}', //-1
|
||||||
|
'app_upgrade_exchange_none' => '不存在校验文件 {upgradeurl}',//-9
|
||||||
|
'app_upgrade_downloading' => '待更新或安装文件下载中...',
|
||||||
|
'app_upgrade_downloading_error' => '文件 {file} 下载出现问题,请确保网络连接及data目录写入权限 {upgradeurl}',//-3
|
||||||
|
'app_upgrade_download_complete' => '待更新或安装文件下载完成 {upgradeurl}',//-2
|
||||||
|
'app_upgrade_download_complete_to_compare' => '待更新或安装文件下载完成,即将进行本地文件比较 {upgradeurl}', //待修改,,,,
|
||||||
|
'app_upgrade_downloading_file' => '正在从官方下载更新文件 {file} <br>已完成{percent} {upgradeurl}',
|
||||||
|
'app_upgrade_check_download_complete' => '检查应用下载完整性...',
|
||||||
|
'app_upgrade_installing' => '应用文件安装中...',
|
||||||
|
'app_upgrade_cannot_access_file' => '目录及文件无修改权限,请您填写 ftp 账号或修改文件权限为可读可写后重试 {upgradeurl}',//-4
|
||||||
|
'app_upgrade_ftp_upload_error' => 'ftp上传文件 {file} 出错, 请修改文件权限后重新上传 或 重新设置ftp账号 {upgradeurl}',//-6
|
||||||
|
'app_upgrade_copy_error' => '复制文件 {file} 出错,请检测原始文件是否存在,重新复制 或 通过ftp上传复制文件 {upgradeurl}',//-7
|
||||||
|
'app_upgrade_move_success' => '应用文件复制完成...即将进入数据库安装 {upgradeurl}',
|
||||||
|
'app_upgrade_xmlfile_error'=> '应用文件 {file} 丢失 {upgradeurl}',//-8
|
||||||
|
'app_upgrade_install_will_success' => '安装即将完成...',
|
||||||
|
'app_upgrade_install_success' => '已成功安装请到已安装列表启动该应用 {upgradeurl}',//1
|
||||||
|
'app_upgrade_already_downloadfile' => '准备下载更新文件...',
|
||||||
|
'app_upgrade_backuping' => '正在备份原始文件... {upgradeurl}', //2
|
||||||
|
'app_upgrade_backup_error' => '备份原始文件出错 {upgradeurl}',//-5
|
||||||
|
'app_upgrade_backup_complete' => '备份完成,正在进行升级... {upgradeurl}',//3
|
||||||
|
'app_upgrade_file_success' => '文件升级成功,即将进入更新数据库 {upgradeurl}',//4
|
||||||
|
'app_upgrade_database_success' => '更新数据库成功 {upgradeurl}',//5
|
||||||
|
'app_upgrade_newversion_will_success' => '阶段升级即将完成...',
|
||||||
|
'app_upgrade_newversion_success' => '升级成功 {upgradeurl}',//1
|
||||||
|
|
||||||
|
'application_identifier'=>'应用标识',
|
||||||
|
'app_application_identifier_text'=>'<li>应用唯一标识,请输入英文字母字符串,一般取用对应应用的目录名称(英文)。</li>
|
||||||
|
<li>如通过在线安装碰到重名时会自动重命名。</li>',
|
||||||
|
'not_empty'=>'不能为空',
|
||||||
|
'already_exist'=>'已存在',
|
||||||
|
'application_app_path'=>'应用路径',
|
||||||
|
'app_application_app_path_text'=>'<li>相对于站点根目录的路径。如thame应用相对于站点根目录的路径是 ./dzz/thame,则该字段填写 dzz </li>
|
||||||
|
<li>如应用为链接类型,无路径则填写字符串 link </li>',
|
||||||
|
'application_appadminurl'=>'管理设置地址',
|
||||||
|
'app_application_appadminurl_text'=>'<li>管理设置地址,可以是相对地址(相对于站点根目录)或网络地址</li>
|
||||||
|
<li>应用的地址可以带有参数如:{dzzscript}?mod=document&op=textviewer&icoid={icoid}</li>
|
||||||
|
<li>参数:将地址中的参数用"{}"包裹,dzzscript:为主程序(即index.php),adminscript:为后台管理主程序(即admin.php),添加应用时使用此参数可以增加应用的兼容性和移植性</li>
|
||||||
|
<li>dzz_resources表中的字段都可以作为参数带入</li>',
|
||||||
|
'app_delete_confirm'=>'此操作将删除应用:<b>{appname}</b> 内所有数据,请慎<br /><br />如果确实需要删除,请在下面输入 DELETE 字样确认删除',
|
||||||
|
'app_sure_delete'=>'确定卸载应用',
|
||||||
|
'app_not_delete'=>'不卸载',
|
||||||
|
'installed'=>'已安装',
|
||||||
|
'newest'=>'最新',
|
||||||
|
'buy'=>'购买',
|
||||||
|
'view_detail'=>'查看详细',
|
||||||
|
'buy_contract'=>'联系购买',
|
||||||
|
'manual_install_tip'=>'注:如不能在线安装,请通过 <a class="num" href="http://help.oaooa.com/index.php?mod=dzzmarket" target="_blank">官方应用市场</a> 下载应用安装包手动下载',
|
||||||
|
'no_new_updates_were_detected'=>'没有检测到新的更新',
|
||||||
|
'upgrading_in_progress_please_wait_a_minute'=>'正在升级,请稍等...',
|
||||||
|
|
||||||
|
'open_app'=>'开启应用',
|
||||||
|
'install_app'=>'安装应用',
|
||||||
|
'directory_overwriting'=>'目录已存在,请重命名该目录或移除,防止重复或覆盖',
|
||||||
|
'prepare_installation'=>'安装前准备...',
|
||||||
|
'Application_acquisition'=>'应用文件列表获取中...',
|
||||||
|
'Application_downloaded'=>'应用文件即将下载...',
|
||||||
|
'Update_application'=>'更新应用',
|
||||||
|
'not_exist'=>'应用不存在'
|
||||||
|
);
|
||||||
|
?>
|
||||||
125
admin/appmarket/list.php
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
include libfile('function/admin');
|
||||||
|
include libfile('function/organization');
|
||||||
|
$do = empty($_GET['do']) ? 'available' : trim($_GET['do']);
|
||||||
|
$refer = urlencode(ADMINSCRIPT . '?mod=app&op=list&do=' . $do);
|
||||||
|
$grouptitle = array('0' => lang('all'), '-1' => lang('visitors_visible'), '1' => lang('members_available'), '2' => lang('section_administrators_available'), '3' => lang('system_administrators_available'));
|
||||||
|
$list = array();
|
||||||
|
$op=$_GET['op'];
|
||||||
|
if ($do == 'available') {
|
||||||
|
$list = array();
|
||||||
|
foreach (DB::fetch_all("SELECT * FROM ".DB::table('app_market')." WHERE available<1") as $value) {
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['newversion'] = $newversion;
|
||||||
|
if ($value['appico'] && $value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
if (empty($value['appico']))
|
||||||
|
$value['appico'] = 'dzz/images/default/icodefault.png';
|
||||||
|
$list[] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
} elseif ($do == 'notinstall') {
|
||||||
|
$identifiers = C::t('app_market') -> fetch_all_identifier();
|
||||||
|
|
||||||
|
$list=search_app('dzz',$identifiers);
|
||||||
|
$list2=search_app('admin',$identifiers);
|
||||||
|
$list3=search_app('user',$identifiers);
|
||||||
|
$list=array_merge($list,$list2,$list3);
|
||||||
|
/*$appsdir = dir($appdir);
|
||||||
|
$newapps = array();
|
||||||
|
$list = array();
|
||||||
|
while ($entry = $appsdir -> read()) {
|
||||||
|
if (!in_array($entry, array('.', '..')) && is_dir($appdir . '/' . $entry) && !in_array($entry, $identifiers)) {
|
||||||
|
$entrydir = DZZ_ROOT . './dzz/' . $entry;
|
||||||
|
|
||||||
|
$filemtime = filemtime($entrydir);
|
||||||
|
$importtxt = '';
|
||||||
|
if (file_exists($entrydir . '/dzz_app_' . $entry . '.xml')) {
|
||||||
|
//echo $entrydir.'/dzz_app_'.$entry.'.xml'.'<br>';
|
||||||
|
$importtxt = implode('', file($entrydir . '/dzz_app_' . $entry . '.xml'));
|
||||||
|
}
|
||||||
|
if ($importtxt) {
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 1, $importtxt);
|
||||||
|
$value = $apparray['app'];
|
||||||
|
if (!empty($value['appname'])) {
|
||||||
|
$value['appname'] = dhtmlspecialchars($value['appname']);
|
||||||
|
$value['identifier'] = dhtmlspecialchars($entry);
|
||||||
|
$value['version'] = dhtmlspecialchars($value['version']);
|
||||||
|
$value['vendor'] = dhtmlspecialchars($value['vendor']);
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$list[$entry] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
} elseif ($do == 'updatelist') {
|
||||||
|
$list = array();
|
||||||
|
//$appdir = DZZ_ROOT . './dzz';
|
||||||
|
$applist = DB::fetch_all("select * from %t where identifier!=''",array('app_market'));
|
||||||
|
foreach ($applist as $value) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$value['app_path'].'/' . $value['identifier'];
|
||||||
|
$filemtime = filemtime($entrydir);
|
||||||
|
$importtxt = '';
|
||||||
|
if (file_exists($entrydir . '/dzz_app_' . $value['identifier'] . '.xml')) {
|
||||||
|
//echo $entrydir.'/dzz_app_'.$entry.'.xml'.'<br>';
|
||||||
|
$importtxt = implode('', file($entrydir . '/dzz_app_' . $value['identifier'] . '.xml'));
|
||||||
|
}
|
||||||
|
if ($importtxt) {
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 1, $importtxt);
|
||||||
|
$newversion = dhtmlspecialchars($apparray['app']['version']);
|
||||||
|
if ($value['version'] < $newversion) {
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['newversion'] = $newversion;
|
||||||
|
if ($value['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $value['appico'])) {
|
||||||
|
$value['appico'] = $_G['setting']['attachurl'] . $value['appico'];
|
||||||
|
}
|
||||||
|
$list[$value['appid']] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include template('list');
|
||||||
|
|
||||||
|
function search_app($dir,$identifiers){
|
||||||
|
$appdir = DZZ_ROOT . './'.$dir;
|
||||||
|
$appsdir = dir($appdir);
|
||||||
|
$newapps = array();
|
||||||
|
$list = array();
|
||||||
|
while ($entry = $appsdir -> read()) {
|
||||||
|
if (!in_array($entry, array('.', '..')) && is_dir($appdir . '/' . $entry) && !in_array($entry, $identifiers)) {
|
||||||
|
$entrydir = DZZ_ROOT . './'.$dir.'/' . $entry;
|
||||||
|
|
||||||
|
$filemtime = filemtime($entrydir);
|
||||||
|
$importtxt = '';
|
||||||
|
if (file_exists($entrydir . '/dzz_app_' . $entry . '.xml')) {
|
||||||
|
$importtxt = implode('', file($entrydir . '/dzz_app_' . $entry . '.xml'));
|
||||||
|
}
|
||||||
|
if ($importtxt) {
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 1, $importtxt);
|
||||||
|
$value = $apparray['app'];
|
||||||
|
if (!empty($value['appname'])) {
|
||||||
|
$value['appname'] = dhtmlspecialchars($value['appname']);
|
||||||
|
$value['identifier'] = dhtmlspecialchars($entry);
|
||||||
|
$value['version'] = dhtmlspecialchars($value['version']);
|
||||||
|
$value['vendor'] = dhtmlspecialchars($value['vendor']);
|
||||||
|
$value['grouptitle'] = $grouptitle[$value['group']];
|
||||||
|
$value['app_path']=$dir;
|
||||||
|
$list[$entry] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
?>
|
||||||
2346
admin/appmarket/scripts/jquery-ui.js
vendored
Normal file
159
admin/appmarket/template/appdefault.htm
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link rel="stylesheet" href="static/switchery/switchery.min.css">
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
.bs-main-container{
|
||||||
|
margin-left:200px;
|
||||||
|
}
|
||||||
|
.main-header2 .nav>li>a{
|
||||||
|
padding:6px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*12.2添加*/
|
||||||
|
.main-header2 .nav>li{
|
||||||
|
padding-top: 8px
|
||||||
|
}
|
||||||
|
ul, ul li, li {
|
||||||
|
list-style: unset;
|
||||||
|
}
|
||||||
|
/*结束*/
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
<div class="left-drager-op">
|
||||||
|
<div class="left-drager-sub"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="main-header clearfix">
|
||||||
|
<ul class="nav navbar-nav nav-pills-bottomguide">
|
||||||
|
|
||||||
|
<li <!--{if $group=='0' && !$org}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=default&group=0">{lang universal_application}</a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $group=='-1' && !$org}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=default&group=-1">{lang tourist_application}</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li <!--{if $group=='1'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=default&group=1">{lang rank_file_application}</a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $group=='3' && !$org}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=default&group=3">{lang system_administrator_application}</a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $group=='2' && !$org}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=default&group=2">{lang section_administrator_application}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="main-content clearfix" style="border-top:1px solid #FFF;padding:0">
|
||||||
|
<form id="appform" name="appform" class="form-horizontal" action="{BASESCRIPT}?mod={MOD_NAME}&op=default" method="post">
|
||||||
|
<input type="hidden" name="appsubmit" value="true" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<th width="50">{lang sort}</th>
|
||||||
|
<th>{lang application_name}</th>
|
||||||
|
<th>{lang default_location}</th>
|
||||||
|
<!--{if $group==1}--><th>{lang allow_department}<small style="display:block;font-size:12px;color:#999">{lang allow_department_tip}</small></th><!--{/if}-->
|
||||||
|
<th>{lang force_installed}<small style="display:block;font-size:12px;color:#999">{lang force_installed_tip}</small></th>
|
||||||
|
<th>{lang clear}<small style="display:block;font-size:12px;color:#999">{lang clear_application_install}</small></th>
|
||||||
|
</thead>
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<tr>
|
||||||
|
<!-- <td width="20"><input type="checkbox" name="appids[]" value="$value['appid']" /></td>-->
|
||||||
|
<td width="40"><input type="text" class="form-control input-sm" name="disp[{$value['appid']}]" value="$value['disp']" style="width:45px;" /></td>
|
||||||
|
<td>
|
||||||
|
<a href="$value['appurl']"><img src="$value['appico']" />$value['appname']</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<select name="position[{$value['appid']}]" class="form-control input-sm" style="width:120px">
|
||||||
|
<!--{loop $positionarr $key $value1}-->
|
||||||
|
<option value="$key" <!--{if $value['position']==$key}-->selected="selected"<!--{/if}-->>$value1</option>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<!--{if $group==1}-->
|
||||||
|
<td>
|
||||||
|
<!--{loop$value['orgs']$value1}-->
|
||||||
|
<span class=" btn-sorg">
|
||||||
|
{eval echo avatar_group($value1['orgid']);}
|
||||||
|
</span>
|
||||||
|
<!--{/loop}-->
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<!--{/if}-->
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" class="js-switch" name="notdelete[{$value['appid']}]" value="1" <!--{if $value['notdelete']>0}-->checked<!--{/if}--> />
|
||||||
|
</td>
|
||||||
|
<td><button id="clear_{$value['appid']}" style="width:100px;" class="btn btn-default" data-loading-text="{lang in_clear}" type="button" title="{lang clear_application_install}" onclick="clearAppFromUser('$value['appid']');return false">{lang clear}</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<tr>
|
||||||
|
<th valign="middle" style="border-bottom:none"><input type="submit" class="btn btn-primary" value="{lang save_set}" /></th>
|
||||||
|
<th colspan="5" style="border-bottom:none"> $multi</th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<div class="tip" style="margin:10px;color:#333;line-height:1.8">
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<h5>{lang board_message}</h5>
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang appdefault_board_message_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
var selorg = {};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function clearAppFromUser(appid, i) {
|
||||||
|
if(!i) i = 0;
|
||||||
|
var el = jQuery('#clear_' + appid);
|
||||||
|
if(i == 0) el.button('loading');
|
||||||
|
jQuery.getJSON('{MOD_URL}&op=default&do=clear&appid=' + appid + '&i=' + i, function(json) {
|
||||||
|
if(json.error) {
|
||||||
|
el.html(json.error);
|
||||||
|
window.setTimeout(function() {
|
||||||
|
el.html('{lang clear}');
|
||||||
|
el.button('reset');
|
||||||
|
}, 1000);
|
||||||
|
} else if(json.msg == 'continue') {
|
||||||
|
clearAppFromUser(appid, json.start);
|
||||||
|
} else if(json.msg == 'success') {
|
||||||
|
window.setTimeout(function() { el.html('{lang clear_success}'); }, 1000);
|
||||||
|
window.setTimeout(function() {
|
||||||
|
el.html('{lang clear}');
|
||||||
|
el.button('reset');
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//开关样式
|
||||||
|
jQuery.getScript('static/switchery/switchery.min.js',function(){
|
||||||
|
var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
|
||||||
|
elems.forEach(function (html) {
|
||||||
|
var switchery = new Switchery(html);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
407
admin/appmarket/template/cloudappmarket.htm
Normal file
@@ -0,0 +1,407 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="{MOD_PATH}/images/market.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
.app_upgradelist {
|
||||||
|
margin: auto;
|
||||||
|
padding: 8px;
|
||||||
|
border-bottom: 1px solid #f2f2f2;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.app_upgradelist .progess {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
height: 30px;
|
||||||
|
width: 0%;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.app_upgradelist .progess .upgrade_progess {
|
||||||
|
background-color: #dff0d8;
|
||||||
|
position: absolute;
|
||||||
|
width: 0%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.app-name-wrapper {
|
||||||
|
padding-left: 55px;
|
||||||
|
position: relative;
|
||||||
|
max-width: 350px;
|
||||||
|
min-height: 50px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appicon {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appicon img {
|
||||||
|
max-width: 45px;
|
||||||
|
max-height: 45px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname a {
|
||||||
|
color: #000;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appdesc {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #999;
|
||||||
|
font-size: 13px;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.group-td-wrapper {
|
||||||
|
max-width: 320px;
|
||||||
|
white-space: normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span>img {
|
||||||
|
margin: 0;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
.app-info a {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.app-info .select-info {
|
||||||
|
position: absolute;
|
||||||
|
left: 30px;
|
||||||
|
top: 0;
|
||||||
|
display: none;
|
||||||
|
background-color: #FFF;
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
.main-header {
|
||||||
|
padding: 5px
|
||||||
|
}
|
||||||
|
.main-header>div {
|
||||||
|
line-height: 34px;
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
|
#update_selected {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
.checkbox-custom {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager"></div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="all-center-top clearfix">
|
||||||
|
<div class="app-info pull-left"> <a href="{BASESCRIPT}?mod=appmarket">{lang total}<span class="num">$total</span>{lang ge}{lang app}</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="main-content clearfix" >
|
||||||
|
<div class="market-container" id="loopcontent" style="min-width:510px;">
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<div id="app_div_{$value['mid']}" class="row app_upgradelist" >
|
||||||
|
<div id="progess_{$value['mid']}" class="progess"> <span id="upgrade_progess_{$value['mid']}" class="upgrade_progess"></span> </div>
|
||||||
|
<div class="col-md-5 col-sm-5 col-xs-5" style="padding-left: 4px;">
|
||||||
|
<div class="app-name-wrapper" > <a href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value['mid']&refer=$refer" class="appicon view-detail" title="$value['name']"><img src="$value['coverimg']" style="margin:0" /></a>
|
||||||
|
<p class="appname"> <a href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value['mid']&refer=$refer" target="_blank" class="view-detail" title="$value['name']">$value['name']</a> <small class="text-muted" title="{lang version}">$value['version']</small></p>
|
||||||
|
<div class="appdesc" title="$value['appdesc']">{eval echo $value['desc_short']?$value['desc_short']:lang('none');}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 col-sm-2 col-xs-2">
|
||||||
|
<div class="group-td-wrapper">{$value['classid_name']}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 col-sm-2 col-xs-2"> {eval echo formatsize($value['packagesize']);} </div>
|
||||||
|
<div class="col-md-3 col-sm-3 col-xs-3">
|
||||||
|
<!--{if $value['price']>0}-->
|
||||||
|
<button class="btn btn-danger" onclick="showBuyInfo(this,'$value['mid']')" data-href="$cloudurl?mod=dzzmarket&op=ajax&do=getBuyInfo&mid=$value['mid']" title="{lang buy_contract}">{lang buy}</button>
|
||||||
|
<!--{else}-->
|
||||||
|
<!--{if $value['package']}-->
|
||||||
|
<!--{if $value["local_appinfo"]}-->
|
||||||
|
<btn class="btn btn-default" disabled style="color: #333;" data-mid="$value['mid']" title="{lang installed}">
|
||||||
|
{lang installed}
|
||||||
|
</button>
|
||||||
|
<!--{else}-->
|
||||||
|
<button class="btn btn-success-outline" style="white-space: inherit;" onclick="start_check_install('{MOD_URL}&op=install_app_ajax&operation=check_install&appid=$value['identifier']','{$value['mid']}','{$value['baseinfo']}');" id="upgrade_info_{$value['mid']}">{lang install_onekey}</button>
|
||||||
|
<!--{/if}-->
|
||||||
|
<!--{else}-->
|
||||||
|
<a class="btn btn-success-outline view-detail" title="$value['name']" href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value['mid']" >{lang view_detail}</a>
|
||||||
|
<!--{/if}-->
|
||||||
|
<!--{/if}-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="pageinfo" style="text-align:center;padding:10px;">$multi</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal in">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
|
||||||
|
<div class="modal-body"> </div>
|
||||||
|
<div class="modal-footer" style="text-align: center">
|
||||||
|
<button type="button" class="btn btn-dark" data-dismiss="modal">{lang close}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-content -->
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-dialog -->
|
||||||
|
</div>
|
||||||
|
<!-- /.modal -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
jQuery('.view-detail').on('click',function(){
|
||||||
|
showBuyInfo(this,'modal-lg');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
var ajaxurl='{$cloudurl}';
|
||||||
|
function showBuyInfo(obj,size){
|
||||||
|
var url=jQuery(obj).data('href');
|
||||||
|
var title=jQuery(obj).attr('title');
|
||||||
|
if(size){
|
||||||
|
jQuery('.modal .modal-dialog').addClass(size);
|
||||||
|
}
|
||||||
|
jQuery.get(url,function(html){
|
||||||
|
html=html.replace(/src=\"index\.php/ig,'src="$cloudurl');
|
||||||
|
jQuery('.modal .modal-body').html(html);
|
||||||
|
});
|
||||||
|
//jQuery('.modal .modal-title').html(title);
|
||||||
|
jQuery('.modal').modal('show');
|
||||||
|
}
|
||||||
|
function getNext(url){
|
||||||
|
jQuery.get(url,function(html){
|
||||||
|
var li=jQuery('.appitem-next');
|
||||||
|
li.replaceWith(html);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function start_check_install(url,mid,data){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{"baseinfo":data },
|
||||||
|
success:function(json){
|
||||||
|
//jQuery('#install_button_'+mid).html(" ");
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).show().addClass("btn-warning").html(json.msg);
|
||||||
|
}else if(json.status==1){
|
||||||
|
jQuery('#upgrade_info_'+mid).show().text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).show().animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
startinstsallapp(json.url,mid,data);
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startinstsallapp(url,mid,data){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{"baseinfo":data},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).addClass("btn-warning").html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
startgetinstallcrossorpatchfile(json.url,mid,data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startgetinstallcrossorpatchfile(url,mid,data){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{"baseinfo":data},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).addClass("btn-warning").html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step==2){
|
||||||
|
startgetinstallcrossorpatchfile(json.url,mid,data);
|
||||||
|
}else{
|
||||||
|
startinstallfile(json.url,mid,data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startinstallfile(url,mid,data){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{"baseinfo":data},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).addClass("btn-warning").html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step!=5){
|
||||||
|
startinstallfile(json.url,mid,data);
|
||||||
|
}else{
|
||||||
|
installover(json.url,mid,data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function installover(url,mid,data){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{"baseinfo":data},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).addClass("btn-warning").html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).css("width","100%");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function start_check_upgrade(url,mid){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
jQuery('#upgrade_button_'+mid).html(" ");
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).show().text(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).show().text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).show().animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
startupgrade(json.url,mid);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startupgrade(url,mid){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
startgetcrossorpatchfile(json.url,mid);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startgetcrossorpatchfile(url,mid){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
alert( json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step==2){
|
||||||
|
startgetcrossorpatchfile(json.url,mid);
|
||||||
|
}else{
|
||||||
|
startupgradefile(json.url,mid);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startupgradefile(url,mid){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
alert( json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+mid).text(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step!=5){
|
||||||
|
startupgradefile(json.url,mid);
|
||||||
|
}else{
|
||||||
|
upgradeover(json.url,mid);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function upgradeover(url,mid){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
alert( json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_progess_'+mid).animate({width:"100%"},300,function(){
|
||||||
|
jQuery('#upgrade_progess_'+mid).hide().css("width","0");
|
||||||
|
start_check_upgrade(json.url,mid);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
84
admin/appmarket/template/cross.htm
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="static/select2/select2.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="static/select2/select2-bootstrap.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="static/css/checkbox.css">
|
||||||
|
<link href="static/css/app_manage.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<script src="admin/scripts/admin.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="static/js/header.js"></script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.progress.active .progress-bar {
|
||||||
|
-webkit-animation: none;
|
||||||
|
animation: none;
|
||||||
|
transition: none;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
<div class="left-drager-op">
|
||||||
|
<div class="left-drager-sub"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bs-main-container clearfix">
|
||||||
|
<div class="main-header clearfix">
|
||||||
|
<h4 class="main-header-title navbar-left">{lang upgrade}</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-header">
|
||||||
|
<div class="clearfix" style="line-height:40px;padding:0 10px;font-size:12px;">
|
||||||
|
<!--{loop $steplang $key $value}-->
|
||||||
|
<!--{if $key>0 && $key<=5}-->
|
||||||
|
<span class="text-muted" <!--{if $key==$step}-->style="color:green"<!--{/if}-->>{$key}.{$value}</span>
|
||||||
|
<!--{/if}-->
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-content" style="border-top:1px solid #FFF">
|
||||||
|
<!--{if !$_G['setting']['bbclosed']}-->
|
||||||
|
<div style="padding:20px;height:450px">
|
||||||
|
<div class="alert alert-warning text-center">
|
||||||
|
$msg
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--{else}-->
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<th colspan="5">{lang founder_upgrade_preupdatelist}</th>
|
||||||
|
</thead>
|
||||||
|
<!--{loop $updatefilelist $value}-->
|
||||||
|
<tr>
|
||||||
|
<td> <i class="glyphicon glyphicon-file"></i> $value</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<thead>
|
||||||
|
<th colspan="5"> {lang founder_upgrade_store_directory} ./data/update/app/$appinfo["identifier"]/$version</th>
|
||||||
|
</thead>
|
||||||
|
<thead>
|
||||||
|
<th colspan="5"> <input type="button" class="btn btn-primary" onclick="window.location.href='$linkurl'" value="{lang founder_upgrade_download}"></th>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<!--{/if}-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
411
admin/appmarket/template/edit.htm
Normal file
@@ -0,0 +1,411 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link rel="stylesheet" type="text/css" href="static/tagsinput/jquery.tagsinput.css" />
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="static/css/checkbox.css">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="dzz/system/scripts/selorg.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--{if $openarr}-->
|
||||||
|
selorg.openarr = $openarr;
|
||||||
|
<!--{/if}-->
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.img_128_128 {
|
||||||
|
max-width: 128px;
|
||||||
|
max-height: 128px;
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-sorg {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .img_128_128 {
|
||||||
|
width: expression(this.width > 128 && this.width>=this.height ? 128: true);
|
||||||
|
height: expression(this.height > 128 && this.width<=this.height ? 128: true);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix" style="border-top:1px solid #FFF">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
<div class="left-drager-op">
|
||||||
|
<div class="left-drager-sub"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="main-header clearfix">
|
||||||
|
<!--{if !$appid}-->
|
||||||
|
<h4 class="main-header-title navbar-left"><a href="{MOD_URL}">{lang goback}</a> / {lang add_app}</h4>
|
||||||
|
<!--{else}-->
|
||||||
|
<h4 class="main-header-title navbar-left"><a href="{MOD_URL}">{lang goback}</a> / {lang edit_app}</h4>
|
||||||
|
<!--{/if}-->
|
||||||
|
|
||||||
|
<!--{if !$appid && $op=='edit'}-->
|
||||||
|
<div class="button_add_content">
|
||||||
|
<a href="{MOD_URL}&op=edit&do=add&refer=$refer" id="button_add1" title="{lang add_app}" class="hide">+</a>
|
||||||
|
<a href="{MOD_URL}&op=cp&do=import&refer=$refer" id="button_add2" class="hide" title="{lang import_type_app}" style="font-size:20px ;"><span class="glyphicon glyphicon-download-alt"></span></a>
|
||||||
|
<a href="javascript:;" id="button_add" style="z-index: 10;">+</a>
|
||||||
|
</div>
|
||||||
|
<!--{/if}-->
|
||||||
|
</div>
|
||||||
|
<div class="main-content " style="padding:15px;">
|
||||||
|
<form id="appform" name="appform" class="form-horizontal-left form-horizontal" action="{MOD_URL}&op=edit&appid=$appid" method="post" enctype="multipart/form-data" onsubmit="return validate(this)">
|
||||||
|
<input type="hidden" name="appsubmit" value="true" />
|
||||||
|
<input type="hidden" name="appid" value="$appid" />
|
||||||
|
<input type="hidden" name="refer" value="$refer" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label " for="appname">{lang application_name}</label>
|
||||||
|
|
||||||
|
<input type="text" class="form-control input-sm" id="appname" name="appname" autocomplete="off" value="$app['appname']">
|
||||||
|
<span class="help-inline"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="identifier">{lang application_identifier}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="identifier" name="identifier" autocomplete="off" value="$app['identifier']">
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_application_identifier_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="app_path">{lang application_app_path}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="app_path" name="app_path" autocomplete="off" value="$app['app_path']">
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_application_app_path_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="appurl">{lang application_site}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="appurl" name="appurl" autocomplete="off" value="$app['appurl']">
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_application_site_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="appadminurl">{lang application_appadminurl}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="appadminurl" name="appadminurl" autocomplete="off" value="$app['appadminurl']">
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_application_appadminurl_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!--<div class="form-group">
|
||||||
|
<label class="control-label" for="noticeurl">{lang notification_interface}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="noticeurl" name="noticeurl" autocomplete="off" value="$app['noticeurl']">
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_notification_interface_text}
|
||||||
|
</ul>
|
||||||
|
</div>-->
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="vendor">{lang supplier}</label>
|
||||||
|
<input type="text" class="form-control input-sm" id="vendor" name="vendor" autocomplete="off" value="$app['vendor']">
|
||||||
|
<span class="help-inline">{lang application_provider_name}</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang application_ico}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<!--{if $appid>0}-->
|
||||||
|
<p><input id="fileiz_0" class="form-control input-sm" name="TMPiconnew" value="" style="display: none;" type="file">
|
||||||
|
<input id="fileiz_1" class="form-control input-sm" style="" name="iconnew" value="$app['appico']" type="text"></p>
|
||||||
|
<p>
|
||||||
|
<a id="fileiz_0a" style="" href="javascript:;" onclick="document.getElementById('fileiz_1a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileiz_1').name = 'TMPiconnew';document.getElementById('fileiz_0').name = 'iconnew';document.getElementById('fileiz_0').style.display = '';document.getElementById('fileiz_1').style.display = 'none'">{lang uploading}</a>
|
||||||
|
<a id="fileiz_1a" style="font-weight: bold;" href="javascript:;" onclick="document.getElementById('fileiz_0a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileiz_0').name = 'TMPiconnew';document.getElementById('fileiz_1').name = 'iconnew';document.getElementById('fileiz_1').style.display = '';document.getElementById('fileiz_0').style.display = 'none'">{lang type_link}</a>
|
||||||
|
</p>
|
||||||
|
<!--{else}-->
|
||||||
|
<p><input id="fileiz_0" class="form-control input-sm" name="iconnew" value="" type="file">
|
||||||
|
<input id="fileiz_1" class="form-control input-sm" style="display: none;" name="TMPiconnew" value="$app['appico']" type="text"></p>
|
||||||
|
<p>
|
||||||
|
<a id="fileiz_0a" style="font-weight: bold;" href="javascript:;" onclick="document.getElementById('fileiz_1a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileiz_1').name = 'TMPiconnew';document.getElementById('fileiz_0').name = 'iconnew';document.getElementById('fileiz_0').style.display = '';document.getElementById('fileiz_1').style.display = 'none'">{lang uploading}</a>
|
||||||
|
<a id="fileiz_1a" style="" href="javascript:;" onclick="document.getElementById('fileiz_0a').style.fontWeight = '';this.style.fontWeight = 'bold';document.getElementById('fileiz_0').name = 'TMPiconnew';document.getElementById('fileiz_1').name = 'iconnew';document.getElementById('fileiz_1').style.display = '';document.getElementById('fileiz_0').style.display = 'none'">{lang type_link}</a>
|
||||||
|
</p>
|
||||||
|
<!--{/if}-->
|
||||||
|
<p class="text-muted">{lang suggest_image_size}128X128 px</p>
|
||||||
|
</div>
|
||||||
|
<span class="help-inline">
|
||||||
|
<!--{if $appid}--><img class="img_128_128" src="$app['appico']?t=$_G['timestamp']" >
|
||||||
|
<!--{else}--> <img class="img_128_128" src="dzz/images/default/icodefault.png" >
|
||||||
|
<!--{/if}-->
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang group_permissions}</label>
|
||||||
|
<div class="controls ml20">
|
||||||
|
<!--{loop $grouptitle $key $value}-->
|
||||||
|
<label class="radio wd120"><input type="radio" name="group" value="$key" <!--{if $app['group']==$key}-->checked<!--{/if}--> onclick="{if $key==1}jQuery('#perm_depart').show();{else}jQuery('#perm_depart').hide();{/if}">$value </label>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
<span class="help-block">{lang app_group_permissions}</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group" id="perm_depart" <!--{if $app[ 'group']!=1}-->style="display:none"
|
||||||
|
<!--{/if}-->>
|
||||||
|
<label class="control-label">{lang department_permissions}</label>
|
||||||
|
<div class="controls-adapt">
|
||||||
|
<div class="dropdown controls_adapt">
|
||||||
|
<button class="btn btn-default dropdown-toggle" id="orgids_Menu" data-toggle="dropdown">{lang please_select_a_organization_or_department}<span class="caret"></span></button>
|
||||||
|
<div id="orgids_dropdown_menu" class="dropdown-menu org-sel-box" role="menu" aria-labelledby="orgids_Menu">
|
||||||
|
<iframe name="orgids_iframe" class="org-sel-box-iframe" src="index.php?mod=system&op=orgtree&ctrlid=orgids&multiple=1&nouser=1" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" allowtransparency="true"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="orgids">
|
||||||
|
<!--{loop $sel_org $value}-->
|
||||||
|
<button id="orgids_sl_$value['orgid']" type="button" class="btn btn-simple btn-sorg" data-val="$value['orgid']">
|
||||||
|
{eval echo avatar_group($value['orgid']);}$value['orgname']
|
||||||
|
<a href="javascript:;" class="ibtn dzz dzz-close" title="{lang delete}" onclick="selorg.remove('orgids',this);"></a>
|
||||||
|
</button>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input id="sel_orgids" name="orgids" type="hidden" value="$sel" />
|
||||||
|
</div>
|
||||||
|
<span class="help-block">{lang app_set_application_jurisdiction}</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group ">
|
||||||
|
<label class="control-label" for="tag">{lang application_label}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="text" name="tag" autocomplete="off" id="tag" data-source="$tag_source" data-items="5" value="$app['tags']" style="margin: 0 auto;">
|
||||||
|
</div>
|
||||||
|
<ul class="help-block">
|
||||||
|
<li>{lang app_number_fields}</li>
|
||||||
|
<li>{lang app_clear_label}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="fileext">{lang app_support_extension}</label>
|
||||||
|
<div class="controls" style="position:relative;overflow:visible">
|
||||||
|
<input type="text" name="fileext" autocomplete="off" id="fileext" data-source="$fileext_source" value="$app['fileext']" style="margin: 0 auto;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_not_allowed_open_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang open_mode}</label>
|
||||||
|
<div class="controls ml20">
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="open" value="0" <!--{if $app['open']<1}-->checked<!--{/if}--> onclick="jQuery('#feature').show();">{lang app_internal_frame} </label>
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="open" value="1" <!--{if $app['open']>0}-->checked<!--{/if}--> onclick="jQuery('#feature').hide();">{lang new_Window}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang app_internal_frame_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang app_application_library}</label>
|
||||||
|
<div class="controls ml20">
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="hideInMarket" value="0" <!--{if $app['hideInMarket']<1}-->checked<!--{/if}-->>{lang show} </label>
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="hideInMarket" value="1" <!--{if $app['hideInMarket']>0}-->checked<!--{/if}-->>{lang hide} </label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span class="help-block">{lang app_application_library_text}</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang show_ico}</label>
|
||||||
|
<div class="controls ml20">
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="isshow" value="1" <!--{if $app['isshow']>0}-->checked<!--{/if}-->>{lang show} </label>
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="isshow" value="0" <!--{if $app['isshow']<1}-->checked<!--{/if}-->>{lang hide} </label>
|
||||||
|
</div>
|
||||||
|
<span class="help-block">{lang app_show_ico_text}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang app_edit_support}</label>
|
||||||
|
<div class="controls ml20">
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="haveflash" value="0" <!--{if $app['haveflash']<1}-->checked<!--{/if}-->>{lang notsupport} </label>
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="haveflash" value="1" <!--{if $app['haveflash']>0}-->checked<!--{/if}-->>{lang support}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span class="help-block">{lang app_edit_support_text}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="appdesc">{lang application_introduce}</label>
|
||||||
|
<textarea rows="3" class="form-control" name="appdesc" id="appdesc" style="width:350px;">$app['appdesc']</textarea>
|
||||||
|
</div>
|
||||||
|
<div id="pic_delete"></div>
|
||||||
|
<input id="editbutton" name="appbutton" value="{lang submit}" onclick="validate(this);" style="display: none;" type="button" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="form-horizontal-left form-horizontal">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label">{lang application_introduce_img}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<!--{if $piclist}-->
|
||||||
|
<ul id="pic_container" class="thumbnails list-unstyled ml20">
|
||||||
|
<!--{loop $piclist $key $value}-->
|
||||||
|
<li class="wd120" style="margin:10px;width:90px;" id="pic_{$value['picid']}">
|
||||||
|
<div class="thumbnail text-center" style="margin-bottom:10px;">
|
||||||
|
<img data_src="$value['pic']" src="$value['pic']" />
|
||||||
|
</div>
|
||||||
|
<p class="text-center">
|
||||||
|
<a class="btn btn-link" href="javascript:;" onclick="delete_pic(this,{$value['picid']})">{lang delete}</a>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!--{/if}-->
|
||||||
|
|
||||||
|
<table class="tb tb2 ">
|
||||||
|
<tbody id="attachbodyhidden" style="display:none">
|
||||||
|
<tr class="noborder">
|
||||||
|
<td class="tb27">
|
||||||
|
<form method="post" autocomplete="off" id="upload" action="{MOD_URL}&op=$op&do=upload" enctype="multipart/form-data" target="uploadframe">
|
||||||
|
<input type="file" name="attach" class="pf" size="0" />
|
||||||
|
<span id="localfile"></span>
|
||||||
|
<input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tbody id="attachbody"></tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<script src="admin/scripts/uploadpic.js?{VERHASH}" type="text/javascript"></script>
|
||||||
|
<iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label></label>
|
||||||
|
<input class="btn btn-primary" id="submit_editsubmit" name="appsubmit" value="{lang submit}" type="button" onclick="document.getElementById('editbutton').click();">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
function screen_app(tagid,group){
|
||||||
|
var url = '{MOD_URL}';
|
||||||
|
if(tagid){
|
||||||
|
url += '&tagid='+tagid;
|
||||||
|
}
|
||||||
|
if(group){
|
||||||
|
url += '&group='+group;
|
||||||
|
}
|
||||||
|
var inputval = jQuery('#screen_keyword').val();
|
||||||
|
if(inputval){
|
||||||
|
url += '&keyword='+inputval;
|
||||||
|
}
|
||||||
|
console.log(url);
|
||||||
|
// return false;
|
||||||
|
window.location.href =url;
|
||||||
|
}
|
||||||
|
jQuery('#button_add').click(function(){
|
||||||
|
if(jQuery("#button_add1").hasClass('hide')){
|
||||||
|
jQuery("#button_add").html("×");
|
||||||
|
jQuery("#button_add1").removeClass("hide");
|
||||||
|
jQuery("#button_add2").removeClass("hide");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"-124px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"-62px"},500);
|
||||||
|
}else{
|
||||||
|
jQuery("#button_add").html("+");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"0px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"0px"},500);
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery("#button_add1").addClass("hide");
|
||||||
|
jQuery("#button_add2").addClass("hide");
|
||||||
|
},500)
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
jQuery(document).ready(function(e) {
|
||||||
|
|
||||||
|
jQuery('#fileext').tagsInput({
|
||||||
|
'height': '0px',
|
||||||
|
'width': '300px',
|
||||||
|
'interactive': true,
|
||||||
|
'defaultText': '',
|
||||||
|
//'onAddTag':callback_function,
|
||||||
|
//'onRemoveTag':callback_function,
|
||||||
|
//'onChange' : callback_function,
|
||||||
|
'removeWithBackspace': true,
|
||||||
|
'minChars': 0,
|
||||||
|
'maxChars': 0, //if not provided there is no limit,
|
||||||
|
'placeholderColor': '#666666',
|
||||||
|
'typeahead': {
|
||||||
|
source: jQuery('#fileext').data('source')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
jQuery('#tag').tagsInput({
|
||||||
|
'height': '0px',
|
||||||
|
'width': '300px',
|
||||||
|
'interactive': true,
|
||||||
|
'defaultText': '',
|
||||||
|
//'onAddTag':callback_function,
|
||||||
|
//'onRemoveTag':callback_function,
|
||||||
|
//'onChange' : callback_function,
|
||||||
|
'removeWithBackspace': true,
|
||||||
|
'minChars': 0,
|
||||||
|
'maxChars': 0, //if not provided there is no limit,
|
||||||
|
'placeholderColor': '#666666',
|
||||||
|
'typeahead': {
|
||||||
|
source: jQuery('#tag').data('source')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('#un_selector_tag,#un_selector_fileext').on('click', function(e) {
|
||||||
|
document.getElementById(this.id.replace('un_selector_', '')).focus();
|
||||||
|
});
|
||||||
|
|
||||||
|
function addtaginput(key, id) {
|
||||||
|
var html = '<span>';
|
||||||
|
html += '<button data-dismiss="alert" class="close" type="button">×</button>';
|
||||||
|
html += '<em title="' + key + '" class="pull-left">' + key + '</em><input type="hidden" value="' + key + '" name="' + id + '[]">';
|
||||||
|
html += '</span>';
|
||||||
|
jQuery('#' + id).val('').before(html).focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
function validate(obj) {
|
||||||
|
//获取用户部门 并添加到form中
|
||||||
|
|
||||||
|
var appname = document.getElementById('appname');
|
||||||
|
var appurl = document.getElementById('appurl');
|
||||||
|
var identifier = document.getElementById('identifier');
|
||||||
|
var app_path = document.getElementById('app_path');
|
||||||
|
var notempty = '{lang not_empty}';
|
||||||
|
if(appname) {
|
||||||
|
var slen = strlen(appname.value);
|
||||||
|
if(slen < 1 || slen > 80) {
|
||||||
|
showmessage('{lang application_name}'+notempty, 'danger', 3000, 1);
|
||||||
|
appname.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(strlen(appurl.value) < 1) {
|
||||||
|
showmessage('{lang application_site}'+notempty, 'danger', 3000, 1);
|
||||||
|
appurl.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(strlen(identifier.value) < 1) {
|
||||||
|
showmessage('{lang application_identifier}'+notempty, 'danger', 3000, 1);
|
||||||
|
appurl.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(strlen(app_path.value) < 1) {
|
||||||
|
showmessage('{lang application_app_path}'+notempty, 'danger', 3000, 1);
|
||||||
|
appurl.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
uploadSubmit(obj);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js"></script>
|
||||||
|
<script src="static/tagsinput/jquery.tagsinput.js"></script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap-typeahead.js"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
151
admin/appmarket/template/extopen.htm
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
.app_default_list{
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
.app_default_list li{
|
||||||
|
margin: 5px;
|
||||||
|
list-style: none;
|
||||||
|
float: left;
|
||||||
|
padding: 2px;
|
||||||
|
vertical-align: middle;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
width:150px;
|
||||||
|
height:38px;
|
||||||
|
line-height: 30px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
border:1px solid transparent;
|
||||||
|
|
||||||
|
}
|
||||||
|
.app_default_list li a{padding:2px;color:#333}
|
||||||
|
.app_default_list li.isdefault1 a{color:rgba(76, 137, 251, 1)}
|
||||||
|
.app_default_list li .label-rightimg{margin:auto;display: none;position:absolute;right:3px;top:3px}
|
||||||
|
.app_default_list li.isdefault1 .label-rightimg{display: inline-block;}
|
||||||
|
.app_default_list li.isdefault,.app_default_list li.isdefault1{
|
||||||
|
border: 1px solid rgba(76, 137, 251, 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
.table td img{max-height: 32px;max-width: 32px;}
|
||||||
|
.app_default_list li.ui-state-default{width: 150px;height: 38px;border: 1px solid #e1e1e1;display: block;background:#FFF }
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="main-content clearfix" style="border-top:1px solid #FFF;padding:0;margin-top: 8px;">
|
||||||
|
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th width="100">{lang default}</th>
|
||||||
|
<th>{lang application_name}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<!--{loop $list $key $value}-->
|
||||||
|
<tr>
|
||||||
|
<td width="100" >
|
||||||
|
<a href="{MOD_URL}&op=extopen&ext=$key">$key</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<form name="appform" class="form-horizontal form-horizontal-left" action="{BASESCRIPT}?mod={MOD_NAME}&op=extopen" method="post">
|
||||||
|
<input type="hidden" name="do" value="setorder" />
|
||||||
|
<ul class="app_default_list clearfix">
|
||||||
|
<!--{loop $value $key2 $value2}-->
|
||||||
|
<li class="default_li isdefault{$value2[isdefault]}" title="{lang drag_can_be_sorted}" onclick="setdefault(this, '{$value2[extid]}' )">
|
||||||
|
<input class="form-control industry-add-one" name="extid[]" type="hidden" value="{$value2[extid]}" />
|
||||||
|
<img class="default_li_icon" src="$value2[appdata][appico]" /><a href="javascript:;" title="{lang set_default}">$value2[appdata][appname]</a>
|
||||||
|
<img src="static/image/common/ic-filtrate.png" class="label-rightimg">
|
||||||
|
</li>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</ul>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center" style="border:none">$multi </td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tip" style="margin:20px;color:#444;line-height:1.8">
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<h5>
|
||||||
|
<b>{lang board_message}</b>
|
||||||
|
</h5>
|
||||||
|
<ul class="help-block">
|
||||||
|
{lang extopen_board_message_text}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="{MOD_PATH}/scripts/jquery-ui.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
|
||||||
|
jQuery('.app_default_list li').hover(function(){
|
||||||
|
jQuery(this).addClass("isdefault");
|
||||||
|
},function(){
|
||||||
|
jQuery(this).removeClass("isdefault");
|
||||||
|
});
|
||||||
|
|
||||||
|
$( ".app_default_list" ).sortable({
|
||||||
|
items: ".default_li ",
|
||||||
|
placeholder: "ui-state-default",
|
||||||
|
update: function(event, ui) {
|
||||||
|
var form = jQuery(this).parent();
|
||||||
|
jQuery.post(form.action, jQuery(form).serialize(), function(json) {
|
||||||
|
if(json.status==1){
|
||||||
|
showmessage( json.info,'success',1000,1);
|
||||||
|
} else{
|
||||||
|
showmessage(json.info,'error',1000,1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function setdefault(obj,extid ){
|
||||||
|
if( jQuery(obj).hasClass("isdefault1") ){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'post',
|
||||||
|
url:'{MOD_URL}&op=extopen',
|
||||||
|
data:{'extid':extid ,'do':'setdefault'},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==1){
|
||||||
|
showmessage( json.info,'success',1000,1);
|
||||||
|
jQuery(obj).siblings().removeClass("isdefault1");
|
||||||
|
jQuery(obj).addClass("isdefault1");
|
||||||
|
} else{
|
||||||
|
showmessage(json.info,'error',1000,1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function check_default(obj) {
|
||||||
|
if(jQuery(obj).prop('checked')) {
|
||||||
|
jQuery('input[data-ext=' + jQuery(obj).data('ext') + ']').not(obj).prop('checked', false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
68
admin/appmarket/template/header_search.htm
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<!--{if $_GET['op']=='extopen'}-->
|
||||||
|
<div class="input-search">
|
||||||
|
<form name="search" action="{BASESCRIPT}" method="get">
|
||||||
|
<input type="hidden" name="mod" value="appmarket" />
|
||||||
|
<input type="hidden" name="op" value="extopen" />
|
||||||
|
<i class="input-search-icon glyphicon glyphicon-search" aria-hidden="true" onclick="this.parentNode.submit()"></i>
|
||||||
|
<input type="text" class="form-control search form-search" name="ext" value="$_GET['ext']" placeholder="{lang extension}" id="searchval">
|
||||||
|
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton">×</span>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!--{elseif empty($_GET['op'])}-->
|
||||||
|
<div class="input-search">
|
||||||
|
<form name="search" action="{BASESCRIPT}" method="get">
|
||||||
|
<input type="hidden" name="mod" value="appmarket" />
|
||||||
|
<input type="hidden" name="op" value="" />
|
||||||
|
<input type="hidden" name="tagid" value="$_GET['tagid']" />
|
||||||
|
<input type="hidden" name="group" value="$_GET['group']" />
|
||||||
|
<i class="input-search-icon glyphicon glyphicon-search" aria-hidden="true" onclick="this.parentNode.submit()"></i>
|
||||||
|
<input type="text" class="form-control search form-search" name="keyword" value="$_GET['keyword']" placeholder="{lang application_name_suppliers}" id="searchval">
|
||||||
|
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton">×</span>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!--{elseif $_GET['op']=='upgrade'}-->
|
||||||
|
<div class="input-search">
|
||||||
|
<form name="search" action="{BASESCRIPT}" method="get">
|
||||||
|
<input type="hidden" name="mod" value="{MOD_NAME}" />
|
||||||
|
<input type="hidden" name="op" value="upgrade" />
|
||||||
|
<i class="input-search-icon glyphicon glyphicon-search" aria-hidden="true" onclick="this.parentNode.submit()"></i>
|
||||||
|
<input type="text" class="form-control search form-search" name="keyword" value="$_GET['keyword']" placeholder="{lang appname}" id="searchval">
|
||||||
|
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton">×</span>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!--{elseif $_GET['op']=='default'}-->
|
||||||
|
<div class="input-search">
|
||||||
|
<form name="search" action="{BASESCRIPT}" method="get">
|
||||||
|
<input type="hidden" name="mod" value="{MOD_NAME}" />
|
||||||
|
<input type="hidden" name="op" value="$_GET['op']" />
|
||||||
|
<input type="hidden" name="group" value="$_GET['group']" />
|
||||||
|
<input type="hidden" name="position" value="$_GET['position']" />
|
||||||
|
<input type="hidden" name="depid" value="$_GET['depid']" />
|
||||||
|
<i class="input-search-icon glyphicon glyphicon-search" aria-hidden="true" onclick="this.parentNode.submit()"></i>
|
||||||
|
<input type="text" class="form-control search form-search" name="keyword" value="$_GET['keyword']" placeholder="{lang appname}" id="searchval">
|
||||||
|
<span aria-hidden="true" id="emptysearchcondition" class="header-closebutton">×</span>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!--{/if}-->
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
jQuery('#searchval').focus(function (e) {//头部搜索框变颜色
|
||||||
|
jQuery(this).closest('.input-search').addClass('focus');
|
||||||
|
if(this.value!='') jQuery('#emptysearchcondition').show();
|
||||||
|
});
|
||||||
|
jQuery('#searchval').blur(function (e) {//失去焦点时
|
||||||
|
jQuery(this).closest('.input-search').removeClass('focus');
|
||||||
|
if(this.value=='') jQuery('#emptysearchcondition').hide();
|
||||||
|
});
|
||||||
|
jQuery('#searchval').keyup(function (e) {//失去焦点时
|
||||||
|
if(this.value!='') jQuery('#emptysearchcondition').show();
|
||||||
|
});
|
||||||
|
jQuery('#emptysearchcondition').on('click',function(){
|
||||||
|
jQuery('#searchval').val('');
|
||||||
|
jQuery('#searchval').closest('form').submit();
|
||||||
|
jQuery('#emptysearchcondition').hide();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
78
admin/appmarket/template/import.htm
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="static/select2/select2.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="static/select2/select2-bootstrap.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="static/css/checkbox.css">
|
||||||
|
<link href="static/css/app_manage.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<script src="admin/scripts/admin.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="static/js/header.js"></script>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix" style="border-top:1px solid #FFF">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
<div class="left-drager-op">
|
||||||
|
<div class="left-drager-sub"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="main-header clearfix">
|
||||||
|
<h4 class="main-header-title navbar-left"><a href="{BASESCRIPT}?mod=appmarket">{lang goback}</a> | {lang import_type_app}</h4>
|
||||||
|
<div class="button_add_content">
|
||||||
|
<a href="{BASESCRIPT}?mod=appmarket&op=edit&do=add" id="button_add1" title="{lang add_app}" class="hide">+</a>
|
||||||
|
<a href="{BASESCRIPT}?mod=appmarket&op=cp&do=import" id="button_add2" class="hide" title="{lang import_type_app}" style="font-size:20px ;"><span class="glyphicon glyphicon-download-alt"></span></a>
|
||||||
|
<a href="javascript:;" class="" id="button_add">+</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="main-content clearfix" style="padding:25px;border-top:1px solid #FFF">
|
||||||
|
<form id="importform" name="importform" class="form-horizontal form-horizontal-left" action="{BASESCRIPT}?mod=appmarket&op=cp&do=import" method="post" enctype="multipart/form-data">
|
||||||
|
<input type="hidden" name="importsubmit" value="true" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<dl>
|
||||||
|
<dt>{lang choose_import_way}</dt>
|
||||||
|
<dd class="clearfix">
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="importtype" value="file" checked="checked" onclick="document.getElementById('importfile').style.display='';document.getElementById('importtxt').style.display='none';" />{lang uploading_files}</label>
|
||||||
|
<label class="radio radio-inline"><input type="radio" name="importtype" value="txt" onclick="document.getElementById('importfile').style.display='none';document.getElementById('importtxt').style.display='';" />{lang import_paste_text}</label>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<dl id="importfile">
|
||||||
|
<dt>{lang import_upload}</dt>
|
||||||
|
<dd class="clearfix"><input type="file" class="form-control" name="importfile" style="padding:5px;" /></dd>
|
||||||
|
</dl>
|
||||||
|
<dl id="importtxt" style="display:none">
|
||||||
|
<dt>{lang import_paste_data}:</dt>
|
||||||
|
<dd class="clearfix"><textarea type="textarea" class="form-control" style="width:80%;" name="importtxt" rows="5"></textarea></dd>
|
||||||
|
</dl>
|
||||||
|
<input type="submit" class="btn btn-primary" value="{lang submit}" style="padding:6px 25px" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
jQuery('#button_add').click(function(){
|
||||||
|
if(jQuery("#button_add1").hasClass('hide')){
|
||||||
|
jQuery("#button_add").html("×");
|
||||||
|
jQuery("#button_add1").removeClass("hide");
|
||||||
|
jQuery("#button_add2").removeClass("hide");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"-124px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"-62px"},500);
|
||||||
|
}else{
|
||||||
|
jQuery("#button_add").html("+");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"0px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"0px"},500);
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery("#button_add1").addClass("hide");
|
||||||
|
jQuery("#button_add2").addClass("hide");
|
||||||
|
},500)
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
287
admin/appmarket/template/index.htm
Normal file
@@ -0,0 +1,287 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<link href="{MOD_PATH}/images/market.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
.app-name-wrapper {
|
||||||
|
padding-left: 55px;
|
||||||
|
position: relative;
|
||||||
|
max-width:250px;
|
||||||
|
min-height:50px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appicon {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 2px;
|
||||||
|
}.app-name-wrapper .appicon img {
|
||||||
|
max-width: 45px;
|
||||||
|
max-height: 45px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname{
|
||||||
|
margin:0;
|
||||||
|
line-height:30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname a{
|
||||||
|
color:#000;
|
||||||
|
font-weight:500;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appdesc{
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color:#999;
|
||||||
|
font-size:13px;
|
||||||
|
cursor:default;
|
||||||
|
}
|
||||||
|
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td{
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
.group-td-wrapper{
|
||||||
|
max-width:120px;
|
||||||
|
white-space:normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span {
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span>img {
|
||||||
|
margin:0;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
.tag-td-wrapper{
|
||||||
|
max-width:120px;
|
||||||
|
white-space:normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.tag-td-wrapper a{
|
||||||
|
color:#333;
|
||||||
|
display:inline-block;
|
||||||
|
padding:0 2px;
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.app-info a{
|
||||||
|
color:#999;
|
||||||
|
}
|
||||||
|
.app-info .select-info{
|
||||||
|
position:absolute;
|
||||||
|
left:0;
|
||||||
|
top:10px;
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
.main-header{
|
||||||
|
padding:5px
|
||||||
|
}
|
||||||
|
.main-header>div{
|
||||||
|
line-height:34px;
|
||||||
|
/*margin:0 5px;*/
|
||||||
|
}
|
||||||
|
.checkbox-custom{
|
||||||
|
margin-bottom:0;
|
||||||
|
}
|
||||||
|
.table td img {
|
||||||
|
max-width: 45px;
|
||||||
|
max-height: 45px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="all-center-top clearfix">
|
||||||
|
<div class="app-info pull-left">
|
||||||
|
<a href="{MOD_URL}">{lang total}<span class="num">$count</span>{lang ge}{lang app}</a>
|
||||||
|
<span class="select-info">{lang selected}<span class="num">$count</span>{lang ge}{lang app}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tag-filter dropdown pull-right">
|
||||||
|
|
||||||
|
<a href="javascript:;" data-toggle="dropdown" role="button" id="tag-drop" class="dropdown-toggle btn btn-link">{eval echo $tagid?$tags[$tagid]['tagname']:lang('label');}<b class="caret"></b></a>
|
||||||
|
<ul aria-labelledby="tag-drop" role="menu" class="dropdown-menu" id="tag-drop-menu">
|
||||||
|
<li>
|
||||||
|
<a href="javascript:;" onclick="screen_app('0','$_GET['group']')";>{lang all}</a>
|
||||||
|
</li>
|
||||||
|
<!--{loop $tags $value}-->
|
||||||
|
<li>
|
||||||
|
<a href="javascript:;" onclick="screen_app('$value['tagid']','$_GET['group']')";>$value['tagname']</a>
|
||||||
|
</li>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="group-filter dropdown pull-right">
|
||||||
|
<a href="{MOD_URL}&group=$group" data-toggle="dropdown" role="button" id="drop-group" class="dropdown-toggle btn btn-link">{eval echo $group?$grouptitle[$group]:lang('group_permissions');}<b class="caret"></b></a>
|
||||||
|
<ul aria-labelledby="drop-group" role="menu" class="dropdown-menu" id="drop-group-menu">
|
||||||
|
<!--{loop $grouptitle $key $value}-->
|
||||||
|
<li role="presentation">
|
||||||
|
<a href="javascript:;" onclick="screen_app('$_GET['tagid']','$key')"; tabindex="-1" role="menuitem">$value</a>
|
||||||
|
</li>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="button_add_content">
|
||||||
|
<a href="{MOD_URL}&op=edit&do=add&refer=$refer" id="button_add1" title="{lang add_app}" class="hide">+</a>
|
||||||
|
<a href="{MOD_URL}&op=import&refer=$refer" id="button_add2" class="hide" title="{lang import_type_app}" style="font-size:20px ;"><i class="glyphicon glyphicon-download-alt"></i></a>
|
||||||
|
<a href="javascript:;" id="button_add" style="z-index: 10;">+</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-content clearfix" style="border-top:1px solid #FFF;padding:0;">
|
||||||
|
<form id="appform" name="appform" class="form-horizontal" action="{MOD_URL}" method="post">
|
||||||
|
<input type="hidden" name="appsubmit" value="true" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<th >{lang application_name}</th>
|
||||||
|
<th >{lang supplier}</th>
|
||||||
|
<th >{lang label}</th>
|
||||||
|
<th >{lang group_permissions}</th>
|
||||||
|
|
||||||
|
<th >{lang operation}</th>
|
||||||
|
</thead>
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="$value['appurl']" target="_blank" class="appicon" style="float: left;padding-right: 5px;"><img src="$value['appico']?t={eval echo time()}" style="margin:0" /></a>
|
||||||
|
<p class="appname">
|
||||||
|
<!--{if $value['appadminurl']}-->
|
||||||
|
<a href="$value['appadminurl']" target="_blank" >$value['appname']</a>
|
||||||
|
<!--{else}-->
|
||||||
|
<a href="$value['appurl']" target="_blank" >$value['appname']</a>
|
||||||
|
<!--{/if}-->
|
||||||
|
<small class="text-muted" title="{lang version}">$value['version']</small>
|
||||||
|
</p>
|
||||||
|
<div class="appdesc" title="$value['appdesc']"> {eval echo $value['appdesc']?$value['appdesc']:lang('none');}</div>
|
||||||
|
<!-- </div> -->
|
||||||
|
</td>
|
||||||
|
<td>$value['vendor']</td>
|
||||||
|
<td>
|
||||||
|
<div class="tag-td-wrapper">
|
||||||
|
<!--{loop $value['tags'] $key $value1}-->
|
||||||
|
<a href="{MOD_URL}&tagid=$value1[tagid]">$value1[tagname]</a>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<!--{if $value['department']}-->
|
||||||
|
<div class="group-td-wrapper">
|
||||||
|
<!--{loop $value['department'] $key $value1}-->
|
||||||
|
|
||||||
|
<span appid="$value['appid']" orgid="$key" class="label label-default " style="display:inline-block"> <img src="dzz/system/images/organization.png" >
|
||||||
|
{eval $i=0;}
|
||||||
|
<!--{loop $value1 $value2}-->
|
||||||
|
<!--{if $i>0}-->-<!--{/if}-->$value2[orgname]
|
||||||
|
{eval $i++;}
|
||||||
|
<!--{/loop}-->
|
||||||
|
</span>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</div>
|
||||||
|
<!--{else}-->
|
||||||
|
$value['grouptitle']
|
||||||
|
<!--{/if}-->
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<!--{if $value['appadminurl']}-->
|
||||||
|
<a class="btn btn-small btn-info-outline" href="$value['appadminurl']">{lang set}</a>
|
||||||
|
<!--{/if}-->
|
||||||
|
<a class="btn btn-primary-outline btn-small" href="{MOD_URL}&op=edit&do=edit&appid=$value['appid']&refer=$refer" title="{lang edit}">{lang edit}</a>
|
||||||
|
|
||||||
|
<!--{if $value['system']!=2}-->
|
||||||
|
<!--{if $value['available']==1}-->
|
||||||
|
<a class="btn btn-warning-outline btn-small" href="{MOD_URL}&op=cp&do=disable&appid=$value['appid']&refer=$refer" title="{lang close}">{lang close}</a>
|
||||||
|
<!--{else}-->
|
||||||
|
<a class="btn btn-success-outline btn-small" href="{MOD_URL}&op=cp&do=enable&appid=$value['appid']&refer=$refer" title="{lang enable}">{lang enable}</a>
|
||||||
|
<a class="btn btn-danger-outline btn-small" href="{MOD_URL}&op=cp&do=uninstall&appid=$value['appid']&refer=$refer" title="{lang uninstall}" onclick="if(confirm('{lang list_uninstall_application}'))return true;else return false">{lang uninstall}</a>
|
||||||
|
<!--{/if}-->
|
||||||
|
<!--{else}-->
|
||||||
|
<!--{if $value["available"]!=1}-->
|
||||||
|
<a class="btn btn-small btn-success-outline" href="{MOD_URL}&op=cp&do=enable&appid=$value['appid']&refer=$refer" title="{lang enable}">{lang enable}</a>
|
||||||
|
<!--{/if}-->
|
||||||
|
<!--{/if}-->
|
||||||
|
<a class="btn btn-primary-outline btn-small" href="{MOD_URL}&op=cp&do=export&appid=$value['appid']&refer=$refer" title="{lang export}" target="_blank">{lang export}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<!--{if $multi}-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="20" align="center" style="border:none">$multi </td>
|
||||||
|
</tr>
|
||||||
|
<!--{/if}-->
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
function screen_app(tagid,group){
|
||||||
|
var url = MOD_URL;
|
||||||
|
if(tagid){
|
||||||
|
url += '&tagid='+tagid;
|
||||||
|
}
|
||||||
|
if(group){
|
||||||
|
url += '&group='+group;
|
||||||
|
}
|
||||||
|
var inputval = jQuery('#screen_keyword').val();
|
||||||
|
if(inputval){
|
||||||
|
url += '&keyword='+inputval;
|
||||||
|
}
|
||||||
|
console.log(url);
|
||||||
|
// return false;
|
||||||
|
window.location.href =url;
|
||||||
|
}
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
//start_check_upgrade( '{$value['appid']}' );
|
||||||
|
<!--{/loop}-->
|
||||||
|
function start_check_upgrade(appid){
|
||||||
|
jQuery.post({
|
||||||
|
type:'post',
|
||||||
|
async: true,
|
||||||
|
url:'{MOD_URL}&op=upgrade_app_ajax&operation=check_upgrade&appid='+appid+'&t='+new Date().getTime(),
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+mid).show().text(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery("#"+appid+"_update").removeClass("hidden");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery('#button_add').click(function(){
|
||||||
|
if(jQuery("#button_add1").hasClass('hide')){
|
||||||
|
jQuery("#button_add").html("×");
|
||||||
|
jQuery("#button_add1").removeClass("hide");
|
||||||
|
jQuery("#button_add2").removeClass("hide");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"-124px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"-62px"},500);
|
||||||
|
}else{
|
||||||
|
jQuery("#button_add").html("+");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"0px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"0px"},500);
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery("#button_add1").addClass("hide");
|
||||||
|
jQuery("#button_add2").addClass("hide");
|
||||||
|
},500)
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
18
admin/appmarket/template/left.htm
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<ul class="nav-stacked">
|
||||||
|
<li <!--{if $op=='index' || ($op=='edit' && $appid)}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{MOD_URL}"><i class="glyphicon glyphicon-file"></i> {lang installed}</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li <!--{if $op=='upgrade_app' || $op=='appupgrade'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{MOD_URL}&op=appupgrade&refer=$refer"><i class="glyphicon glyphicon-upload"></i> {lang upgrade} <span id="update_app_num" class="badge badge-danger <!--{if ($upsum=get_update_app_num())<1}-->hide<!--{/if}-->">$upsum</span></a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $op=='cloudappmarket' || $op=='list'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{MOD_URL}&op=cloudappmarket"><i class="glyphicon glyphicon-th-large"></i> {lang appmarket}</a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $op=='extopen'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{MOD_URL}&op=extopen"><i class="glyphicon glyphicon-filter"></i> {lang open_way}</a>
|
||||||
|
</li>
|
||||||
|
<!--<li <!–{if $op=='default'}–>class="active"<!–{/if}–>>
|
||||||
|
<a href="{MOD_URL}&op=default"><i class="glyphicon glyphicon-cog"></i> {lang permission_management}</a>
|
||||||
|
</li>-->
|
||||||
|
</ul>
|
||||||
75
admin/appmarket/template/list.htm
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
<div class="left-drager-op">
|
||||||
|
<div class="left-drager-sub"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="main-header clearfix">
|
||||||
|
<ul class="nav navbar-nav nav-pills-bottomguide">
|
||||||
|
<li <!--{if $op=='cloudappmarket'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=cloudappmarket">{lang appmarket}</a>
|
||||||
|
</li>
|
||||||
|
<li <!--{if $op=='list'}-->class="active"<!--{/if}-->>
|
||||||
|
<a href="{BASESCRIPT}?mod={MOD_NAME}&op=list&do=notinstall">{lang appInLocal}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="button_add_content">
|
||||||
|
<a href="{BASESCRIPT}?mod=appmarket&op=edit&do=add&refer=$refer" id="button_add1" title="{lang add_app}" class="hide">+</a>
|
||||||
|
<a href="{BASESCRIPT}?mod=appmarket&op=cp&do=import&refer=$refer" id="button_add2" class="hide" title="{lang import_type_app}" style="font-size:20px ;"><i class="glyphicon glyphicon-download-alt"></i></a>
|
||||||
|
<a href="javascript:;" id="button_add" style="z-index: 10;">+</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="main-content clearfix" style="border-top:1px solid #FFF">
|
||||||
|
<!--{if $do=='notinstall'}-->
|
||||||
|
|
||||||
|
<!--{template list_list_notinstall}-->
|
||||||
|
|
||||||
|
<!--{elseif $do=='available'}-->
|
||||||
|
|
||||||
|
<!--{template list_list_available}-->
|
||||||
|
|
||||||
|
<!--{elseif $do=='updatelist'}-->
|
||||||
|
|
||||||
|
<!--{template list_list_upgrade}-->
|
||||||
|
|
||||||
|
<!--{/if}-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
jQuery('#button_add').click(function(){
|
||||||
|
if(jQuery("#button_add1").hasClass('hide')){
|
||||||
|
jQuery("#button_add").html("×");
|
||||||
|
jQuery("#button_add1").removeClass("hide");
|
||||||
|
jQuery("#button_add2").removeClass("hide");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"-124px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"-62px"},500);
|
||||||
|
}else{
|
||||||
|
jQuery("#button_add").html("+");
|
||||||
|
jQuery("#button_add1").stop().animate({top:"0px"},500);
|
||||||
|
jQuery("#button_add2").stop().animate({top:"0px"},500);
|
||||||
|
setTimeout(function(){
|
||||||
|
jQuery("#button_add1").addClass("hide");
|
||||||
|
jQuery("#button_add2").addClass("hide");
|
||||||
|
},500)
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
42
admin/appmarket/template/list_list_available.htm
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<table class="table table-hover " style="margin:0;">
|
||||||
|
<thead>
|
||||||
|
<th>{lang application_name}</th>
|
||||||
|
<th>{lang group_permissions}</th>
|
||||||
|
<th>{lang version}</th>
|
||||||
|
<th>{lang dir}</th>
|
||||||
|
<th>{lang supplier}</th>
|
||||||
|
<th>{lang operation}</th>
|
||||||
|
</thead>
|
||||||
|
<!--{if $list}-->
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="$value['appurl']" target="_blank"><img src="$value['appico']" />$value['appname']</a>
|
||||||
|
</td>
|
||||||
|
<td>$value['grouptitle']</td>
|
||||||
|
<td>
|
||||||
|
<!--{loop $value['department'] $key $value1}-->
|
||||||
|
<p appid="$value['appid']" orgid="$key"> {eval $i=0;}
|
||||||
|
<!--{loop $value1 $value2}-->
|
||||||
|
<!--{if $i>0}-->--><!--{/if}-->$value2[orgname]
|
||||||
|
{eval $i++;}
|
||||||
|
<!--{/loop}-->
|
||||||
|
</p>
|
||||||
|
<!--{/loop}-->
|
||||||
|
</td>
|
||||||
|
<td>$value['identifier']</td>
|
||||||
|
<td>$value['vendor']</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-link" href="{BASESCRIPT}?mod=app&op=edit&do=edit&appid=$value['appid']&refer=$refer" title="{lang edit}"><i class="glyphicon glyphicon-edit"></i></a>
|
||||||
|
<a class="btn btn-link" href="{BASESCRIPT}?mod=app&op=cp&do=enable&appid=$value['appid']&refer=$refer" title="{lang enable}"><i class="glyphicon glyphicon-ok-circle"></i></a>
|
||||||
|
<a class="btn btn-link" href="{BASESCRIPT}?mod=app&op=cp&do=export&appid=$value['appid']&refer=$refer" title="{lang export}"><i class="glyphicon glyphicon-export"></i></a>
|
||||||
|
<a class="btn btn-link text-danger" style="color:#e83110" href="{BASESCRIPT}?mod=app&op=cp&do=uninstall&appid=$value['appid']&refer=$refer" title="{lang uninstall}" onclick="if(confirm('{lang list_uninstall_application}'))return true;else return false"><i class="glyphicon glyphicon-remove-circle"></i></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<!--{else}-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="10">{lang list_no_related_application}</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/if}-->
|
||||||
|
</table>
|
||||||
30
admin/appmarket/template/list_list_notinstall.htm
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<table class="table table-hover " style="margin:0;">
|
||||||
|
<thead>
|
||||||
|
<th>{lang application_name}</th>
|
||||||
|
<th>{lang group_permissions}</th>
|
||||||
|
<th>{lang version}</th>
|
||||||
|
<th>{lang dir}</th>
|
||||||
|
<th>{lang supplier}</th>
|
||||||
|
<th>{lang operation}</th>
|
||||||
|
</thead>
|
||||||
|
<!--{if $list}-->
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="$value['appurl']" target="_blank"><img src="$value['appico']" />$value['appname']</a>
|
||||||
|
</td>
|
||||||
|
<td>$value['grouptitle']</td>
|
||||||
|
<td>$value['version']</td>
|
||||||
|
<td>$value['identifier']</td>
|
||||||
|
<td>$value['vendor']</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-link" href="{BASESCRIPT}?mod=appmarket&op=cp&do=install&app_path=$value['app_path']&app_name=$value['identifier']&refer=$refer" title="{lang install}">{lang install}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<!--{else}-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="10">{lang list_notinstall_application}</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/if}-->
|
||||||
|
</table>
|
||||||
30
admin/appmarket/template/list_list_upgrade.htm
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<table class="table table-hover " style="margin:0;">
|
||||||
|
<thead>
|
||||||
|
<th>{lang application_name}</th>
|
||||||
|
<th>{lang group_permissions}</th>
|
||||||
|
<th>{lang version}</th>
|
||||||
|
<th>{lang dir}</th>
|
||||||
|
<th>{lang supplier}</th>
|
||||||
|
<th>{lang operation}</th>
|
||||||
|
</thead>
|
||||||
|
<!--{if $list}-->
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="$value['appurl']" target="_blank"><img src="$value['appico']" />$value['appname']</a>
|
||||||
|
</td>
|
||||||
|
<td>$value['grouptitle']</td>
|
||||||
|
<td>$value['version']-> $value['newversion']</td>
|
||||||
|
<td>$value['identifier']</td>
|
||||||
|
<td>$value['vendor']</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-link" href="{BASESCRIPT}?mod=app&op=cp&do=upgrade&appid=$value['appid']&refer=$refer" title="{lang nav_db_runquery}">{lang nav_db_runquery}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<!--{else}-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="10">{lang list_update_application}</td>
|
||||||
|
</tr>
|
||||||
|
<!--{/if}-->
|
||||||
|
</table>
|
||||||
20
admin/appmarket/template/uninstall_confirm.htm
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<div class="container" style="padding:30px;">
|
||||||
|
<div class="well" style="overflow:hidden;">
|
||||||
|
<form id="confirm_uninstall_form" name="confirm_uninstall_form" class="form-horizontal-left form-horizontal" action="{MOD_URL}&op=cp&do=uninstall" method="post" >
|
||||||
|
<input type="hidden" name="confirmsubmit" value="true" />
|
||||||
|
<input type="hidden" name="adminurl" value="$_GET['adminurl']" />
|
||||||
|
<input type="hidden" name="appid" value="$appid" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<p class="text-danger">
|
||||||
|
{$app_delete_confirm}
|
||||||
|
</p>
|
||||||
|
<p><input id="confirm" type="text" class="form-control" style="max-width:200px;" name="confirm" value="" /></p>
|
||||||
|
|
||||||
|
<button type="button" class="btn btn1 btn-danger" onclick="if(document.getElementById('confirm').value!='DELETE'){document.getElementById('confirm').focus();}else{document.getElementById('confirm_uninstall_form').submit()}">{lang app_sure_delete}</button>
|
||||||
|
<button type="button" class="btn btn1 btn-default" onclick="location.href='{$refer}';return false;">{lang app_not_delete}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
403
admin/appmarket/template/upgrade.htm
Normal file
@@ -0,0 +1,403 @@
|
|||||||
|
<!--{template common/header_simple_start}-->
|
||||||
|
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="static/css/checkbox.css">
|
||||||
|
<link href="{MOD_PATH}/images/market.css?{VERHASH}" rel="stylesheet" media="all">
|
||||||
|
<script type="text/javascript" src="admin/scripts/admin.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
|
||||||
|
<style>
|
||||||
|
.app_upgradelist{
|
||||||
|
margin: auto;
|
||||||
|
padding: 8px;
|
||||||
|
border-bottom: 1px solid #f2f2f2;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.app_upgradelist .progess{
|
||||||
|
position: absolute;
|
||||||
|
top:0;
|
||||||
|
left: 0;
|
||||||
|
height:30px;width:0%;
|
||||||
|
height: 100%;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.app_upgradelist .progess .upgrade_progess{
|
||||||
|
background-color:#dff0d8;
|
||||||
|
position: absolute;
|
||||||
|
width:0%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-name-wrapper {
|
||||||
|
padding-left: 55px;
|
||||||
|
position: relative;
|
||||||
|
max-width:350px;
|
||||||
|
min-height:50px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appicon {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 2px;
|
||||||
|
}.app-name-wrapper .appicon img {
|
||||||
|
max-width: 45px;
|
||||||
|
max-height: 45px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname{
|
||||||
|
margin:0;
|
||||||
|
line-height:30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appname a{
|
||||||
|
color:#000;
|
||||||
|
font-weight:500;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
.app-name-wrapper .appdesc{
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color:#999;
|
||||||
|
font-size:13px;
|
||||||
|
cursor:default;
|
||||||
|
}
|
||||||
|
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td{
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
.group-td-wrapper{
|
||||||
|
max-width:320px;
|
||||||
|
white-space:normal;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span {
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.group-td-wrapper>span>img {
|
||||||
|
margin:0;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-info a{
|
||||||
|
color:#999;
|
||||||
|
}
|
||||||
|
.app-info .select-info{
|
||||||
|
position:absolute;
|
||||||
|
left:30px;
|
||||||
|
top:9px;
|
||||||
|
display:none;
|
||||||
|
background-color:#FFF;
|
||||||
|
padding:5px 10px;
|
||||||
|
line-height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-header{
|
||||||
|
padding:5px
|
||||||
|
}
|
||||||
|
.main-header>div{
|
||||||
|
line-height:34px;
|
||||||
|
margin:0 5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
#update_selected{
|
||||||
|
margin-left:20px;
|
||||||
|
}
|
||||||
|
.checkbox-custom{
|
||||||
|
margin-bottom:0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!--{template common/header_simple_end}-->
|
||||||
|
<!--{template common/commer_header}-->
|
||||||
|
<div class="bs-container clearfix">
|
||||||
|
<div class="bs-left-container clearfix">
|
||||||
|
<!--{template left}-->
|
||||||
|
</div>
|
||||||
|
<div class="left-drager">
|
||||||
|
</div>
|
||||||
|
<div class="bs-main-container">
|
||||||
|
<div class="all-center-top clearfix">
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="checkbox-custom checkbox-primary" style="margin-top: .6em;">
|
||||||
|
<input type="checkbox" name="chkall" id="chkall" >
|
||||||
|
<label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="app-info pull-left">
|
||||||
|
<a href="{BASESCRIPT}?mod=appmarket">{lang total}<span class="num">$count</span>{lang ge}{lang app}</a>
|
||||||
|
<div class="select-info">
|
||||||
|
{lang selected}<span class="num">0</span>{lang ge}{lang app}
|
||||||
|
<a class="btn btn-success-outline " id="update_selected" title="{lang update_onekey}" href="javascript:;" onclick="upgrade_all();"><i class="glyphicon glyphicon-upload"></i> {lang update_onekey}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<button class="btn btn-success-outline " id="update_check" title="{lang app_upgrade_check_need_update}" onclick="upgrade_check(this);" data-loading-text="{lang app_upgrade_check_need_update}">{lang app_upgrade_check_need_update2}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="main-content clearfix" style="border-top:1px solid #FFF;padding:0;">
|
||||||
|
<form id="appform" name="appform" class="form-horizontal" action="{BASESCRIPT}?mod=appmarket" method="post">
|
||||||
|
<input type="hidden" name="appsubmit" value="true" />
|
||||||
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||||
|
<!--{loop $list $value}-->
|
||||||
|
<div id="app_div_{$value['appid']}" class="row app_upgradelist" >
|
||||||
|
<div id="progess_{$value['appid']}" class="progess">
|
||||||
|
<span id="upgrade_progess_{$value['appid']}" class="upgrade_progess"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-sm-4 col-xs-4" style="padding-left: 4px;">
|
||||||
|
<div class="checkbox-custom checkbox-primary" style="float: left; line-height: 50px; ">
|
||||||
|
<input type="checkbox" name="del[]" value="$value['appid']" data-mid="$value['mid']">
|
||||||
|
<label></label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="app-name-wrapper" style="margin-left: 30px;">
|
||||||
|
{eval $appadminurl=$value['appadminurl']?$value['appadminurl']:$value['appurl']}
|
||||||
|
<a href="$appadminurl" target="_blank" class="appicon"><img src="$value['appico']" style="margin:0" /></a>
|
||||||
|
<p class="appname">
|
||||||
|
<a href="$appadminurl" target="_blank" class="">$value['appname']</a>
|
||||||
|
</p>
|
||||||
|
<div class="appdesc" title="$value['appdesc']">{eval echo $value['upgrade_version']['desc_short']?$value['upgrade_version']['desc_short']:lang('none');}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2 col-sm-2 col-xs-2">
|
||||||
|
<p>{lang installed}:$value['version']</p>
|
||||||
|
<div>{lang newest}:{$value['upgrade_version']['version']}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-sm-4 col-xs-4">
|
||||||
|
<div class="group-td-wrapper">
|
||||||
|
{$value['upgrade_version']['desc']}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2 col-sm-2 col-xs-2">
|
||||||
|
<a class="btn btn-success-outline" id="upgrade_info_{$value['appid']}" href="javascript:;" onclick="start_check_upgrade('$value['appid']',1);" title="{lang update_onekey}">{lang update_onekey}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--{/loop}-->
|
||||||
|
<table class="table table-hover">
|
||||||
|
<!--{if $multi}-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="20" align="center">$multi </td>
|
||||||
|
</tr>
|
||||||
|
<!--{/if}-->
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var upgrade=false;
|
||||||
|
var appids=[];
|
||||||
|
var mids=[];
|
||||||
|
var nowupgradeappid=0;
|
||||||
|
jQuery('.left-drager').leftDrager_layout();
|
||||||
|
jQuery('input[name="del[]"]').on('change',function(){
|
||||||
|
//console.log('change==='+this.value);
|
||||||
|
checkSelected();
|
||||||
|
});
|
||||||
|
jQuery('#chkall').on('change',function(){
|
||||||
|
if(jQuery(this).prop('checked')){
|
||||||
|
jQuery('input[name="del[]"]').prop('checked',true);
|
||||||
|
}else{
|
||||||
|
jQuery('input[name="del[]"]').prop('checked',false);
|
||||||
|
}
|
||||||
|
checkSelected();
|
||||||
|
});
|
||||||
|
|
||||||
|
function checkSelected(){
|
||||||
|
var i=0;
|
||||||
|
appids=[];
|
||||||
|
mids=[];
|
||||||
|
jQuery('input[name="del[]"]').each(function(){
|
||||||
|
//console.log(this);
|
||||||
|
if(jQuery(this).prop('checked')){
|
||||||
|
appids.push(this.value);
|
||||||
|
mids.push(jQuery(this).data("mid"));
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
});
|
||||||
|
var num=appids.length;
|
||||||
|
//console.log([i,num]);
|
||||||
|
if(num>0){
|
||||||
|
jQuery('.select-info').show().find('.num').text(num);
|
||||||
|
if(i>0 && i==num){//全部选中时
|
||||||
|
jQuery('#chkall').prop('checked',true);
|
||||||
|
}else{
|
||||||
|
jQuery('#chkall').prop('checked',false);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
jQuery('.select-info').hide().find('.num').text('0');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function upgrade_check(obj){//强制检测更新,不受一天一次的限制,一般用于刚上传或修改了应用的配置信息,通过这个按钮可以强制刷新出需要更新的应用
|
||||||
|
jQuery(obj).button('loading');
|
||||||
|
jQuery.post('{MOD_URL}&op=check_upgrade',function(json){
|
||||||
|
var oldsum=parseInt(jQuery('#update_app_num').text());
|
||||||
|
if(json.sum!=oldsum){
|
||||||
|
window.location.reload();
|
||||||
|
}else{
|
||||||
|
showmessage('{lang no_new_updates_were_detected}','success',1000,1);
|
||||||
|
}
|
||||||
|
jQuery(obj).button('reset');
|
||||||
|
},'json');
|
||||||
|
}
|
||||||
|
function upgrade_all(){
|
||||||
|
var num=appids.length;
|
||||||
|
if( upgrade ){
|
||||||
|
alert("{lang upgrading_in_progress_please_wait_a_minute}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(num>0){
|
||||||
|
start_check_upgrade( 0 ,2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function start_check_upgrade(appid,s){
|
||||||
|
var url="";
|
||||||
|
var appid = parseInt(appid);
|
||||||
|
var url_s='{MOD_URL}&op=upgrade_app_ajax&operation=check_upgrade&appid=';
|
||||||
|
if( upgrade ){
|
||||||
|
//alert("正在升级,请稍等...");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
upgrade=true;
|
||||||
|
if( s==2 ){
|
||||||
|
if(nowupgradeappid==0 && appids.length>0 ){
|
||||||
|
url=url_s+appids[0];
|
||||||
|
nowupgradeappid=appids[0];
|
||||||
|
appids.shift();
|
||||||
|
}else{
|
||||||
|
url=url_s+nowupgradeappid;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if( appid==0 || isNaN(appid) ){
|
||||||
|
appid=nowupgradeappid;
|
||||||
|
}
|
||||||
|
url=url_s+appid;
|
||||||
|
nowupgradeappid=appid;
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'GET',
|
||||||
|
async: false,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
nowupgradeappid=0;
|
||||||
|
upgrade=false;
|
||||||
|
if( appids.length>0 && s==2){
|
||||||
|
nowupgradeappid=0;
|
||||||
|
url=url_s+appids[0];
|
||||||
|
start_check_upgrade(url,s);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.mid>0){
|
||||||
|
startupgrade(json.url,s);
|
||||||
|
}else{
|
||||||
|
upgradeover(json.url,s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startupgrade(url,s){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'GET',
|
||||||
|
async: false,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
upgrade=false;
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
startgetcrossorpatchfile(json.url,s);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startgetcrossorpatchfile(url,s){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'GET',
|
||||||
|
async: false,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
upgrade=false;
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step==2){
|
||||||
|
startgetcrossorpatchfile(json.url,s);
|
||||||
|
}else{
|
||||||
|
startupgradefile(json.url,s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startupgradefile(url,s){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'GET',
|
||||||
|
async: false,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
upgrade=false;
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).animate({width:json.percent+"%"},json.second,function(){
|
||||||
|
if(json.step!=5){
|
||||||
|
startupgradefile(json.url,s);
|
||||||
|
}else{
|
||||||
|
upgradeover(json.url,s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function upgradeover(url,s){
|
||||||
|
jQuery.ajax({
|
||||||
|
type:'GET',
|
||||||
|
async: false,
|
||||||
|
url:url,
|
||||||
|
data:{},
|
||||||
|
success:function(json){
|
||||||
|
if(json.status==0){
|
||||||
|
upgrade=false;
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
}else{
|
||||||
|
jQuery('#upgrade_info_'+nowupgradeappid).html(json.msg);
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).animate({width:"100%"},300,function(){
|
||||||
|
jQuery('#upgrade_progess_'+nowupgradeappid).css("width","0%");
|
||||||
|
upgrade=false;
|
||||||
|
start_check_upgrade(json.url,s);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
||||||
|
<!--{template common/footer_simple}-->
|
||||||
35
admin/appmarket/upgrade.php
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/* @authorcode codestrings
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author qchlian(3580164@qq.com)
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
@set_time_limit(0);
|
||||||
|
//卸载程序;
|
||||||
|
$applist_midnone=DB::fetch_all("select * from %t where mid=0 ",array('app_market'));
|
||||||
|
|
||||||
|
if( $applist_midnone ){
|
||||||
|
$dzz_upgrade = new dzz_upgrade_app();
|
||||||
|
foreach( $applist_midnone as $value){
|
||||||
|
$url=APP_CHECK_URL."market/app/getmid";//."index.php?mod=dzzmarket&op=index_ajax&operation=getmid";
|
||||||
|
$post_data = array(
|
||||||
|
"version"=>$value['version'],
|
||||||
|
"identifier"=>$value['identifier'],
|
||||||
|
"app_path"=>$value["app_path"]
|
||||||
|
);
|
||||||
|
$json = $dzz_upgrade->curlcloudappmarket($url,$post_data);
|
||||||
|
$json = json_decode($json,true);
|
||||||
|
if( $json["status"]==1){
|
||||||
|
$mid = $json["mid"];
|
||||||
|
DB::update('app_market',array('mid'=>$mid),"appid=".$value["appid"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$finish = true;
|
||||||
656
admin/appmarket/upgrade_app_ajax.php
Normal file
@@ -0,0 +1,656 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author qchlian 3580164@qq.com
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
@set_time_limit(0);
|
||||||
|
include_once DZZ_ROOT . './core/core_version.php';
|
||||||
|
include_once libfile('function/admin');
|
||||||
|
include_once libfile('function/cache');
|
||||||
|
include_once libfile('function/appmarket');
|
||||||
|
$step = intval($_GET['step']);
|
||||||
|
$op = $_GET['op'];
|
||||||
|
$step = $step ? $step : 1;
|
||||||
|
$operation = $_GET['operation'] ? trim($_GET['operation']) : 'upgrade';
|
||||||
|
header('Content-type:text/json');
|
||||||
|
$steplang = array('', lang('founder_upgrade_updatelist'), lang('founder_upgrade_download'), lang('founder_upgrade_compare'), lang('founder_upgrade_upgrading'), lang('founder_upgrade_complete'), 'dbupdate' => lang('founder_upgrade_dbupdate'));
|
||||||
|
if ($operation == 'check_upgrade' ) {//根据appid检查app应用是否需要更新
|
||||||
|
$appid = $_GET["appid"];
|
||||||
|
$appinfo = C::t('app_market')->fetch($appid);//C::tp_t('app_market')->find( $appid );
|
||||||
|
$time =dgmdate(TIMESTAMP,'Ymd');
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod=appmarket&op=upgrade',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>5,
|
||||||
|
"second"=>500,
|
||||||
|
"mid"=>$appinfo["mid"],
|
||||||
|
"msg"=> lang("app_upgrade_check_need_update")
|
||||||
|
);
|
||||||
|
//删除安装临时文件
|
||||||
|
$temp_download=DZZ_ROOT.'./data/update/app/'.$appinfo['app_path'].'/'.$appinfo['identifier'];
|
||||||
|
removedirectory($temp_download);
|
||||||
|
|
||||||
|
if($appinfo["check_upgrade_time"]==$time){//今天已经检查过是否需要更新
|
||||||
|
if( $appinfo["upgrade_version"]!="" ){
|
||||||
|
$return["url"] = ADMINSCRIPT .'?mod=appmarket&op=upgrade_app_ajax&appid='.$appid;
|
||||||
|
if($appinfo["mid"]==0){
|
||||||
|
$return["url"] = ADMINSCRIPT .'?mod=appmarket&op=upgrade_app_ajax&operation=localupgrade&appid='.$appid;
|
||||||
|
}
|
||||||
|
exit(json_encode($return));//已获取更新版本信息,待更新
|
||||||
|
}else{
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("app_upgrade_to_lastversion");
|
||||||
|
exit(json_encode($return));//不需要更新
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( $appinfo["mid"]==0 ){//判断本地应用是否升级
|
||||||
|
$file = DZZ_ROOT . './'.$appinfo['app_path'].'/' . $appinfo['identifier'] . '/dzz_app_' . $appinfo['identifier'] . '.xml';
|
||||||
|
if ( file_exists($file) ) {
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
if($apparray["app"]["version"]!=$appinfo["version"]){
|
||||||
|
$return["url"] = ADMINSCRIPT .'?mod=appmarket&op=upgrade_app_ajax&operation=localupgrade&appid='.$appid;
|
||||||
|
} else{
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("app_upgrade_to_lastversion");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("app_upgrade_to_lastversion");
|
||||||
|
}
|
||||||
|
exit(json_encode($return));
|
||||||
|
}else{
|
||||||
|
$dzz_upgrade = new dzz_upgrade_app();
|
||||||
|
//根据当前版本查询是否需要更新
|
||||||
|
$appinfo["mysqlversion"] = helper_dbtool::dbversion();
|
||||||
|
$appinfo["phpversion"] = PHP_VERSION ;
|
||||||
|
$appinfo["dzzversion"] = CORE_VERSION;
|
||||||
|
$response = $dzz_upgrade->check_upgrade_byversion( $appinfo );
|
||||||
|
|
||||||
|
if($response && $response["status"]==1 ) {
|
||||||
|
$map=array(
|
||||||
|
"appid"=>$appid,
|
||||||
|
"upgrade_version"=>serialize($response["data"]),
|
||||||
|
"check_upgrade_time"=>dgmdate(TIMESTAMP,'Ymd')
|
||||||
|
);
|
||||||
|
$re=C::t('app_market')->update($appid,$map);//C::tp_t('app_market')->where("appid=".$appid)->save( $map );
|
||||||
|
$return["url"] = ADMINSCRIPT .'?mod=appmarket&op=upgrade_app_ajax&appid='.$appid;
|
||||||
|
exit(json_encode($return));//需要更新
|
||||||
|
} else {
|
||||||
|
$map=array(
|
||||||
|
"appid"=>$appid,
|
||||||
|
"upgrade_version"=>"",
|
||||||
|
"check_upgrade_time"=>$time
|
||||||
|
);
|
||||||
|
$re=C::t('app_market')->update($appid,$map);//C::tp_t('app_market')->where("appid=".$appid)->save( $map );
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("app_upgrade_to_lastversion");
|
||||||
|
exit(json_encode($return));//不需要更新
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif($operation == 'upgrade' ){
|
||||||
|
$appid = $_GET["appid"];
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod=appmarket&op=upgrade',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>10,
|
||||||
|
"second"=>1,
|
||||||
|
"msg"=>lang("app_upgrade_newversion_will_start")
|
||||||
|
);
|
||||||
|
$appinfo = C::t('app_market')->fetch($appid);//C::tp_t('app_market')->find( $appid );
|
||||||
|
$respon =$appinfo["upgrade_version"];
|
||||||
|
if( $respon=="" ){
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang("app_upgrade_newversioninfo_error");
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$version =$appinfo["version"];
|
||||||
|
$release ="";
|
||||||
|
$charset = str_replace('-', '', strtoupper($_G['config']['output']['charset']));
|
||||||
|
$locale = '';
|
||||||
|
if ($charset == 'BIG5') {
|
||||||
|
$locale = 'TC';
|
||||||
|
} elseif ($charset == 'GBK') {
|
||||||
|
$locale = 'SC';
|
||||||
|
} elseif ($charset == 'UTF8') {
|
||||||
|
if ($_G['config']['output']['language'] == 'zh-cn' || $_G['config']['output']['language'] == 'zh_cn') {
|
||||||
|
$locale = 'SC';
|
||||||
|
} elseif ($_G['config']['output']['language'] == 'zh-tw' || $_G['config']['output']['language'] == 'zh_tw') {
|
||||||
|
$locale = 'TC';
|
||||||
|
}else{
|
||||||
|
$locale = 'SC';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$upgrade = unserialize($respon);
|
||||||
|
$dbversion = helper_dbtool::dbversion();
|
||||||
|
$dzzversion = CORE_VERSION;
|
||||||
|
//判断是否升级mysql 或者php
|
||||||
|
$charset='UTF8';
|
||||||
|
$upgraderow=array();
|
||||||
|
|
||||||
|
if(version_compare($upgrade['dzzversion'], $dzzversion) > 0 ) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_dzzversion_error', array('version' => $upgrade['dzzversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
if( version_compare($upgrade['phpversion'], PHP_VERSION) > 0 ) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_phpversion_error', array('version' => $upgrade['phpversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
if( version_compare($upgrade['mysqlversion'], $dbversion) > 0) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_mysqlversion_error', array('version' => $upgrade['mysqlversion']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
|
||||||
|
//检测新版本目录是否有变化,如果有变化则查询是否已存在插件
|
||||||
|
/*if( md5($upgrade["app_path"].$upgrade["identifier"])!= md5($appinfo["app_path"].$appinfo["identifier"])) {
|
||||||
|
$hasappinfo = C::tp_t('app_market')->where( array("identifier"=>$upgrade['identifier'], "app_path"=>$upgrade["app_path"] ) )->find();
|
||||||
|
if( $hasappinfo ){
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_newversion_folder_error', array('path' =>$upgrade["app_path"]."/".$upgrade['identifier']));
|
||||||
|
exit(json_encode($return));//不需要安装
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=patch&appid=' .$appid. '&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
elseif($operation == 'cross' || $operation == 'patch'){
|
||||||
|
$return=array(
|
||||||
|
"url"=>ADMINSCRIPT .'?mod=appmarket&op=upgrade',
|
||||||
|
"status"=>1,
|
||||||
|
"percent"=>10,
|
||||||
|
"second"=>0,
|
||||||
|
"step"=>0,
|
||||||
|
"msg"=> lang("app_upgrade_newversion_start")
|
||||||
|
);
|
||||||
|
|
||||||
|
if (0 && !$_G['setting']['bbclosed']) {//应用升级暂时可不关闭站点
|
||||||
|
$msg = '<p style="margin:10px 0;color:red">' . lang('upgrade_close_site') . '</p>';
|
||||||
|
$msg .= '<p style="margin:10px 0"><input type="button" class="btn btn-primary" onclick="window.location.reload();" value="' . lang('founder_upgrade_reset') . '" /></p>';
|
||||||
|
|
||||||
|
$msg .= "<p style=\"margin:10px 0\"><script type=\"text/javascript\">";
|
||||||
|
$msg .= "if(history.length > (BROWSER.ie ? 0 : 1)) document.write('<a href=\"javascript:history.go(-1);\" >" . lang('message_return') . "</a>');";
|
||||||
|
$msg .= "</script></p>";
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('upgrade_close_site') ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$step = intval($_REQUEST['step']);
|
||||||
|
$step = $step ? $step : 1;
|
||||||
|
|
||||||
|
$release = trim($_GET['release']);
|
||||||
|
$locale = trim($_GET['locale']);
|
||||||
|
$charset = trim($_GET['charset']);
|
||||||
|
$upgradeinfo = $upgrade_step = array();
|
||||||
|
|
||||||
|
$appid = $_GET["appid"];
|
||||||
|
$appinfo = C::t('app_market')->fetch($appid);//C::tp_t('app_market')->find( $appid );
|
||||||
|
if( !$appinfo["upgrade_version"] ){
|
||||||
|
$linkurl=ADMINSCRIPT.'?mod=appmarket&op=upgrade';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang( "app_upgrade_data_error" );
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$appinfo["app_path_old"]=$appinfo["app_path"];
|
||||||
|
$appinfo["identifier_old"]=$appinfo["identifier"];
|
||||||
|
|
||||||
|
$upgradeinfo = unserialize($appinfo["upgrade_version"]);
|
||||||
|
$upgradeinfo["latestversion"]= $upgradeinfo["version"];
|
||||||
|
|
||||||
|
//判断目录或标识发生变化 $upgradeinfo最新版本信息
|
||||||
|
if( md5($upgradeinfo["app_path"].$upgradeinfo["identifier"])!= md5($appinfo["app_path"].$appinfo["identifier"])) {
|
||||||
|
$upgradeinfo=getappidentifier($upgradeinfo); //获取并判断新标识名称
|
||||||
|
//如果有新标识名称 抛出错误停止更新
|
||||||
|
if( isset( $upgradeinfo["new_identifier"]) && $upgradeinfo["new_identifier"] ){
|
||||||
|
$linkurl=ADMINSCRIPT.'?mod=appmarket&op=upgrade';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang( $upgradeinfo["app_path"]."/".$upgradeinfo["identifier"]." 目录已存在,请重命名该目录或移除,防止重复或覆盖" );
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
//判断是否是路径不相等
|
||||||
|
if( $appinfo["app_path"]!=$upgradeinfo["app_path"]) {
|
||||||
|
$appinfo["app_path"]=$upgradeinfo["app_path"];
|
||||||
|
}
|
||||||
|
//版本判断
|
||||||
|
if( $appinfo["identifier"]!=$upgradeinfo["identifier"]) {
|
||||||
|
//如果新版本目录存在则 获取另外一个新版本标识名称
|
||||||
|
$appinfo["identifier"]=$upgradeinfo["identifier"];
|
||||||
|
//禁止标识相同的直接修改
|
||||||
|
if( isset( $upgradeinfo["new_identifier"]) && $upgradeinfo["new_identifier"] ){
|
||||||
|
$appinfo["identifier"]=$upgradeinfo["new_identifier"];
|
||||||
|
$appinfo["new_identifier"]=$upgradeinfo["new_identifier"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$appinfo["upgradeinfo"]=$upgradeinfo;
|
||||||
|
|
||||||
|
$dzz_upgrade = new dzz_upgrade_app();
|
||||||
|
if($step != 5 && !$_GET['fileupgrade'] ) {//$_GET['fileupgrade']是判断还未移动文件。因为移动文件后 updatefilelist 为空
|
||||||
|
//获取新版本文件列表
|
||||||
|
/*$updatefilelist = $dzz_upgrade->fetch_updatefile_list_bymd5($appinfo);
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_none', array('upgradeurl' => upgradeinformation_app(-1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
|
||||||
|
$updatemd5filelist = $updatefilelist['md5'];
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
|
||||||
|
//与本地文件对比过滤出更新文件
|
||||||
|
list($updatefilelist, $updatemd5filelist) = $dzz_upgrade->compare_basefile_bymd5($appinfo, $updatefilelist,$updatemd5filelist);
|
||||||
|
$theurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_exchange_none', array('upgradeurl' => upgradeinformation_app(-9)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}*/
|
||||||
|
$theurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($step == 1) {
|
||||||
|
$linkurl=$theurl. '&step=2';
|
||||||
|
$return["percent"]=15;
|
||||||
|
$return["second"]=1;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["msg"]= lang('app_upgrade_already_downloadfile' );
|
||||||
|
$return["step"]=2;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif($step == 2) {
|
||||||
|
//start 下载zip.md5
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_installapp_zip( $upgradeinfo );
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_none', array('upgradeurl' => upgradeinformation_app(-1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
$updatemd5filelist = $updatefilelist['md5'];
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
//end
|
||||||
|
|
||||||
|
$return["msg"]= lang('app_upgrade_downloading' );
|
||||||
|
$return["step"]=2;
|
||||||
|
$percent = 60;
|
||||||
|
|
||||||
|
$fileseq = intval($_GET['fileseq']);
|
||||||
|
$fileseq = $fileseq ? $fileseq : 1;
|
||||||
|
$position = intval($_GET['position']);
|
||||||
|
$position = $position ? $position : 0;
|
||||||
|
$offset = 1024 * 1024;
|
||||||
|
$packagesize = $upgradeinfo["packagesize"];
|
||||||
|
|
||||||
|
if($fileseq > count($updatefilelist)) {
|
||||||
|
$linkurl = $theurl.'&step=3';
|
||||||
|
$percent = 100;
|
||||||
|
$return["step"]=3;
|
||||||
|
$return["msg"]=lang('app_upgrade_download_complete', array('upgradeurl' => upgradeinformation_app(6)));
|
||||||
|
} else {
|
||||||
|
$downloadstatus = $dzz_upgrade->download_file($appinfo, $updatefilelist[$fileseq-1], '', $updatemd5filelist[$fileseq-1] , $position, $offset);
|
||||||
|
|
||||||
|
if($downloadstatus == 1) {
|
||||||
|
$linkurl = $theurl.'&step=2&fileseq='.$fileseq.'&position='.($position+$offset);
|
||||||
|
$percent =60+ sprintf("%2d", 40 * $position/$packagesize);//60+ sprintf("%2d", 40 * $fileseq/count($updatefilelist));
|
||||||
|
$file = $updatefilelist[$fileseq-1];
|
||||||
|
} elseif($downloadstatus == 2) {
|
||||||
|
$linkurl = $theurl.'&step=2&fileseq='.($fileseq+1);
|
||||||
|
$percent =60+ sprintf("%2d", 40 * $position/$packagesize);//60+ sprintf("%2d", 40 * $fileseq/count($updatefilelist));
|
||||||
|
$file = $updatefilelist[$fileseq-1];
|
||||||
|
} else {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_downloading_error', array('file' => $updatefilelist[$fileseq-1], 'upgradeurl'=>upgradeinformation_app(-3) )) ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$msg = lang('app_upgrade_downloading_file', array('file' => $updatefilelist[$fileseq - 1], 'percent' =>$percent. '%','upgradeurl'=>'')) ;
|
||||||
|
}
|
||||||
|
$stepover= 1;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=intval(50*$percent/100);
|
||||||
|
$return["second"]=1;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step == 3) {
|
||||||
|
$return["percent"]=55;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["msg"]= lang('app_upgrade_newversion_ing' );
|
||||||
|
$return["step"]=3;
|
||||||
|
|
||||||
|
//start此处应下载压缩包内文件的md5文件 并对比
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_updatefile_list_bymd5($appinfo);
|
||||||
|
if(empty($updatefilelist)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_none', array('upgradeurl' => upgradeinformation_app(-1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
|
||||||
|
$updatemd5filelist = $updatefilelist['md5'];
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
|
||||||
|
//与本地文件对比过滤出更新文件
|
||||||
|
list($updatefilelist, $updatemd5filelist) = $dzz_upgrade->compare_basefile_bymd5($appinfo, $updatefilelist,$updatemd5filelist);
|
||||||
|
$theurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&locale=' . $locale . '&charset=' . $charset;
|
||||||
|
if(empty($updatefilelist)) {//不存在修改的继续执行
|
||||||
|
//$return["status"]=0;
|
||||||
|
//$return["msg"]= lang('app_upgrade_exchange_none', array('upgradeurl' => upgradeinformation_app(-9)));
|
||||||
|
//exit(json_encode($return));
|
||||||
|
}
|
||||||
|
//end
|
||||||
|
|
||||||
|
//start 解压压缩包
|
||||||
|
$zippath= DZZ_ROOT . 'data/update/app/'.$upgradeinfo["app_path"].'/'.$upgradeinfo["identifier"].'/'.$upgradeinfo['version'].'/';
|
||||||
|
$zipfile=$zippath.$upgradeinfo["identifier"].".zip";
|
||||||
|
$md5file =$zippath.$upgradeinfo["identifier"].".md5.dzz";
|
||||||
|
dzzunzip($zipfile,$zippath,$md5file);
|
||||||
|
//end
|
||||||
|
|
||||||
|
$linkurl = $theurl.'&step=4';
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step==4){
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=3000;
|
||||||
|
$return["msg"]=lang('app_upgrade_newversion_ing' );
|
||||||
|
$return["step"]=4;
|
||||||
|
|
||||||
|
$updatefilelist = $dzz_upgrade->fetch_updatefile_list_bymd5($appinfo);
|
||||||
|
$updatemd5filelist = $updatefilelist['md5'];
|
||||||
|
$updatefilelist = $updatefilelist['file'];
|
||||||
|
//与本地文件对比过滤出更新文件
|
||||||
|
list($updatefilelist, $updatemd5filelist) = $dzz_upgrade->compare_basefile_bymd5($appinfo, $updatefilelist,$updatemd5filelist);
|
||||||
|
|
||||||
|
$confirm = $_GET['confirm'];
|
||||||
|
if (!$confirm) {
|
||||||
|
$checkupdatefilelist = $updatefilelist;
|
||||||
|
if ($dzz_upgrade -> check_folder_perm($appinfo,$checkupdatefilelist)) {
|
||||||
|
$confirm = 'file';
|
||||||
|
} else {
|
||||||
|
$linkurl = $theurl . '&step=4';
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["percent"]=55;
|
||||||
|
$return["second"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_cannot_access_file', array('upgradeurl' => upgradeinformation_app(-4)));
|
||||||
|
$return["step"]=1;
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$paraftp = '';
|
||||||
|
if ($_GET['siteftp']) {
|
||||||
|
foreach ($_GET['siteftp'] as $k => $v) {
|
||||||
|
$paraftp .= '&siteftp[' . $k . ']=' . $v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$_GET['startupgrade']) {
|
||||||
|
if (!$_GET['backfile']) {
|
||||||
|
$linkurl = $theurl . '&step=4&backfile=1&confirm=' . $confirm . $paraftp;
|
||||||
|
$msg = '<p style="margin:10px 0">' . lang('upgrade_backuping', array('upgradeurl' => upgradeinformation(2))) . '</p>';
|
||||||
|
$msg .= '<script type="text/JavaScript">setTimeout("location.href=\'' . ($linkurl) . '\';", 1000);</script>';
|
||||||
|
$msg .= ' <p style="margin:10px 0"><a href="' . $linkurl . '">' . lang('message_redirect') . '</p>';
|
||||||
|
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=55;
|
||||||
|
$return["second"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_backuping', array('upgradeurl' => upgradeinformation(2))) ;
|
||||||
|
$return["step"]=4;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
foreach ($updatefilelist as $updatefile) {
|
||||||
|
$destfile = DZZ_ROOT .$appinfo['app_path_old'].'/' . $appinfo['identifier_old'].'/'.$updatefile;
|
||||||
|
$backfile = DZZ_ROOT .'data/update/app/'.$upgradeinfo['app_path'].'/' .$upgradeinfo["identifier"].'/'.$appinfo["version"].'_bak/'.$updatefile;
|
||||||
|
|
||||||
|
if (is_file($destfile)) {
|
||||||
|
if (!$dzz_upgrade -> copy_file($destfile, $backfile, 'file')) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_backup_error', array('upgradeurl' => upgradeinformation(-5))) ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$return["url"]=$theurl . '&step=4&startupgrade=1&confirm=' . $confirm . $paraftp;
|
||||||
|
$return["percent"]=60;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["msg"]=lang('app_upgrade_backup_complete', array('upgradeurl' => upgradeinformation(3))) ;
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$_GET['fileupgrade']) {
|
||||||
|
foreach ($updatefilelist as $updatefile) {
|
||||||
|
$srcfile = DZZ_ROOT . 'data/update/app/'.$upgradeinfo['app_path'].'/' .$upgradeinfo["identifier"].'/'.$upgradeinfo['latestversion'].'/'.$updatefile;
|
||||||
|
if ($confirm == 'ftp') {//待测试
|
||||||
|
$destfile = $updatefile;
|
||||||
|
} else {
|
||||||
|
$destfile = DZZ_ROOT .$appinfo['app_path'].'/' . $appinfo['identifier'].'/'.$updatefile;
|
||||||
|
}
|
||||||
|
if (!$dzz_upgrade -> copy_file($srcfile, $destfile, $confirm)) {
|
||||||
|
if ($confirm == 'ftp') {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang('app_upgrade_ftp_upload_error', array('file'=>$updatefile,'upgradeurl' => upgradeinformation_app(-6)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('app_upgrade_copy_error', array('file'=>$updatefile,'upgradeurl' => upgradeinformation_app(-7)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = $theurl . '&step=4&startupgrade=1&backfile=1&fileupgrade=1&dodabase=1&confirm=' . $confirm;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=75;
|
||||||
|
$return["second"]=2000;
|
||||||
|
$return["msg"]=lang('app_upgrade_file_success', array( 'upgradeurl' => upgradeinformation_app(4)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($_GET['dodabase']){
|
||||||
|
$finish = FALSE;
|
||||||
|
$dir = $appinfo['app_path'];
|
||||||
|
$appname = $appinfo['identifier'];
|
||||||
|
$xmlfile = 'dzz_app_' . $appname . '.xml';
|
||||||
|
$importfile = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $xmlfile;
|
||||||
|
if ( $appinfo['identifier']!=$upgradeinfo['identifier'] ) {
|
||||||
|
@unlink( $importfile );
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!file_exists($importfile)) {
|
||||||
|
$importfile2 = DZZ_ROOT . './'.$dir.'/' . $appname . '/dzz_app_' . $upgradeinfo['identifier'] . '.xml';
|
||||||
|
if(!file_exists($importfile2)){
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]= lang("app_upgrade_xmlfile_error" ,array('file'=>$xmlfile,'upgradeurl' => upgradeinformation_app(-8)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}else{
|
||||||
|
@rename($importfile2,$importfile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$importtxt = @implode('', file($importfile));
|
||||||
|
|
||||||
|
$apparray = getimportdata('Dzz! app');
|
||||||
|
$filename = $apparray['app']['extra']['upgradefile'];
|
||||||
|
if (!empty($filename) && preg_match('/^[\w\.]+$/', $filename)) {
|
||||||
|
$filename = DZZ_ROOT . './'.$dir.'/' . $appname . '/' . $filename;
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include_once $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($finish) {
|
||||||
|
unset( $apparray["app"]["upgrade_version"]);//此信息xml里面已取消
|
||||||
|
|
||||||
|
//保存对应的应用名及应用地址
|
||||||
|
if ( $appinfo['identifier']!=$upgradeinfo['identifier'] ) {
|
||||||
|
$apparray['app']['identifier']=$appinfo['identifier'];//$appinfo['new_identifier'];
|
||||||
|
$apparray['app']['appurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['appurl']);
|
||||||
|
$apparray['app']['appadminurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['appadminurl']);
|
||||||
|
$apparray['app']['noticeurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['noticeurl']);
|
||||||
|
$apparray['app']['identifier']= $appinfo['identifier'];
|
||||||
|
$apparray['app']['check_upgrade_time']= 0 ;
|
||||||
|
}
|
||||||
|
if( isset($apparray['app']['app_path']) && $apparray['app']['app_path']=="" ) unset($apparray['app']['app_path']);
|
||||||
|
if ($app = importByarray($apparray, 1)) {
|
||||||
|
cron_create( $app );
|
||||||
|
}
|
||||||
|
writelog('otherlog', lang('Update_application').$apparray['app']['appname']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$_GET["appid"]. '&step=5&confirm=' . $confirm;
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]=lang('app_upgrade_database_success', array( 'upgradeurl' => upgradeinformation_app(5)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&step=5&confirm=' . $confirm;
|
||||||
|
|
||||||
|
$return["url"]=$linkurl;
|
||||||
|
$return["percent"]=80;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]=lang('app_upgrade_newversion_will_success');
|
||||||
|
exit(json_encode($return));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
elseif($step==5){
|
||||||
|
//删除更新文件列表tmp临时文件
|
||||||
|
$srcfile = DZZ_ROOT .$appinfo['app_path'].'/' . $appinfo['identifier'].'/updatelist.tmp';
|
||||||
|
if (file_exists($srcfile)) {
|
||||||
|
$desfile = DZZ_ROOT .$appinfo['app_path'].'/' . $appinfo['identifier'].'/'.$appinfo['identifier'].'.md5';
|
||||||
|
@unlink($desfile);
|
||||||
|
@rename($srcfile, $desfile);
|
||||||
|
}
|
||||||
|
|
||||||
|
$map=array(
|
||||||
|
"upgrade_version"=>""
|
||||||
|
);
|
||||||
|
|
||||||
|
$re=C::t('app_market')->update( $appid,$map);
|
||||||
|
updatecache('setting');
|
||||||
|
|
||||||
|
$return["url"] = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=check_upgrade&appid='.$appinfo["appid"];
|
||||||
|
$return["percent"]=100;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]=lang("app_upgrade_newversion_success" ,array( 'upgradeurl' => upgradeinformation_app(1)));
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif($operation == 'localupgrade' ){
|
||||||
|
$appid = intval($_GET['appid']);
|
||||||
|
if (!$app = C::t('app_market') -> fetch($appid)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang('not_exist');
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
if(empty($app['app_path'])) $app['app_path']='dzz';
|
||||||
|
$finish = FALSE;
|
||||||
|
$msg = lang('application_upgrade_successful');
|
||||||
|
|
||||||
|
$entrydir = DZZ_ROOT . './'.$app['app_path'].'/' . $app['identifier'];
|
||||||
|
$file = $entrydir . '/dzz_app_' . $app['identifier'] . '.xml';
|
||||||
|
if (!file_exists($file)) {
|
||||||
|
$return["status"]=0;
|
||||||
|
$return["msg"]=lang("list_cp_Application_tautology");
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
$importtxt = @implode('', file($file));
|
||||||
|
$apparray = getimportdata('Dzz! app', 0, 0, $importtxt);
|
||||||
|
|
||||||
|
$filename = $apparray['app']['extra']['upgradefile'];
|
||||||
|
$toversion = $apparray['app']['version'];
|
||||||
|
$mid = isset($apparray['app']['mid'])?intval($apparray['app']['mid']):0;
|
||||||
|
if (!empty($apparray['app']['extra']['upgradefile']) && preg_match('/^[\w\.]+$/', $apparray['app']['extra']['upgradefile'])) {
|
||||||
|
$filename = $entrydir . '/' . $apparray['app']['extra']['upgradefile'];
|
||||||
|
if (file_exists($filename)) {
|
||||||
|
@include $filename;
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$finish = TRUE;
|
||||||
|
}
|
||||||
|
if ($finish) {
|
||||||
|
$map=array(
|
||||||
|
"mid"=>$mid,
|
||||||
|
"version"=>$toversion,
|
||||||
|
"upgrade_version"=>"",
|
||||||
|
"check_upgrade_time"=>0
|
||||||
|
);
|
||||||
|
|
||||||
|
$re=C::t('app_market')->update($appid,$map);//C::tp_t('app_market')->where("appid=".$appid)->save( $map );
|
||||||
|
}
|
||||||
|
|
||||||
|
$return["url"] = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=check_upgrade&appid='.$app["appid"];
|
||||||
|
$return["percent"]=100;
|
||||||
|
$return["second"]=300;
|
||||||
|
$return["step"]=5;
|
||||||
|
$return["msg"]=lang( "application_upgrade_successful" );
|
||||||
|
exit(json_encode($return));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获取安装时对应目录名称
|
||||||
|
function getappidentifier( $baseinfo=array() ) {
|
||||||
|
if( $baseinfo ){
|
||||||
|
$map=array(
|
||||||
|
"mid"=>array("neq",$baseinfo["mid"]),
|
||||||
|
"identifier"=>$baseinfo["identifier"],
|
||||||
|
"app_path"=>$baseinfo["app_path"]
|
||||||
|
);
|
||||||
|
$count=DB::result_first("select COUNT(*) from %t where mid!=%d and identifier=%s and app_path=%s",array('app_market',$baseinfo["mid"],$baseinfo["identifier"],$baseinfo["app_path"]));// C::tp_t('app_market')->where($map)->count();
|
||||||
|
if( $count>0 ){
|
||||||
|
$pos=true;
|
||||||
|
$i=1;
|
||||||
|
while($pos !== false) {
|
||||||
|
$map["identifier"]=$baseinfo["identifier"]."_".$baseinfo["mid"]."_".$i ;
|
||||||
|
$count=DB::result_first("select COUNT(*) from %t where mid!=%d and identifier=%s and app_path=%s",array('app_market',$baseinfo["mid"],$map["identifier"],$baseinfo["app_path"]));
|
||||||
|
//$count= C::tp_t('app_market')->where($map)->count();
|
||||||
|
if( $count==0 ){
|
||||||
|
$pos=false;
|
||||||
|
}else{
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$baseinfo["new_identifier"]=$map["identifier"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $baseinfo;
|
||||||
|
}
|
||||||
|
?>
|
||||||
@@ -260,10 +260,10 @@ function upgradeinformation($status = 0) {
|
|||||||
}
|
}
|
||||||
if($status==1 && $upgrade_step['step']==2) return '';
|
if($status==1 && $upgrade_step['step']==2) return '';
|
||||||
$update = array();
|
$update = array();
|
||||||
$siteuniqueid = C::t('setting')->fetch('siteuniqueid');
|
$mcode = C::t('setting')->fetch('machinecode');
|
||||||
$update['siteurl']=$_G['siteurl'];
|
$update['siteurl']=$_G['siteurl'];
|
||||||
$update['sitename']=$_G['setting']['sitename'];
|
$update['sitename']=$_G['setting']['sitename'];
|
||||||
$update['uniqueid'] = $siteuniqueid;
|
$update['mcode'] = $mcode;
|
||||||
$update['curversion'] = $upgrade_step['curversion'];
|
$update['curversion'] = $upgrade_step['curversion'];
|
||||||
$update['currelease'] = $upgrade_step['currelease'];
|
$update['currelease'] = $upgrade_step['currelease'];
|
||||||
$update['upgradeversion'] = $upgrade_step['version'];
|
$update['upgradeversion'] = $upgrade_step['version'];
|
||||||
@@ -276,7 +276,7 @@ function upgradeinformation($status = 0) {
|
|||||||
foreach($update as $key => $value) {
|
foreach($update as $key => $value) {
|
||||||
$data .= $key.'='.rawurlencode($value).'&';
|
$data .= $key.'='.rawurlencode($value).'&';
|
||||||
}
|
}
|
||||||
$upgradeurl = APP_CHECK_URL."market/system/upgrade/".rawurlencode(base64_encode($data))."/".TIMESTAMP;
|
$upgradeurl = APP_CHECK_URL."authlicense/count//upgrade/".rawurlencode(base64_encode($data))."/".TIMESTAMP;
|
||||||
dfsockopen($upgradeurl,0, '', '', FALSE, '',0.2);
|
dfsockopen($upgradeurl,0, '', '', FALSE, '',0.2);
|
||||||
return '';
|
return '';
|
||||||
//return '<img src="'.$upgradeurl.'" width="0" height="0" />';
|
//return '<img src="'.$upgradeurl.'" width="0" height="0" />';
|
||||||
|
|||||||
@@ -8,7 +8,14 @@ class Adminlogin{
|
|||||||
$admincp = new \dzz_admincp();
|
$admincp = new \dzz_admincp();
|
||||||
$admincp->core = $dzz;
|
$admincp->core = $dzz;
|
||||||
$return = $admincp->init();
|
$return = $admincp->init();
|
||||||
if(defined('IS_API') && IS_API && $return === 0){
|
$firstlogin = getglobal('adminfirstlogin') ? getglobal('adminfirstlogin'):1;
|
||||||
|
|
||||||
|
if($firstlogin || !getglobal('machinecode')){
|
||||||
|
\Hook::listen('sysreg');
|
||||||
|
}
|
||||||
|
$isapi = ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || (isset($_GET['inajax']) && $_GET['inajax']))
|
||||||
|
? true : false;
|
||||||
|
if($isapi && $return === 0){
|
||||||
exit(json_encode(array('loginstatus'=>0,'hash'=>FORMHASH)));
|
exit(json_encode(array('loginstatus'=>0,'hash'=>FORMHASH)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
if (!defined('IN_OAOOA') ) {
|
if (!defined('IN_OAOOA') ) {
|
||||||
exit('Access Denied');
|
exit('Access Denied');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('ajaxshowheader')) {
|
if (!function_exists('ajaxshowheader')) {
|
||||||
function ajaxshowheader() {
|
function ajaxshowheader() {
|
||||||
global $_G;
|
global $_G;
|
||||||
@@ -30,28 +31,23 @@ if (!function_exists('ajaxshowfooter')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($admincp->core ->var['inajax']) {
|
if ($dzz ->var['inajax']) {
|
||||||
ajaxshowheader();
|
ajaxshowheader();
|
||||||
ajaxshowfooter();
|
ajaxshowfooter();
|
||||||
}
|
}
|
||||||
|
html_login_header();
|
||||||
|
|
||||||
if ($admincp -> cpaccess == -3) {
|
if ($admincp -> cpaccess == -1) {
|
||||||
html_login_header(false);
|
$ltime = $this -> sessionlife - (TIMESTAMP - $this -> adminsession['dateline']);
|
||||||
} else {
|
|
||||||
html_login_header();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($admincp -> cpaccess == -3) {
|
|
||||||
echo '<p class="logintips">' . lang('login_cp_noaccess') . '</p>';
|
|
||||||
|
|
||||||
} elseif ($admincp -> cpaccess == -1) {
|
|
||||||
$ltime = $admincp -> sessionlife - (TIMESTAMP - $admincp -> adminsession['dateline']);
|
|
||||||
echo '<p class="logintips">' . lang('login_cplock', array('ltime' => $ltime)) . '</p>';
|
echo '<p class="logintips">' . lang('login_cplock', array('ltime' => $ltime)) . '</p>';
|
||||||
|
|
||||||
} elseif ($admincp -> cpaccess == -4) {
|
} elseif ($admincp -> cpaccess == -4) {
|
||||||
$ltime = $admincp -> sessionlife - (TIMESTAMP - $admincp -> adminsession['dateline']);
|
$ltime = $this -> sessionlife - (TIMESTAMP - $this -> adminsession['dateline']);
|
||||||
echo '<p class="logintips">' . lang('login_user_lock') . '</p>';
|
echo '<p class="logintips">' . lang('login_user_lock') . '</p>';
|
||||||
|
|
||||||
|
//} elseif($admincp->cpaccess = 3) {
|
||||||
|
//header("Location:".dreferer());
|
||||||
|
//exit();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
html_login_form();
|
html_login_form();
|
||||||
@@ -134,6 +130,8 @@ function html_login_form() {
|
|||||||
}else{
|
}else{
|
||||||
$avastar = avatar_block($uid);
|
$avastar = avatar_block($uid);
|
||||||
}
|
}
|
||||||
|
$_GET['referer'] = dhtmlspecialchars($_GET['referer'], ENT_QUOTES);
|
||||||
|
$_GET['referer'] = str_replace('&', '&', $_GET['referer']);
|
||||||
$avastar.='<div class="maintitle">'.$maintitle.'</div>';
|
$avastar.='<div class="maintitle">'.$maintitle.'</div>';
|
||||||
$extra = BASESCRIPT . '?' . $_SERVER['QUERY_STRING'];
|
$extra = BASESCRIPT . '?' . $_SERVER['QUERY_STRING'];
|
||||||
$forcesecques = '<option value="0">' . ($_G['config']['admincp']['forcesecques'] ? $lang1['forcesecques'] : $lang1['security_question_0']) . '</option>';
|
$forcesecques = '<option value="0">' . ($_G['config']['admincp']['forcesecques'] ? $lang1['forcesecques'] : $lang1['security_question_0']) . '</option>';
|
||||||
@@ -151,7 +149,7 @@ function html_login_form() {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<input name="submit" value="$lang1[login]" type="submit" class="btn btn-primary" />
|
<input name="submit" value="$lang1[login]" type="submit" class="btn btn-primary" />
|
||||||
<div class="copyright">Powered by <a href="https://www.oaooa.com/" target="_blank">oaooa</a> © 2012-$year</div>
|
<div class="copyright">Powered by <a href="https://www.oaooa.com/" target="_blank">Pichome</a> © 2012-$year</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
2032
admin/oaooafiles.md5
64
admin/setting/ajax.php
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: a
|
||||||
|
* Date: 2017/12/26
|
||||||
|
* Time: 11:38
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
global $_G;
|
||||||
|
$uid = $_G['uid'];
|
||||||
|
$operation = isset($_GET['operation']) ? trim($_GET['operation']) : '';
|
||||||
|
if ($operation == 'editpermgroup') {//编辑权限组
|
||||||
|
if ($_G['adminid'] != 1) exit(json_encode(array('error' => lang('no_privilege'))));
|
||||||
|
$perms = get_permsarray();//获取所有权限;
|
||||||
|
if (isset($_GET['submit'])) {
|
||||||
|
$id = isset($_GET['id']) ? intval($_GET['id']) : '';
|
||||||
|
$groupperminfo = C::t('resources_permgroup')->fetch($id);
|
||||||
|
$permname = isset($_GET['pername']) ? trim($_GET['pername']) : '';
|
||||||
|
if (preg_match('/^\s*$/', $permname)) {
|
||||||
|
exit(json_encode(array('error' => lang('permission_cannot_mpty'))));
|
||||||
|
} else {
|
||||||
|
if ($groupperminfo['pername'] != $permname && C::t('resources_permgroup')->fetch_by_name($permname)) {
|
||||||
|
exit(json_encode(array('error' => lang('permission_cannot_repeated'))));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$selperms = isset($_GET['perms']) ? $_GET['perms'] : '';
|
||||||
|
$groupperm = 0;
|
||||||
|
if (!empty($selperms)) {
|
||||||
|
foreach ($selperms as $v) {
|
||||||
|
$groupperm += $v;
|
||||||
|
}
|
||||||
|
$groupperm += 1;
|
||||||
|
}
|
||||||
|
if (!$groupperm) {
|
||||||
|
exit(json_encode(array('error' => lang('please_permissions'))));
|
||||||
|
}
|
||||||
|
$setarr = array(
|
||||||
|
'pername' => $permname,
|
||||||
|
'perm' => $groupperm,
|
||||||
|
'default' => isset($_GET['default']) ? intval($_GET['default']) : 0
|
||||||
|
);
|
||||||
|
if (C::t('resources_permgroup')->update_by_id($id, $setarr)) {
|
||||||
|
$selectperm = array();
|
||||||
|
foreach ($perms as $k => $v) {
|
||||||
|
if ($v[1] & $setarr['perm']) {
|
||||||
|
$selectperm[] = $v[2];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
showTips(array('success' => array('id' => $id, 'pername' => $setarr['pername'], 'perm' => $selectperm, 'default' => $setarr['default'], 'off' => $groupperminfo['off'])));
|
||||||
|
} else {
|
||||||
|
showTips(array('error' => true));
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$id = isset($_GET['id']) ? intval($_GET['id']) : '';
|
||||||
|
if (!$groupperm = C::t('resources_permgroup')->fetch($id)) {
|
||||||
|
exit(json_encode(array('error' => lang('permission_deleted'))));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include template('ajax');
|
||||||
20
admin/setting/assistant.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$navtitle = lang('enterprise_little_helper_set');
|
||||||
|
$op = $_GET['op']?$_GET['op']:' ';
|
||||||
|
if (empty($_G['setting']['token_0']))$_G['setting']['token_0'] = random(8);
|
||||||
|
if (empty($_G['setting']['encodingaeskey_0']))$_G['setting']['encodingaeskey_0'] = random(43);
|
||||||
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
|
$callback = $_G['siteurl'] . 'index.php?mod=system&op=wxreply';
|
||||||
|
|
||||||
|
include template('assistant');
|
||||||
|
?>
|
||||||
12
admin/setting/cloudindex.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
require_once(__DIR__.'/dist/index.html');
|
||||||
12
admin/setting/config/config.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: Administrator
|
||||||
|
* Date: 2020/9/7
|
||||||
|
* Time: 15:34
|
||||||
|
*/
|
||||||
|
return array(
|
||||||
|
'allow_robot'=>false,
|
||||||
|
'default_op'=>'cloudindex',
|
||||||
|
// 'default_op'=>'index',
|
||||||
|
);
|
||||||
1
admin/setting/dist/css/chunk-11793d76.e3aa52a0.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.left-top[data-v-5965fcf4]{line-height:60px;width:100%;overflow:hidden;border-bottom-width:1px;border-bottom-style:solid}.left-top .txt[data-v-5965fcf4]{font-size:20px;font-weight:700;float:left;padding:0 30px}.el-menu[data-v-5965fcf4]{text-align:left;border-right:0}.el-menu i[data-v-5965fcf4]{margin-right:5px;font-size:20px}
|
||||||
1
admin/setting/dist/css/chunk-1ce8ae7e.57e2bf3f.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-17c69b7c]{display:block}.avatar-uploader[data-v-17c69b7c] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader[data-v-17c69b7c] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.max-width[data-v-17c69b7c]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-201f656b.eb2931b7.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-7ebb1108]{height:calc(100vh - 46px);overflow:auto}
|
||||||
1
admin/setting/dist/css/chunk-27b595b5.6f37d603.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-title[data-v-33fcd69a]{color:#969799;font-weight:400;font-size:14px;padding:15px 0;text-align:center}.van-nav-header .van-icon[data-v-33fcd69a],.van-nav-header[data-v-33fcd69a] .van-nav-bar__title{color:#fff}
|
||||||
1
admin/setting/dist/css/chunk-2e9b5e3e.ff920983.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-2ba4b696]{height:calc(100vh - 46px);overflow:auto}.avatar-uploader[data-v-2ba4b696] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;width:80px;height:80px;overflow:hidden;line-height:80px;padding:5px}.avatar-uploader[data-v-2ba4b696] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;vertical-align:sub}.avatar-uploader[data-v-2ba4b696] .el-upload .el-image{height:80px;width:100%;line-height:80px}.avatar-uploader[data-v-2ba4b696] .el-upload .el-image img{max-width:100%;max-height:80px;width:auto;height:auto;vertical-align:middle}.avatar-uploader[data-v-2ba4b696] .el-upload .el-progress{position:absolute;left:5px;top:5px;background:#fff;z-index:100}
|
||||||
1
admin/setting/dist/css/chunk-36ed7802.ddfa8de2.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.table-bottom-operation[data-v-697d8682]{border:1px solid #ebeef5;border-top:0;text-align:center;cursor:pointer;width:100%;border-radius:0;font-weight:700}.help-inline[data-v-697d8682]{display:block}.top-title .line[data-v-697d8682]{background-color:#dcdfe6;width:1px;height:19px;margin:0 24px;display:inline-block;vertical-align:middle}.top-title .text[data-v-697d8682]{color:#909399;cursor:pointer;font-size:medium}.max-width[data-v-697d8682]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-37d74806.0c02e4db.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-711f0036]{height:calc(100vh - 46px);overflow:auto}
|
||||||
1
admin/setting/dist/css/chunk-42c1b704.3293b89e.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.wa-location[data-v-086d9b9c]{width:100%;height:48px;margin:0 20px 20px 0;font-size:14PX;color:#979ca9;line-height:46px;text-align:center;box-sizing:border-box;cursor:pointer;border-width:1px;border-style:solid}.wa-location.color-border-active[data-v-086d9b9c]{background:#f2faff}.help-inline[data-v-086d9b9c]{display:block}.avatar-uploader[data-v-086d9b9c] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden;width:178px;height:178px;text-align:center;line-height:178px}.avatar-uploader[data-v-086d9b9c] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.avatar-uploader[data-v-086d9b9c] .el-upload .el-progress{position:absolute;left:0;top:0;background:#fff;z-index:100}.max-width[data-v-086d9b9c]{width:360px}.avatar[data-v-086d9b9c]{max-width:178px;max-height:178px;vertical-align:middle}
|
||||||
1
admin/setting/dist/css/chunk-45f0a227.cdc9335d.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-79937805]{display:block}.avatar-uploader[data-v-79937805] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader[data-v-79937805] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.max-width[data-v-79937805]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-4850fbf9.980b88ba.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-2c7e0b30]{height:calc(100vh - 46px);overflow:auto}
|
||||||
1
admin/setting/dist/css/chunk-4bd6d832.ad2beee9.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-26fd32b2]{display:block}.avatar-uploader[data-v-26fd32b2] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader[data-v-26fd32b2] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.max-width[data-v-26fd32b2]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-51ab32cd.519dec70.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.resNav .resNav-item[data-v-b9d2b62e],.resNav[data-v-b9d2b62e]{display:flex}.resNav[data-v-b9d2b62e]{width:100%;height:100%}.resNav .resNav-left[data-v-b9d2b62e]{height:100%;line-height:80px}.resNav .resNav-left a[data-v-b9d2b62e]{height:100%;display:flex;justify-content:center;align-items:center;text-decoration:none;text-align:left}.resNav .resNav-left a .el-image[data-v-b9d2b62e]{width:35px;height:35px}.resNav .resNav-left a .text[data-v-b9d2b62e]{font-size:16px;font-weight:700;margin-left:10px;color:#fff;white-space:nowrap;line-height:normal}.resNav .resNav-center[data-v-b9d2b62e]{flex:1 1 100%;height:100%}.resNav .resNav-center .el-menu[data-v-b9d2b62e]{border:0;padding:15px 0}.resNav .resNav-center .el-menu .el-menu-item[data-v-b9d2b62e]{height:50px;line-height:50px}.resNav .resNav-center .el-menu .el-menu-item[data-v-b9d2b62e]:hover{color:#fff;background:transparent!important}.resNav .resNav-right[data-v-b9d2b62e]{flex:0 0 auto;align-content:center;align-items:center}.resNav .resNav-right .line[data-v-b9d2b62e]{float:left;width:1px;height:22px;background:#fff;margin-right:10px}.el-page-header[data-v-b9d2b62e]{align-content:center;align-items:center}.el-page-header[data-v-b9d2b62e] .el-page-header__content{color:#fff}
|
||||||
1
admin/setting/dist/css/chunk-56b92ffd.7264eae2.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.top-title .line[data-v-0b61b126]{background-color:#dcdfe6;width:1px;height:19px;margin:0 24px;display:inline-block;vertical-align:middle}.top-title .text[data-v-0b61b126]{color:#909399;cursor:pointer;font-size:medium}.help-inline[data-v-0b61b126]{display:block}.max-width[data-v-0b61b126]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-60968146.4f89c1c7.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-2ac155a4]{height:calc(100vh - 46px);overflow:auto}.avatar-uploader[data-v-2ac155a4] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;width:80px;height:80px;overflow:hidden;line-height:80px;padding:5px}.avatar-uploader[data-v-2ac155a4] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;vertical-align:sub}.avatar-uploader[data-v-2ac155a4] .el-upload .el-image{height:80px;width:100%;line-height:80px}.avatar-uploader[data-v-2ac155a4] .el-upload .el-image img{max-width:100%;max-height:80px;width:auto;height:auto;vertical-align:middle}.avatar-uploader[data-v-2ac155a4] .el-upload .el-progress{position:absolute;left:5px;top:5px;background:#fff;z-index:100}
|
||||||
1
admin/setting/dist/css/chunk-65f82ec1.82e43d2c.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-3f7ad1a8]{height:calc(100vh - 96px);overflow:auto}
|
||||||
1
admin/setting/dist/css/chunk-745ec13c.c40d05c4.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-07fce424]{height:calc(100vh - 46px);overflow:auto}
|
||||||
1
admin/setting/dist/css/chunk-74c32c70.4b7d665e.css
vendored
Normal file
1
admin/setting/dist/css/chunk-76f23146.6fc79cd8.css
vendored
Normal file
1
admin/setting/dist/css/chunk-8253696e.853db2ed.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.el-input__inner,.el-textarea__inner{min-height:40px!important}.el-container[data-v-7347ae1e],.el-main[data-v-7347ae1e]{height:100%}.el-main[data-v-7347ae1e]{padding:0}
|
||||||
1
admin/setting/dist/css/chunk-8af60fbc.1de80ebe.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.basic-container[data-v-0feea321]{height:calc(100vh - 96px);overflow:auto}.smtp-list[data-v-0feea321]{overflow:hidden}.smtp-list .title[data-v-0feea321]{padding:10px 0;text-align:right}.smtp-list .content[data-v-0feea321]{padding:10px 0}.smtp-list .content .van-field[data-v-0feea321]{padding:0}
|
||||||
1
admin/setting/dist/css/chunk-c2ea2536.0dada93f.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-089fc684]{display:block}.avatar-uploader[data-v-089fc684] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;width:150px;height:150px;overflow:hidden;line-height:160px;padding:5px}.avatar-uploader[data-v-089fc684] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;vertical-align:sub}.avatar-uploader[data-v-089fc684] .el-upload .el-image{height:150px;width:100%;line-height:150px}.avatar-uploader[data-v-089fc684] .el-upload .el-image img{max-width:100%;max-height:150px;width:auto;height:auto;vertical-align:middle}.avatar-uploader[data-v-089fc684] .el-upload .el-progress{position:absolute;left:5px;top:5px;background:#fff;z-index:100}.max-width[data-v-089fc684]{width:360px}
|
||||||
1
admin/setting/dist/css/chunk-e9e5fa9a.aecc7157.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-79f5a396]{display:block}.avatar-uploader[data-v-79f5a396] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader[data-v-79f5a396] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.max-width[data-v-79f5a396]{width:360px}
|
||||||
@@ -1 +1 @@
|
|||||||
.el-avatar[data-v-6f47bc15]{float:left;cursor:pointer}.el-divider--horizontal.el-divider[data-v-6f47bc15]{margin:8px 0}.aboutPichome{padding:0;width:478px}.aboutPichome .el-message-box__btns,.aboutPichome .el-message-box__header{display:none}.aboutPichome .aboutlogo{text-align:center;line-height:0;padding-top:40px}.aboutPichome .aboutmessage{padding:65px 40px;font-size:19px;padding-bottom:15px}.aboutPichome .aboutmessage .aboutlist{margin-bottom:20px;overflow:hidden}.aboutPichome a{text-decoration:none}.aboutPichome .aboutmessage .aboutlist .title{float:left;width:95px}.aboutPichome .aboutmessage .aboutlist .mes{float:left;width:calc(100% - 95px)}.aboutPichome .aboutmessage .aboutlist .update{font-size:12px}
|
.el-avatar[data-v-4ef095d4]{float:left;cursor:pointer}.el-divider--horizontal.el-divider[data-v-4ef095d4]{margin:8px 0}.aboutPichome{padding:0;width:478px}.aboutPichome .el-message-box__btns,.aboutPichome .el-message-box__header{display:none}.aboutPichome .aboutlogo{text-align:center;line-height:0;padding-top:40px}.aboutPichome .aboutmessage{padding:65px 40px;font-size:19px;padding-bottom:15px}.aboutPichome .aboutmessage .aboutlist{margin-bottom:20px;overflow:hidden}.aboutPichome a{text-decoration:none}.aboutPichome .aboutmessage .aboutlist .title{float:left;width:95px}.aboutPichome .aboutmessage .aboutlist .mes{float:left;width:calc(100% - 95px)}.aboutPichome .aboutmessage .aboutlist .update{font-size:12px}
|
||||||
1
admin/setting/dist/css/chunk-vendors.4d5d56a8.css
vendored
Normal file
1
admin/setting/dist/css/index.bfb05069.css
vendored
Normal file
1
admin/setting/dist/css/setting_temp.160d41ee.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.help-inline[data-v-a9682ac0]{display:block}.avatar-uploader[data-v-a9682ac0] .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader[data-v-a9682ac0] .el-upload .avatar-uploader-icon{font-size:28px;color:#8c939d;width:150px;height:150px;line-height:150px;text-align:center}.max-width[data-v-a9682ac0]{width:360px}
|
||||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
1
admin/setting/dist/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><html lang=zh><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title></title><link href=/admin/setting/dist/css/chunk-11793d76.e3aa52a0.css rel=prefetch><link href=/admin/setting/dist/css/chunk-1ce8ae7e.57e2bf3f.css rel=prefetch><link href=/admin/setting/dist/css/chunk-201f656b.eb2931b7.css rel=prefetch><link href=/admin/setting/dist/css/chunk-27b595b5.6f37d603.css rel=prefetch><link href=/admin/setting/dist/css/chunk-2e9b5e3e.ff920983.css rel=prefetch><link href=/admin/setting/dist/css/chunk-36ed7802.ddfa8de2.css rel=prefetch><link href=/admin/setting/dist/css/chunk-37d74806.0c02e4db.css rel=prefetch><link href=/admin/setting/dist/css/chunk-42c1b704.3293b89e.css rel=prefetch><link href=/admin/setting/dist/css/chunk-45f0a227.cdc9335d.css rel=prefetch><link href=/admin/setting/dist/css/chunk-4850fbf9.980b88ba.css rel=prefetch><link href=/admin/setting/dist/css/chunk-4bd6d832.ad2beee9.css rel=prefetch><link href=/admin/setting/dist/css/chunk-51ab32cd.519dec70.css rel=prefetch><link href=/admin/setting/dist/css/chunk-56b92ffd.7264eae2.css rel=prefetch><link href=/admin/setting/dist/css/chunk-60968146.4f89c1c7.css rel=prefetch><link href=/admin/setting/dist/css/chunk-65f82ec1.82e43d2c.css rel=prefetch><link href=/admin/setting/dist/css/chunk-745ec13c.c40d05c4.css rel=prefetch><link href=/admin/setting/dist/css/chunk-74c32c70.4b7d665e.css rel=prefetch><link href=/admin/setting/dist/css/chunk-76f23146.6fc79cd8.css rel=prefetch><link href=/admin/setting/dist/css/chunk-8253696e.853db2ed.css rel=prefetch><link href=/admin/setting/dist/css/chunk-8af60fbc.1de80ebe.css rel=prefetch><link href=/admin/setting/dist/css/chunk-c2ea2536.0dada93f.css rel=prefetch><link href=/admin/setting/dist/css/chunk-e9e5fa9a.aecc7157.css rel=prefetch><link href=/admin/setting/dist/css/chunk-fc47aa76.dddb9b47.css rel=prefetch><link href=/admin/setting/dist/css/setting_temp.160d41ee.css rel=prefetch><link href=/admin/setting/dist/js/chunk-11793d76.ce1a5be7.js rel=prefetch><link href=/admin/setting/dist/js/chunk-1ce8ae7e.6a1bbf82.js rel=prefetch><link href=/admin/setting/dist/js/chunk-201f656b.7ab31c65.js rel=prefetch><link href=/admin/setting/dist/js/chunk-27b595b5.1211aaff.js rel=prefetch><link href=/admin/setting/dist/js/chunk-2e9b5e3e.602304e3.js rel=prefetch><link href=/admin/setting/dist/js/chunk-36ed7802.dfdd9749.js rel=prefetch><link href=/admin/setting/dist/js/chunk-37d74806.18c0b22d.js rel=prefetch><link href=/admin/setting/dist/js/chunk-42c1b704.e50a2fab.js rel=prefetch><link href=/admin/setting/dist/js/chunk-45f0a227.d6202e1a.js rel=prefetch><link href=/admin/setting/dist/js/chunk-4850fbf9.2ef97ebb.js rel=prefetch><link href=/admin/setting/dist/js/chunk-4bd6d832.cc9a988f.js rel=prefetch><link href=/admin/setting/dist/js/chunk-51ab32cd.f2e4282a.js rel=prefetch><link href=/admin/setting/dist/js/chunk-56b92ffd.8568d3b0.js rel=prefetch><link href=/admin/setting/dist/js/chunk-60968146.9c21e70a.js rel=prefetch><link href=/admin/setting/dist/js/chunk-6337fcfc.90794efc.js rel=prefetch><link href=/admin/setting/dist/js/chunk-65f82ec1.d9e3dbe2.js rel=prefetch><link href=/admin/setting/dist/js/chunk-745ec13c.f468e46a.js rel=prefetch><link href=/admin/setting/dist/js/chunk-74c32c70.1f5e9382.js rel=prefetch><link href=/admin/setting/dist/js/chunk-76f23146.0d2957ed.js rel=prefetch><link href=/admin/setting/dist/js/chunk-8253696e.e9561f92.js rel=prefetch><link href=/admin/setting/dist/js/chunk-8af60fbc.8ad59181.js rel=prefetch><link href=/admin/setting/dist/js/chunk-c2ea2536.8fc255e1.js rel=prefetch><link href=/admin/setting/dist/js/chunk-e9e5fa9a.322b6d2c.js rel=prefetch><link href=/admin/setting/dist/js/chunk-fc47aa76.b39d41e7.js rel=prefetch><link href=/admin/setting/dist/js/setting_temp.806222b7.js rel=prefetch><link href=/admin/setting/dist/css/chunk-vendors.4d5d56a8.css rel=preload as=style><link href=/admin/setting/dist/css/index.bfb05069.css rel=preload as=style><link href=/admin/setting/dist/js/chunk-vendors.852e680b.js rel=preload as=script><link href=/admin/setting/dist/js/index.c0d8c523.js rel=preload as=script><link href=/admin/setting/dist/css/chunk-vendors.4d5d56a8.css rel=stylesheet><link href=/admin/setting/dist/css/index.bfb05069.css rel=stylesheet></head><body><div id=app></div><script src=/admin/setting/dist/js/chunk-vendors.852e680b.js></script><script src=/admin/setting/dist/js/index.c0d8c523.js></script></body></html>
|
||||||
1
admin/setting/dist/js/chunk-11793d76.ce1a5be7.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11793d76"],{"02fa":function(t,e,n){},"11c1":function(t,e,n){"use strict";var c=n("02fa"),a=n.n(c);a.a},"76cf":function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-content"},[n("el-scrollbar",{staticClass:"page-component__scroll"},[n("el-menu",{attrs:{"default-active":t.LeftActive},on:{select:t.handleSelect}},t._l(t.GetleftData,(function(e){return n("el-menu-item",{style:{"font-size":1==t.IfuserAgent?"14px":"17px"},attrs:{index:e.type}},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.text))])])})),1)],1)],1)},a=[],s=(n("b0c0"),n("5530")),l=n("2f62"),o={data:function(){return{}},computed:Object(s["a"])(Object(s["a"])({},Object(l["c"])(["IfuserAgent","LeftActive"])),Object(l["b"])(["GetleftData"])),created:function(){},methods:{handleSelect:function(t,e){var n=this.$route.name;n!=t&&this.$router.push({name:t})}},components:{}},i=o,r=(n("11c1"),n("2877")),u=Object(r["a"])(i,c,a,!1,null,"5965fcf4",null);e["default"]=u.exports}}]);
|
||||||
1
admin/setting/dist/js/chunk-1ce8ae7e.6a1bbf82.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ce8ae7e"],{"540d":function(t,a,e){},"6d0b":function(t,a,e){"use strict";var s=e("540d"),n=e.n(s);n.a},9048:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.buttonLoad,expression:"buttonLoad"}],staticClass:"page-content"},[e("div",{staticClass:"top-title color-border"},[t._v(t._s(t.$t("lefttext2")))]),e("el-scrollbar",{staticClass:"page-component__scroll"},[e("el-form",{ref:"form",staticStyle:{padding:"35px 50px"},attrs:{"label-position":1==t.IfuserAgent?"top":"rigth","label-width":"160px"}},[e("el-form-item",{attrs:{label:t.$t("setting_main_suffix")+":"}},[e("el-input",{staticClass:"max-width",attrs:{type:"textarea",autosize:""},model:{value:t.formdata.unRunExts,callback:function(a){t.$set(t.formdata,"unRunExts",a)},expression:"formdata.unRunExts"}}),e("ul",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("setting_main_suffix_text"))}})],1),e("el-form-item",{attrs:{label:t.$t("upload_block_size")+":"}},[e("el-input",{staticClass:"max-width",attrs:{type:"number"},model:{value:t.formdata.maxChunkSize,callback:function(a){t.$set(t.formdata,"maxChunkSize",a)},expression:"formdata.maxChunkSize"}},[e("template",{slot:"append"},[t._v("M")])],2),e("ul",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("upload_block_size_text"))}})],1),e("el-form-item",{staticStyle:{"padding-top":"15px"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)],1)},n=[],o={props:["FormHash","IfuserAgent","formdata","buttonLoad"],data:function(){return{}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},i=o,l=(e("6d0b"),e("2877")),r=Object(l["a"])(i,s,n,!1,null,"17c69b7c",null);a["default"]=r.exports}}]);
|
||||||
1
admin/setting/dist/js/chunk-201f656b.7ab31c65.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-201f656b"],{afdd:function(t,a,e){"use strict";var i=e("df75c"),s=e.n(i);s.a},df75c:function(t,a,e){},fc70:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"basic-container"},[e("van-form",{attrs:{"label-width":"7.5em"}},[e("van-field",{attrs:{label:t.$t("thumbnail_size")+":"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-row",[e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.small.width,callback:function(a){t.$set(t.formdata.thumbsize.small,"width",a)},expression:"formdata.thumbsize.small.width"}})],1),e("van-col",{staticStyle:{"text-align":"center"},attrs:{span:"2"}},[t._v("X")]),e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.small.height,callback:function(a){t.$set(t.formdata.thumbsize.small,"height",a)},expression:"formdata.thumbsize.small.height"}})],1),e("van-col",{staticStyle:{"margin-bottom":"15px"},attrs:{span:"6"}},[e("span",[t._v(t._s(t.$t("large_size")))])]),e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.middle.width,callback:function(a){t.$set(t.formdata.thumbsize.middle,"width",a)},expression:"formdata.thumbsize.middle.width"}})],1),e("van-col",{staticStyle:{"text-align":"center"},attrs:{span:"2"}},[t._v("X")]),e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.middle.height,callback:function(a){t.$set(t.formdata.thumbsize.middle,"height",a)},expression:"formdata.thumbsize.middle.height"}})],1),e("van-col",{staticStyle:{"margin-bottom":"15px"},attrs:{span:"6"}},[e("span",[t._v(t._s(t.$t("chinese_size")))])]),e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.large.width,callback:function(a){t.$set(t.formdata.thumbsize.large,"width",a)},expression:"formdata.thumbsize.large.width"}})],1),e("van-col",{staticStyle:{"text-align":"center"},attrs:{span:"2"}},[t._v("X")]),e("van-col",{attrs:{span:"8"}},[e("van-field",{staticStyle:{padding:"0 5px","border-bottom":"1px solid #ebedf0"},attrs:{label:""},model:{value:t.formdata.thumbsize.large.height,callback:function(a){t.$set(t.formdata.thumbsize.large,"height",a)},expression:"formdata.thumbsize.large.height"}})],1),e("van-col",{attrs:{span:"6"}},[e("span",[t._v(t._s(t.$t("max_size")))])])],1)]},proxy:!0}])}),e("ul",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"8px 15px"}},[e("li",[t._v(t._s(t.$t("setting_main_thumbnail_size")))])]),e("van-field",{attrs:{name:"radioxGroup",label:t.$t("thumbnail_generation")+":"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.formdata.thumb_active,callback:function(a){t.$set(t.formdata,"thumb_active",a)},expression:"formdata.thumb_active"}},[e("van-radio",{attrs:{name:"1"}},[t._v(t._s(t.$t("active_mode")))]),e("van-radio",{attrs:{name:"0"}},[t._v(t._s(t.$t("passive_mode")))])],1)]},proxy:!0}])}),e("ul",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"8px 15px"},domProps:{innerHTML:t._s(t.$t("setting_main_thumbnail_generation"))}}),e("div",{staticStyle:{margin:"16px"}},[e("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)},s=[],n={props:["formdata","buttonLoad"],data:function(){return{}},watch:{buttonLoad:{handler:function(t){var a=this.$toast.loading({message:this.$t("loading")+"...",forbidClick:!0,duration:0});t||a.clear()},deep:!0,immediate:!0}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},l=n,o=(e("afdd"),e("2877")),d=Object(o["a"])(l,i,s,!1,null,"7ebb1108",null);a["default"]=d.exports}}]);
|
||||||
1
admin/setting/dist/js/chunk-27b595b5.1211aaff.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27b595b5"],{1530:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("van-nav-bar",{staticClass:"van-nav-header",attrs:{title:e.$t(e.$route.meta.title)},scopedSlots:e._u([{key:"left",fn:function(){return[n("van-icon",{attrs:{name:"ellipsis",size:"18"},on:{click:function(t){e.showMenu=!0}}})]},proxy:!0},{key:"right",fn:function(){return[n("van-icon",{attrs:{name:"apps-o",size:"18"},on:{click:function(t){e.showNavigation=!0}}})]},proxy:!0}])}),n("van-popup",{style:{width:"100%"},attrs:{position:"top","get-container":"#app"},model:{value:e.showMenu,callback:function(t){e.showMenu=t},expression:"showMenu"}},[n("van-sidebar",{staticStyle:{width:"100%"},on:{change:e.handleMenu},model:{value:e.MenuActive,callback:function(t){e.MenuActive=t},expression:"MenuActive"}},e._l(e.GetleftData,(function(e){return n("van-sidebar-item",{attrs:{title:e.text}})})),1)],1),n("van-popup",{style:{width:"100%"},attrs:{position:"top","get-container":"#app"},model:{value:e.showNavigation,callback:function(t){e.showNavigation=t},expression:"showNavigation"}},[n("van-sidebar",{staticStyle:{width:"100%"},on:{change:e.handleNavigation},model:{value:e.headerActive,callback:function(t){e.headerActive=t},expression:"headerActive"}},e._l(e.headerData,(function(e){return n("van-sidebar-item",{attrs:{title:e.name}})})),1)],1),n("router-view",{attrs:{IfuserAgent:e.IfuserAgent,FormHash:e.GetFormHash}})],1)},i=[],o=(n("4160"),n("159b"),n("5530")),c=n("2f62"),s={data:function(){return{MenuActive:0,MenuData:[],headerActive:0,headerData:[],showMenu:!1,showNavigation:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(c["c"])(["IfuserAgent","ContLeft"])),Object(c["b"])(["GetNavMenu","GetFormHash","GetleftData"])),watch:{GetleftData:{handler:function(e){var t=this;this.MenuData=e,e.forEach((function(e,n){e.type==t.$route.meta.active&&(t.MenuActive=n)}))},deep:!0,immediate:!0},GetNavMenu:{handler:function(e){var t=this;this.headerData=e,e&&e.length&&e.forEach((function(e,n){"setting"==e.index&&(t.headerActive=n)}))},deep:!0,immediate:!0}},created:function(){},methods:{handleMenu:function(e){this.$router.push({name:this.MenuData[e].type}),this.showMenu=!1},handleNavigation:function(e){var t=this.headerData[e];"admin"==t.type?window.location.href="admin.php?mod="+t.index:window.location.href="index.php?mod="+t.index}},components:{}},r=s,u=(n("3032"),n("2877")),h=Object(u["a"])(r,a,i,!1,null,"33fcd69a",null);t["default"]=h.exports},3032:function(e,t,n){"use strict";var a=n("7f82"),i=n.n(a);i.a},"7f82":function(e,t,n){}}]);
|
||||||
1
admin/setting/dist/js/chunk-2e9b5e3e.602304e3.js
vendored
Normal file
1
admin/setting/dist/js/chunk-36ed7802.dfdd9749.js
vendored
Normal file
1
admin/setting/dist/js/chunk-37d74806.18c0b22d.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37d74806"],{"7e89":function(t,a,e){"use strict";var i=e("b260"),s=e.n(i);s.a},a9f5:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"basic-container"},[e("van-form",{attrs:{"label-width":"7.5em"}},[e("van-field",{attrs:{label:t.$t("main_title_page")+":"},model:{value:t.formdata.loginset.title,callback:function(a){t.$set(t.formdata.loginset,"title",a)},expression:"formdata.loginset.title"}}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("main_title_page_state")))]),e("van-field",{attrs:{label:t.$t("page_subtitle")+":"},model:{value:t.formdata.loginset.subtitle,callback:function(a){t.$set(t.formdata.loginset,"subtitle",a)},expression:"formdata.loginset.subtitle"}}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("page_subtitle_state")))]),e("van-field",{attrs:{label:t.$t("page_background")+":"},model:{value:t.formdata.loginset.background,callback:function(a){t.$set(t.formdata.loginset,"background",a)},expression:"formdata.loginset.background"}}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("for_color_set")))]),e("div",{staticStyle:{margin:"16px"}},[e("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)},s=[],n={props:["formdata","buttonLoad"],data:function(){return{}},watch:{buttonLoad:{handler:function(t){var a=this.$toast.loading({message:this.$t("loading")+"...",forbidClick:!0,duration:0});t||a.clear()},deep:!0,immediate:!0}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},o=n,l=(e("7e89"),e("2877")),r=Object(l["a"])(o,i,s,!1,null,"711f0036",null);a["default"]=r.exports},b260:function(t,a,e){}}]);
|
||||||
1
admin/setting/dist/js/chunk-42c1b704.e50a2fab.js
vendored
Normal file
1
admin/setting/dist/js/chunk-45f0a227.d6202e1a.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45f0a227"],{7263:function(t,e,a){},"82fb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.buttonLoad,expression:"buttonLoad"}],staticClass:"page-content"},[a("div",{staticClass:"top-title color-border"},[t._v(t._s(t.$t("lefttext6")))]),a("el-scrollbar",{staticClass:"page-component__scroll"},[a("el-form",{ref:"form",staticStyle:{padding:"35px 50px"},attrs:{"label-position":1==t.IfuserAgent?"top":"rigth","label-width":"160px"}},[a("el-form-item",{attrs:{label:t.$t("thumbnail_size")+":"}},[a("div",{staticClass:"max-width",staticStyle:{overflow:"hidden","margin-bottom":"15px"}},[a("el-col",{attrs:{span:8}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("width"),type:"number"},model:{value:t.formdata.thumbsize.small.width,callback:function(e){t.$set(t.formdata.thumbsize.small,"width",e)},expression:"formdata.thumbsize.small.width"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[t._v("X")]),a("el-col",{attrs:{span:14}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("height"),type:"number"},model:{value:t.formdata.thumbsize.small.height,callback:function(e){t.$set(t.formdata.thumbsize.small,"height",e)},expression:"formdata.thumbsize.small.height"}},[a("template",{slot:"append"},[t._v(t._s(t.$t("large_size")))])],2)],1)],1),a("div",{staticClass:"max-width",staticStyle:{overflow:"hidden","margin-bottom":"15px"}},[a("el-col",{attrs:{span:8}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("width"),type:"number"},model:{value:t.formdata.thumbsize.middle.width,callback:function(e){t.$set(t.formdata.thumbsize.middle,"width",e)},expression:"formdata.thumbsize.middle.width"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[t._v("X")]),a("el-col",{attrs:{span:14}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("height"),type:"number"},model:{value:t.formdata.thumbsize.middle.height,callback:function(e){t.$set(t.formdata.thumbsize.middle,"height",e)},expression:"formdata.thumbsize.middle.height"}},[a("template",{slot:"append"},[t._v(t._s(t.$t("chinese_size")))])],2)],1)],1),a("div",{staticClass:"max-width",staticStyle:{overflow:"hidden","margin-bottom":"15px"}},[a("el-col",{attrs:{span:8}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("width"),type:"number"},model:{value:t.formdata.thumbsize.large.width,callback:function(e){t.$set(t.formdata.thumbsize.large,"width",e)},expression:"formdata.thumbsize.large.width"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[t._v("X")]),a("el-col",{attrs:{span:14}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("height"),type:"number"},model:{value:t.formdata.thumbsize.large.height,callback:function(e){t.$set(t.formdata.thumbsize.large,"height",e)},expression:"formdata.thumbsize.large.height"}},[a("template",{slot:"append"},[t._v(t._s(t.$t("max_size")))])],2)],1)],1),a("ul",{staticClass:"help-inline",staticStyle:{"line-height":"22px","padding-left":"15px"}},[a("li",[t._v(t._s(t.$t("setting_main_thumbnail_size")))])])]),a("el-form-item",{attrs:{label:t.$t("thumbnail_generation")+":"}},[a("div",{staticClass:"max-width",staticStyle:{display:"inline-block"}},[a("el-radio",{attrs:{border:"",label:"1"},model:{value:t.formdata.thumb_active,callback:function(e){t.$set(t.formdata,"thumb_active",e)},expression:"formdata.thumb_active"}},[t._v(t._s(t.$t("active_mode")))]),a("el-radio",{attrs:{border:"",label:"0"},model:{value:t.formdata.thumb_active,callback:function(e){t.$set(t.formdata,"thumb_active",e)},expression:"formdata.thumb_active"}},[t._v(t._s(t.$t("passive_mode")))])],1),a("ul",{staticClass:"help-inline",staticStyle:{"line-height":"22px","padding-left":"15px"},domProps:{innerHTML:t._s(t.$t("setting_main_thumbnail_generation"))}})]),a("el-form-item",{staticStyle:{"padding-top":"15px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)],1)},l=[],s={props:["IfuserAgent","formdata"],data:function(){return{}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},o=s,n=(a("de25"),a("2877")),r=Object(n["a"])(o,i,l,!1,null,"79937805",null);e["default"]=r.exports},de25:function(t,e,a){"use strict";var i=a("7263"),l=a.n(i);l.a}}]);
|
||||||
1
admin/setting/dist/js/chunk-4850fbf9.2ef97ebb.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4850fbf9"],{"1c40":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"basic-container"},[e("van-form",{attrs:{"label-width":"7.5em"}},[e("van-field",{attrs:{name:"switch",label:t.$t("allow_new_user_registration")+":"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-switch",{attrs:{"active-value":"1","inactive-value":"0",size:"20"},model:{value:t.formdata.regstatus,callback:function(a){t.$set(t.formdata,"regstatus",a)},expression:"formdata.regstatus"}})]},proxy:!0}])}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("open_enrollment_text")))]),e("van-field",{attrs:{label:t.$t("register_link_text")+":"},model:{value:t.formdata.reglinkname,callback:function(a){t.$set(t.formdata,"reglinkname",a)},expression:"formdata.reglinkname"}}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("register_link_text_text")))]),e("van-field",{attrs:{type:"number",label:t.$t("password_min_length")+":"},model:{value:t.formdata.pwlength,callback:function(a){t.$set(t.formdata,"pwlength",a)},expression:"formdata.pwlength"}}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("password_min_length_state")))]),e("van-field",{attrs:{name:"checkboxGroup",label:t.$t("mandatory_password_complexity")+":"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-checkbox-group",{attrs:{direction:"horizontal"},model:{value:t.formdata.strongpw,callback:function(a){t.$set(t.formdata,"strongpw",a)},expression:"formdata.strongpw"}},t._l(t.fstrongpw,(function(a){return e("van-checkbox",{staticStyle:{"margin-bottom":"5px"},attrs:{name:a.val,shape:"square"}},[t._v(t._s(a.text))])})),1)]},proxy:!0}])}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("mandatory_password_complexity_state")))]),e("van-field",{attrs:{name:"radioxGroup",label:t.$t("according_site_terms_service")+":"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.formdata.bbrules,callback:function(a){t.$set(t.formdata,"bbrules",a)},expression:"formdata.bbrules"}},[e("van-radio",{attrs:{name:"1"}},[t._v(t._s(t.$t("yes")))]),e("van-radio",{attrs:{name:"0"}},[t._v(t._s(t.$t("no")))])],1)]},proxy:!0}])}),e("p",{staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("registration_website_terms_service")))]),e("van-field",{directives:[{name:"show",rawName:"v-show",value:"1"==t.formdata.bbrules,expression:"formdata.bbrules == '1'"}],attrs:{rows:"2",autosize:"",label:t.$t("terms_service_content")+":",type:"textarea",placeholder:""},model:{value:t.formdata.bbrulestxt,callback:function(a){t.$set(t.formdata,"bbrulestxt",a)},expression:"formdata.bbrulestxt"}}),e("p",{directives:[{name:"show",rawName:"v-show",value:"1"==t.formdata.bbrules,expression:"formdata.bbrules == '1'"}],staticClass:"GrayColor",staticStyle:{"font-size":"0.5em",padding:"0 15px"}},[t._v(t._s(t.$t("details_sites_terms_service")))]),e("div",{staticStyle:{margin:"16px"}},[e("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)},r=[],n={props:["buttonLoad","formdata","fstrongpw"],data:function(){return{}},watch:{buttonLoad:{handler:function(t){var a=this.$toast.loading({message:this.$t("loading")+"...",forbidClick:!0,duration:0});t||a.clear()},deep:!0,immediate:!0}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},o=n,i=(e("e4d0"),e("2877")),l=Object(i["a"])(o,s,r,!1,null,"2c7e0b30",null);a["default"]=l.exports},b7bf:function(t,a,e){},e4d0:function(t,a,e){"use strict";var s=e("b7bf"),r=e.n(s);r.a}}]);
|
||||||
1
admin/setting/dist/js/chunk-4bd6d832.cc9a988f.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4bd6d832"],{"1b19":function(t,a,e){"use strict";var s=e("55b9"),i=e.n(s);i.a},"55b9":function(t,a,e){},b00b:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.buttonLoad,expression:"buttonLoad"}],staticClass:"page-content"},[e("div",{staticClass:"top-title color-border"},[t._v(t._s(t.$t("lefttext4")))]),e("el-scrollbar",{staticClass:"page-component__scroll"},[e("el-form",{ref:"form",staticStyle:{padding:"35px 50px"},attrs:{"label-position":1==t.IfuserAgent?"top":"rigth","label-width":"160px"}},[e("el-form-item",{attrs:{label:t.$t("main_title_page")+":"}},[e("el-input",{staticClass:"max-width",model:{value:t.formdata.loginset.title,callback:function(a){t.$set(t.formdata.loginset,"title",a)},expression:"formdata.loginset.title"}}),e("span",{staticClass:"help-inline"},[t._v(t._s(t.$t("main_title_page_state")))])],1),e("el-form-item",{attrs:{label:t.$t("page_subtitle")+":"}},[e("el-input",{staticClass:"max-width",model:{value:t.formdata.loginset.subtitle,callback:function(a){t.$set(t.formdata.loginset,"subtitle",a)},expression:"formdata.loginset.subtitle"}}),e("span",{staticClass:"help-inline"},[t._v(t._s(t.$t("page_subtitle_state")))])],1),e("el-form-item",{attrs:{label:t.$t("page_background")+":"}},[e("el-input",{staticClass:"max-width",model:{value:t.formdata.loginset.background,callback:function(a){t.$set(t.formdata.loginset,"background",a)},expression:"formdata.loginset.background"}}),e("span",{staticClass:"help-inline"},[t._v(t._s(t.$t("for_color_set")))])],1),e("el-form-item",{staticStyle:{"padding-top":"15px"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("save_changes")))])],1)],1)],1)],1)},i=[],l={props:["IfuserAgent","formdata","buttonLoad"],data:function(){return{}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")}}},n=l,o=(e("1b19"),e("2877")),r=Object(o["a"])(n,s,i,!1,null,"26fd32b2",null);a["default"]=r.exports}}]);
|
||||||
1
admin/setting/dist/js/chunk-51ab32cd.f2e4282a.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51ab32cd"],{3685:function(t,e,a){},ec9e:function(t,e,a){"use strict";var n=a("3685"),i=a.n(n);i.a},fcc8:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"resNav"},[a("div",{staticClass:"resNav-item resNav-left"},[a("a",{staticClass:"h-left",attrs:{href:"javascript:;"},on:{click:function(e){return t.goBack()}}},[a("el-image",{attrs:{src:"data/attachment/sitelogo/sitelogo.png",fit:"contain"}}),a("span",{staticClass:"text"},[t._v(t._s(t.navTitle))])],1)]),a("div",{staticClass:"resNav-item resNav-center"}),a("div",{staticClass:"resNav-item resNav-right"},[a("Mavatar")],1)])},i=[],c=(a("d3b7"),a("5530")),s=a("2f62"),r={props:["hideContent","apptype","hideBack"],data:function(){return{}},computed:Object(c["a"])(Object(c["a"])({},Object(s["c"])(["headerName","navTitle","IfuserAgent"])),Object(s["b"])(["GetNavMenu"])),methods:{handleClick:function(t){var e=this.GetNavMenu;for(var a in e)if(e[a].index==t){"admin"==e[a].type?window.location.href="admin.php?mod="+t:window.location.href="index.php?mod="+t;break}},goBack:function(){window.location.href="/"}},components:{Mavatar:function(){return a.e("chunk-fc47aa76").then(a.bind(null,"6254"))}}},o=r,d=(a("ec9e"),a("2877")),l=Object(d["a"])(o,n,i,!1,null,"b9d2b62e",null);e["default"]=l.exports}}]);
|
||||||
1
admin/setting/dist/js/chunk-56b92ffd.8568d3b0.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56b92ffd"],{"782a":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-content"},[e("div",{staticClass:"top-title color-border"},[t._v(" "+t._s(t.$t("lefttext5"))+" "),e("span",{staticClass:"line"}),e("span",{staticClass:"text",staticStyle:{"margin-right":"20px"},on:{click:t.router_mail}},[t._v(t._s(t.$t("set")))]),e("span",{staticClass:"text color-color-important"},[t._v(t._s(t.$t("detection")))])]),e("el-scrollbar",{staticClass:"page-component__scroll"},[e("el-form",{ref:"form",staticStyle:{padding:"35px 50px"},attrs:{"label-position":1==t.IfuserAgent?"top":"rigth","label-width":"225px"}},[e("el-form-item",{attrs:{label:t.$t("setting_mail_check_test_from")+":"}},[e("el-input",{staticClass:"max-width",attrs:{placeholder:""},model:{value:t.formdata.test_from,callback:function(a){t.$set(t.formdata,"test_from",a)},expression:"formdata.test_from"}})],1),e("el-form-item",{attrs:{label:t.$t("setting_mail_check_test_to")+":"}},[e("el-input",{staticClass:"max-width",attrs:{type:"textarea",autosize:"",placeholder:""},model:{value:t.formdata.test_to,callback:function(a){t.$set(t.formdata,"test_to",a)},expression:"formdata.test_to"}}),e("span",{staticClass:"help-inline"},[t._v(t._s(t.$t("setting_mail_check_test_to_comment")))])],1),e("el-form-item",{staticStyle:{"padding-top":"15px"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.SubmitDatalist}},[t._v(t._s(t.$t("submit")))])],1)],1)],1)],1)},i=[],o={props:["IfuserAgent","formdata"],data:function(){return{}},created:function(){},methods:{SubmitDatalist:function(){this.$emit("formSubmit")},router_mail:function(){this.$router.push({path:"/mail"})}}},l=o,r=(e("a7d2"),e("2877")),n=Object(r["a"])(l,s,i,!1,null,"0b61b126",null);a["default"]=n.exports},a7d2:function(t,a,e){"use strict";var s=e("fa7d"),i=e.n(s);i.a},fa7d:function(t,a,e){}}]);
|
||||||