Replaced the code with the newest version in the "dev" branch
339
LICENSE
|
|
@ -1,339 +0,0 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry',true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -15,14 +17,14 @@ require_once('../entry.php');
|
|||
global $user, $conf, $tumble;
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>gelato :: <?php echo __("admin users")?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo util::version();?>" />
|
||||
<?php $util_class = new util(); ?>
|
||||
<meta name="generator" content="gelato cms <?php echo $util_class->version(); ?>" />
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato; ?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato; ?>/admin/scripts/jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato; ?>/admin/scripts/tools.js"></script>
|
||||
|
|
@ -92,8 +94,7 @@ if ($user->isAdmin()) {
|
|||
} elseif ($_GET["error"]==2) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server:.")." </strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<div class="tabla">
|
||||
<table border="0" cellpadding="0" cellspacing="0" id="admin-table">
|
||||
<thead>
|
||||
|
|
@ -111,24 +112,29 @@ if ($user->isAdmin()) {
|
|||
if ($db->contarRegistros()>0) {
|
||||
while ($register = mysql_fetch_array($rs)) {
|
||||
?>
|
||||
<tr <?php if ($odd) { echo 'class="odd"'; } $odd=!$odd; ?>>
|
||||
<tr <?php if ($odd) {
|
||||
echo 'class="odd"';
|
||||
}
|
||||
$odd=!$odd; ?>>
|
||||
<td><?php echo $register["login"]."\n"; ?></td>
|
||||
<td><?php echo $register["name"]."\n"; ?></td>
|
||||
<td><a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a></td>
|
||||
<td><?php if ($_SESSION["user_id"] != $register["id_user"]) { ?><a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a><?php } ?> </td>
|
||||
<td><?php if ($_SESSION["user_id"] != $register["id_user"]) {
|
||||
?><a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a><?php
|
||||
} ?> </td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4"><div class="exito"><?php echo __("No users available.")?></div></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -143,6 +149,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry'))define('entry', true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -17,7 +19,6 @@ if(!defined('entry'))define('entry', true);
|
|||
|
||||
if ($user->isAdmin()) {
|
||||
if ($_GET["action"]) {
|
||||
|
||||
if ($_GET["action"] == "close") {
|
||||
if ($user->closeSession()) {
|
||||
echo __(" ending session…");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry'))define('entry', true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -16,20 +18,19 @@ if(!defined('entry'))define('entry', true);
|
|||
require('../entry.php');
|
||||
global $user, $conf, $tumble;
|
||||
$template = new plantillas("admin");
|
||||
|
||||
$util_class = new util();
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
if (isset($_POST["btnAdd"])) {
|
||||
unset($_POST["btnAdd"]);
|
||||
|
||||
if ($_POST["type"]=="2") { // is Photo type
|
||||
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
||||
$photoName = util::getFileName($_POST["url"]);
|
||||
$photoName = $util_class->getFileName($_POST["url"]);
|
||||
if (!$tumble->savePhoto($_POST["url"])) {
|
||||
header("Location: ".$conf->urlGelato."/admin/index.php?photo=false");
|
||||
die();
|
||||
}
|
||||
$_POST["url"] = "../uploads/".util::sanitizeName($photoName);
|
||||
$_POST["url"] = "../uploads/".$util_class->sanitizeName($photoName);
|
||||
}
|
||||
|
||||
unset($_POST["photo"]);
|
||||
|
|
@ -38,7 +39,7 @@ if ($user->isAdmin()) {
|
|||
|
||||
if ($_POST["type"]=="7") { // is MP3 type
|
||||
set_time_limit(300);
|
||||
$mp3Name = util::getFileName($_POST["url"]);
|
||||
$mp3Name = $util_class->getFileName($_POST["url"]);
|
||||
if (!$tumble->saveMP3($_POST["url"])) {
|
||||
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
||||
die();
|
||||
|
|
@ -53,8 +54,8 @@ if ($user->isAdmin()) {
|
|||
$_POST["description"] = addslashes($_POST["description"]);
|
||||
}
|
||||
|
||||
$_POST["title"] = util::removeBadTags($_POST["title"],true);
|
||||
$_POST["description"] = util::removeBadTags($_POST["description"]);
|
||||
$_POST["title"] = $util_class->removeBadTags($_POST["title"], true);
|
||||
$_POST["description"] = $util_class->removeBadTags($_POST["description"]);
|
||||
|
||||
if ($tumble->addPost($_POST)) {
|
||||
$input = array("{type}");
|
||||
|
|
@ -68,21 +69,19 @@ if ($user->isAdmin()) {
|
|||
die();
|
||||
}
|
||||
} else {
|
||||
|
||||
if (isset($_GET["url"])) {
|
||||
$url = $_GET["url"];
|
||||
} else {
|
||||
$url = null;
|
||||
}
|
||||
if (isset($url)) {
|
||||
|
||||
if (util::isMP3($url)) {
|
||||
if ($util_class->isMP3($url)) {
|
||||
$postType = "mp3";
|
||||
} elseif (util::isGoEar($url)) {
|
||||
} elseif ($util_class->isGoEar($url)) {
|
||||
$postType = "mp3";
|
||||
} elseif (util::isImageFile($url)) {
|
||||
} elseif ($util_class->isImageFile($url)) {
|
||||
$postType = "photo";
|
||||
} elseif (util::isVideo($url)) {
|
||||
} elseif ($util_class->isVideo($url)) {
|
||||
$postType = "video";
|
||||
} else {
|
||||
if (isset($_GET["sel"]) && !$_GET["sel"]=="") {
|
||||
|
|
@ -91,16 +90,14 @@ if ($user->isAdmin()) {
|
|||
$postType = "url";
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
die(__("Must be a valid URL"));
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo util::version();?>" />
|
||||
<meta name="generator" content="gelato cms <?php echo $util_class->version(); ?>" />
|
||||
<title>gelato :: <?php echo __("bookmarklet")?></title>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato; ?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato; ?>/admin/scripts/jquery.js"></script>
|
||||
|
|
@ -152,14 +149,13 @@ if ($user->isAdmin()) {
|
|||
<li class="selected"><a href="#"><img src="css/images/music.png" alt="New audio" /> <?php echo __("Audio")?></a></li>
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<form action="bm.php" method="post" <?php echo (isset($_GET["new"]) && $_GET["new"]=="photo") ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd" class="newpost">
|
||||
<fieldset>
|
||||
<?php
|
||||
$date = gmmktime();
|
||||
$date = time();
|
||||
$title = "";
|
||||
$body = (isset($_GET["sel"])) ? $_GET["sel"] : "";
|
||||
$url = (isset($url)) ? $url : "";
|
||||
|
|
@ -201,8 +197,7 @@ if ($user->isAdmin()) {
|
|||
$template->cargarPlantilla($input, $output, "template_add_mp3");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<p>
|
||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
||||
<?php echo __("Some HTML allowed")?>:<br />
|
||||
|
|
@ -226,8 +221,8 @@ if ($user->isAdmin()) {
|
|||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
} ?>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
|
|
@ -235,6 +230,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
$target = (isset($_GET["url"]))? "/login.php?redirect_url=".$_GET["url"]."&sel=".$_GET["sel"] : "/login.php";
|
||||
header("Location: ".$conf->urlGelato.$target);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry'))define('entry', true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -52,10 +54,12 @@ $closed = $user->closeSession();
|
|||
?>
|
||||
<h2><?php echo __("Ending session…")?></h2>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
?>
|
||||
<h2><?php echo __("Has happened an error when closing the session.")?></h2>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry',true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -19,7 +21,7 @@ $comment = new comments();
|
|||
$template = new plantillas("admin");
|
||||
$isAdmin = $user->isAdmin();
|
||||
$isEdition = isset($_GET["edit"]);
|
||||
$commentId = ($isEdition) ? $_GET["edit"] : NULL;
|
||||
$commentId = ($isEdition) ? $_GET["edit"] : null;
|
||||
|
||||
if (isset($_POST["btnAdd"])) {
|
||||
unset($_POST["btnAdd"]);
|
||||
|
|
@ -56,7 +58,6 @@ if(isset($_POST["btnAdd"])) {
|
|||
}
|
||||
|
||||
if ($isAdmin) {
|
||||
|
||||
if (isset($_GET["delete"])) {
|
||||
if ($comment->deleteComment($_GET['delete'])) {
|
||||
header("Location: comments.php?deleted=true");
|
||||
|
|
@ -65,9 +66,7 @@ if ($isAdmin) {
|
|||
header("Location: comments.php?deleted=false");
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
} ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
|
|
@ -104,8 +103,12 @@ if ($isAdmin) {
|
|||
<ul class="menu manage">
|
||||
<h3><?=__("Manage comments")?></h3>
|
||||
<li><a href="index.php"><?=__("Posts")?></a></li>
|
||||
<li <?php if (isset($_GET["spam"])) { ?> class="selected" <?php } ?>><a href="comments.php?spam=true"><?=__("Spam")?></a></li>
|
||||
<li <?php if (!isset($_GET["spam"])) { ?> class="selected" <?php } ?> ><a href="comments.php"><?php echo ($isEdition) ? __("Edit") : __("List"); ?></a></li>
|
||||
<li <?php if (isset($_GET["spam"])) {
|
||||
?> class="selected" <?php
|
||||
} ?>><a href="comments.php?spam=true"><?=__("Spam")?></a></li>
|
||||
<li <?php if (!isset($_GET["spam"])) {
|
||||
?> class="selected" <?php
|
||||
} ?> ><a href="comments.php"><?php echo ($isEdition) ? __("Edit") : __("List"); ?></a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?php
|
||||
|
|
@ -125,12 +128,10 @@ if ($isAdmin) {
|
|||
if ($_GET["modified"]=="false") {
|
||||
echo "<div class=\"error\" id=\"divMessages\">".__("The post has NOT been modified.")."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<div class="tabla">
|
||||
<?php
|
||||
if ($isEdition) {
|
||||
|
||||
$row = $comment->getComment($_GET["edit"]);
|
||||
$date = strtotime($row["comment_date"]);
|
||||
|
||||
|
|
@ -139,13 +140,11 @@ if ($isAdmin) {
|
|||
|
||||
$template->cargarPlantilla($input, $output, "template_comment_post");
|
||||
$template->mostrarPlantilla();
|
||||
|
||||
} else {
|
||||
|
||||
if (isset($_GET["page"]) && is_numeric($_GET["page"])) {
|
||||
$page_num = $_GET["page"];
|
||||
} else {
|
||||
$page_num = NULL;
|
||||
$page_num = null;
|
||||
}
|
||||
|
||||
$limit=$conf->postLimit;
|
||||
|
|
@ -156,13 +155,16 @@ if ($isAdmin) {
|
|||
$from = 0;
|
||||
}
|
||||
|
||||
if (isset($_GET["spam"]) && $_GET["spam"]=="true") { $sp = "1"; } else { $sp = null; }
|
||||
if (isset($_GET["spam"]) && $_GET["spam"]=="true") {
|
||||
$sp = "1";
|
||||
} else {
|
||||
$sp = null;
|
||||
}
|
||||
|
||||
$rs = $comment->getComments(null, $limit, $from, $sp);
|
||||
|
||||
if ($db->contarRegistros()>0) {
|
||||
while ($rowComment = mysql_fetch_array($rs)) {
|
||||
|
||||
$commentAuthor = ($rowComment["web"]=="") ? $rowComment["username"]." | ".$rowComment["email"] : "<a href=\"".$rowComment["web"]."\" rel=\"external\">".$rowComment["username"]."</a> | ".$rowComment["email"];
|
||||
|
||||
$input = array("{Permalink}", "{URL_Tumble}", "{Id_Comment}", "{Comment_Author}", "{Comment}");
|
||||
|
|
@ -178,8 +180,7 @@ if ($isAdmin) {
|
|||
$p->currentPage(isset($page_num) ? $page_num : 1);
|
||||
$p->show();
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<div class="footer-box"> </div>
|
||||
|
|
@ -192,6 +193,7 @@ if ($isAdmin) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 54 B After Width: | Height: | Size: 54 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 64 B After Width: | Height: | Size: 64 B |
|
Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 557 B |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 715 B |
|
Before Width: | Height: | Size: 54 B After Width: | Height: | Size: 54 B |
|
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 807 B |
|
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 653 B |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 516 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 371 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
|
Before Width: | Height: | Size: 923 B After Width: | Height: | Size: 923 B |
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry', true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -31,9 +33,7 @@ if ($user->isAdmin()) {
|
|||
$message = __('Feed deleted');
|
||||
$messageStatus = 'error';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
} ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
|
|
@ -136,8 +136,7 @@ if ($user->isAdmin()) {
|
|||
} else {
|
||||
echo '<li><a href="feeds.php?delete='.$feed['id_feed'].'" title="'.__('Delete this Feed').'" class="action"><img title="" alt="" src="css/images/delete.png"/></a><span class="status" title="'.__('Last update').': '.$feed['updated_at'].'">'.__('Importing').'</span> '.((!empty($feed['title']))? $feed['title'] : $feed['url']).'</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -152,6 +151,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry'))define('entry', true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -19,7 +21,7 @@ global $user, $conf, $tumble;
|
|||
$theme = new themes;
|
||||
|
||||
$isEdition = (isset($_GET["edit"])) ? true : false;
|
||||
$postId = ($isEdition) ? $_GET["edit"] : NULL;
|
||||
$postId = ($isEdition) ? $_GET["edit"] : null;
|
||||
|
||||
$theme->set('isEdition', $isEdition);
|
||||
$theme->set('postId', $postId);
|
||||
|
|
@ -30,7 +32,7 @@ if (get_magic_quotes_gpc()) {
|
|||
$_GET[$k]=stripslashes($get);
|
||||
}
|
||||
}
|
||||
|
||||
$util_class = new util();
|
||||
if ($user->isAuthenticated()) {
|
||||
if (isset($_GET["delete"])) {
|
||||
$tumble->deletePost($_GET['delete']);
|
||||
|
|
@ -40,20 +42,20 @@ if ($user->isAuthenticated()) {
|
|||
|
||||
if (isset($_POST["btnAdd"])) {
|
||||
unset($_POST["btnAdd"]);
|
||||
$_POST['type'] = util::type2Number($_POST['type']);
|
||||
$_POST['type'] = $util_class->type2Number($_POST['type']);
|
||||
|
||||
if ($_POST["type"]=="2") { // is Photo type
|
||||
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
||||
$photoName = util::getFileName($_POST["url"]);
|
||||
$photoName = $util_class->getFileName($_POST["url"]);
|
||||
if (!$tumble->savePhoto($_POST["url"])) {
|
||||
header("Location: ".$conf->urlGelato."/admin/index.php?photo=false");
|
||||
die();
|
||||
}
|
||||
$_POST["url"] = "../uploads/".util::sanitizeName($photoName);
|
||||
$_POST["url"] = "../uploads/".$util_class->sanitizeName($photoName);
|
||||
}
|
||||
|
||||
if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".util::sanitizeName($_FILES['photo']['name']) ) ) {
|
||||
$_POST["url"] = "../uploads/".util::sanitizeName($_FILES['photo']['name']);
|
||||
if (move_uploaded_file($_FILES['photo']['tmp_name'], "../uploads/".$util_class->sanitizeName($_FILES['photo']['name']))) {
|
||||
$_POST["url"] = "../uploads/".$util_class->sanitizeName($_FILES['photo']['name']);
|
||||
}
|
||||
|
||||
unset($_POST["photo"]);
|
||||
|
|
@ -62,12 +64,12 @@ if ($user->isAuthenticated()) {
|
|||
|
||||
if ($_POST["type"]=="7") { // is MP3 type
|
||||
set_time_limit(300);
|
||||
$mp3Name = util::getFileName($_POST["url"]);
|
||||
$mp3Name = $util_class->getFileName($_POST["url"]);
|
||||
if (!$tumble->saveMP3($_POST["url"])) {
|
||||
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
||||
die();
|
||||
}
|
||||
if (util::isMP3($remoteFileName)) {
|
||||
if ($util_class->isMP3($remoteFileName)) {
|
||||
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
||||
}
|
||||
}
|
||||
|
|
@ -84,8 +86,8 @@ if ($user->isAuthenticated()) {
|
|||
$_POST["description"] = $textile->TextileThis(removeBadTags($_POST["description"]));
|
||||
*/
|
||||
|
||||
$_POST["title"] = util::removeBadTags($_POST["title"],true);
|
||||
$_POST["description"] = util::removeBadTags($_POST["description"]);
|
||||
$_POST["title"] = $util_class->removeBadTags($_POST["title"], true);
|
||||
$_POST["description"] = $util_class->removeBadTags($_POST["description"]);
|
||||
|
||||
if (isset($_POST["id_post"]) and is_numeric($_POST["id_post"]) and $_POST["id_post"]>0) {
|
||||
$tumble->modifyPost($_POST, $_POST["id_post"]);
|
||||
|
|
@ -105,7 +107,8 @@ if ($user->isAuthenticated()) {
|
|||
$admin_includes = "";
|
||||
$trigger->call('admin_includes');
|
||||
$theme->set('admin_includes', $admin_includes);
|
||||
$theme->set('version',util::version());
|
||||
|
||||
$theme->set('version', $util_class->version());
|
||||
$theme->set('conf', array(
|
||||
'urlGelato'=>$conf->urlGelato,
|
||||
'richText'=>$conf->richText
|
||||
|
|
@ -115,11 +118,12 @@ if ($user->isAuthenticated()) {
|
|||
$theme->set('error', false);
|
||||
|
||||
if ($conf->check_version) {
|
||||
$present = util::version();
|
||||
$lastest = util::_file_get_contents("http://www.gelatocms.com/vgel.txt");
|
||||
if ($present < $lastest)
|
||||
$present = $util_class->version();
|
||||
$lastest = $util_class->_file_get_contents("http://www.gelatocms.com/vgel.txt");
|
||||
if ($present < $lastest) {
|
||||
$theme->set('information', __("A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>."));
|
||||
}
|
||||
}
|
||||
|
||||
$actions = array(
|
||||
'deleted'=>false,
|
||||
|
|
@ -144,14 +148,17 @@ if ($user->isAuthenticated()) {
|
|||
|
||||
$theme->set('action', $actions);
|
||||
|
||||
if (isset($_GET["error"]) and $_GET["error"]==2)
|
||||
if (isset($_GET["error"]) and $_GET["error"]==2) {
|
||||
$theme->set('error', __("Error on the database server:")." </strong>".$_GET["des"]);
|
||||
}
|
||||
|
||||
if (isset($_GET["mp3"]) and $_GET["mp3"]=='false')
|
||||
if (isset($_GET["mp3"]) and $_GET["mp3"]=='false') {
|
||||
$theme->set('error', __("Not an MP3 file or an upload problem."));
|
||||
}
|
||||
|
||||
if (isset($_GET["photo"]) and $_GET["photo"]=='false')
|
||||
if (isset($_GET["photo"]) and $_GET["photo"]=='false') {
|
||||
$theme->set('error', __("Not a photo file or an upload problem."));
|
||||
}
|
||||
|
||||
if ($isEdition) {
|
||||
switch ($post["type"]) {
|
||||
|
|
@ -165,12 +172,14 @@ if ($user->isAuthenticated()) {
|
|||
}
|
||||
}
|
||||
|
||||
$date = ($isEdition) ? strtotime($post["date"]) : gmmktime();
|
||||
$date = ($isEdition) ? strtotime($post["date"]) : time();
|
||||
$title = ($isEdition) ? htmlspecialchars(stripslashes($post["title"])) : "";
|
||||
$body = ($isEdition) ? stripslashes($post["description"]) : "";
|
||||
$url = ($isEdition) ? $post["url"] : "";
|
||||
|
||||
if (!isset($_GET['new'])) $_GET['new'] = 'post';
|
||||
if (!isset($_GET['new'])) {
|
||||
$_GET['new'] = 'post';
|
||||
}
|
||||
|
||||
$form = new themes;
|
||||
$form->set('date', $date);
|
||||
|
|
@ -180,49 +189,51 @@ if ($user->isAuthenticated()) {
|
|||
switch ($_GET["new"]) {
|
||||
case "post":
|
||||
$form->set('editTitle', $title);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_post.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_post.htm'));
|
||||
break;
|
||||
case "photo":
|
||||
$url = str_replace("../", $conf->urlGelato."/", $url);
|
||||
$form->set('editUrl', $url);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_photo.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_photo.htm'));
|
||||
break;
|
||||
case "quote":
|
||||
$form->set('editTitle', $title);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_quote.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_quote.htm'));
|
||||
break;
|
||||
case "url":
|
||||
$form->set('editTitle', $title);
|
||||
$form->set('editUrl', $url);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_link.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_link.htm'));
|
||||
break;
|
||||
case "conversation":
|
||||
$form->set('editTitle', $title);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_conversation.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_conversation.htm'));
|
||||
break;
|
||||
case "video":
|
||||
$form->set('editUrl', $url);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_video.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_video.htm'));
|
||||
break;
|
||||
case "mp3":
|
||||
$form->set('editUrl', $url);
|
||||
$theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_mp3.htm'));
|
||||
$theme->set('form', $form->fetch(Absolute_Path.'admin/themes/admin/template_add_mp3.htm'));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (!$isEdition) {
|
||||
if (isset($_GET["page"]))
|
||||
if (isset($_GET["page"])) {
|
||||
$page_num = $_GET["page"];
|
||||
else
|
||||
$page_num = NULL;
|
||||
} else {
|
||||
$page_num = null;
|
||||
}
|
||||
|
||||
$limit=$conf->postLimit;
|
||||
|
||||
if(isset($page_num) && is_numeric($page_num) && $page_num>0)// Is defined the page and is numeric?
|
||||
if (isset($page_num) && is_numeric($page_num) && $page_num>0) {// Is defined the page and is numeric?
|
||||
$from = (($page_num-1) * $limit);
|
||||
else
|
||||
} else {
|
||||
$from = 0;
|
||||
}
|
||||
|
||||
$rs = $tumble->getPosts($limit, $from);
|
||||
$theme->set('Posts_Number', $db->contarRegistros());
|
||||
|
|
@ -230,9 +241,9 @@ if ($user->isAuthenticated()) {
|
|||
$rows = array();
|
||||
if ($db->contarRegistros()>0) {
|
||||
while ($register = mysql_fetch_array($rs)) {
|
||||
$row['postType'] = util::type2Text($tumble->getType($register["id_post"]));
|
||||
$row['postType'] = $util_class->type2Text($tumble->getType($register["id_post"]));
|
||||
|
||||
$formatedDate = gmdate("M d", strtotime($register["date"]) + util::transform_offset($conf->offsetTime));
|
||||
$formatedDate = gmdate("M d", strtotime($register["date"]) + $util_class->transform_offset($conf->offsetTime));
|
||||
$strEnd=($conf->urlFriendly) ? "/" : "";
|
||||
$permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
|
||||
|
||||
|
|
@ -249,13 +260,14 @@ if ($user->isAuthenticated()) {
|
|||
$row['Body'] = $register["description"];
|
||||
break;
|
||||
case "2":
|
||||
$fileName = "../uploads/".util::getFileName($register["url"]);
|
||||
$fileName = "../uploads/".$util_class->getFileName($register["url"]);
|
||||
|
||||
$x = @getimagesize($fileName);
|
||||
if ($x[0] > 100)
|
||||
if ($x[0] > 100) {
|
||||
$photoPath = $conf->urlGelato."/classes/imgsize.php?w=100&img=".$register["url"];
|
||||
else
|
||||
} else {
|
||||
$photoPath = $register["url"];
|
||||
}
|
||||
|
||||
$effect = " href=\"".str_replace("../", $conf->urlGelato."/", $register["url"])."\" rel=\"lightbox\"";
|
||||
|
||||
|
|
@ -269,8 +281,9 @@ if ($user->isAuthenticated()) {
|
|||
$row['Source'] = $register["title"];
|
||||
break;
|
||||
case "4":
|
||||
if($conf->shorten_links)
|
||||
$register["url"] = util::_file_get_contents("http://api.abbrr.com/api.php?out=link&url=".$register["url"]);
|
||||
if ($conf->shorten_links) {
|
||||
$register["url"] = $util_class->_file_get_contents("http://api.abbrr.com/api.php?out=link&url=".$register["url"]);
|
||||
}
|
||||
$register["title"] = ($register["title"]=="")? $register["url"] : $register["title"];
|
||||
|
||||
$row['URL'] = $register["url"];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry',true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -16,7 +18,6 @@ require_once('../entry.php');
|
|||
global $user, $conf, $tumble;
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
if (isset($_POST["btnsubmit"])) {
|
||||
if (!$tumble->saveOption($_POST["rich_text"], "rich_text")) {
|
||||
header("Location: ".$conf->urlGelato."/admin/options.php?error=1&des=".$conf->merror);
|
||||
|
|
@ -114,8 +115,7 @@ if ($user->isAdmin()) {
|
|||
if ($_GET["error"]==1) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server: ")."</strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<div class="tabla">
|
||||
|
||||
<form action="options.php" method="post" id="options_form" autocomplete="off" class="newpost">
|
||||
|
|
@ -123,20 +123,32 @@ if ($user->isAdmin()) {
|
|||
<ul>
|
||||
<li class="select"><label for="rich_text"><?php echo __("Rich text editor:")?></label>
|
||||
<select name="rich_text" id="rich_text">
|
||||
<option value="1" <?php if($conf->richText) echo "selected"; ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if(!$conf->richText) echo "selected"; ?>><?php echo __("Deactive")?></option>
|
||||
<option value="1" <?php if ($conf->richText) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if (!$conf->richText) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Deactive")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select"><label for="url_friendly"><?php echo __("URL friendly:")?></label>
|
||||
<select name="url_friendly" id="url_friendly">
|
||||
<option value="1" <?php if($conf->urlFriendly) echo "selected"; ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if(!$conf->urlFriendly) echo "selected"; ?>><?php echo __("Deactive")?></option>
|
||||
<option value="1" <?php if ($conf->urlFriendly) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if (!$conf->urlFriendly) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Deactive")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select"><label for="allow_comments"><?php echo __("Allow readers comments:")?></label>
|
||||
<select name="allow_comments" id="allow_comments">
|
||||
<option value="1" <?php if($conf->allowComments) echo "selected"; ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if(!$conf->allowComments) echo "selected"; ?>><?php echo __("Deactive")?></option>
|
||||
<option value="1" <?php if ($conf->allowComments) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if (!$conf->allowComments) {
|
||||
echo "selected";
|
||||
} ?>><?php echo __("Deactive")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select"><label for="time_offsets"><?php echo __("Time Offset:")?></label>
|
||||
|
|
@ -207,35 +219,66 @@ if ($user->isAdmin()) {
|
|||
</li>
|
||||
<li class="select"><label for="shorten_links"><?php echo __("Shorten long URLs:")?></label>
|
||||
<select name="shorten_links" id="shorten_links">
|
||||
<option value="1" <?php if($conf->shorten_links) echo "selected=\"selected\""; ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if(!$conf->shorten_links) echo "selected=\"selected\""; ?>><?php echo __("Deactive")?></option>
|
||||
<option value="1" <?php if ($conf->shorten_links) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if (!$conf->shorten_links) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo __("Deactive")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select"><label for="rss_import_frec"><?php echo __("Import feeds every:")?></label>
|
||||
<select name="rss_import_frec" id="rss_import_frec">
|
||||
<option value="5 minutes" <?php if($conf->rssImportFrec == '5 minutes') echo "selected=\"selected\""; ?>>5 <?php echo __("minutes");?></option>
|
||||
<option value="10 minutes" <?php if($conf->rssImportFrec == '10 minutes') echo "selected=\"selected\""; ?>>10 <?php echo __("minutes");?></option>
|
||||
<option value="15 minutes" <?php if($conf->rssImportFrec == '15 minutes') echo "selected=\"selected\""; ?>>15 <?php echo __("minutes");?></option>
|
||||
<option value="30 minutes" <?php if($conf->rssImportFrec == '30 minutes') echo "selected=\"selected\""; ?>>30 <?php echo __("minutes");?></option>
|
||||
<option value="45 minutes" <?php if($conf->rssImportFrec == '45 minutes') echo "selected=\"selected\""; ?>>45 <?php echo __("minutes");?></option>
|
||||
<option value="1 hour" <?php if($conf->rssImportFrec == '1 hour') echo "selected=\"selected\""; ?>>1 <?php echo __("hour");?></option>
|
||||
<option value="2 hours" <?php if($conf->rssImportFrec == '2 hours') echo "selected=\"selected\""; ?>>2 <?php echo __("hours");?></option>
|
||||
<option value="3 hours" <?php if($conf->rssImportFrec == '3 hours') echo "selected=\"selected\""; ?>>3 <?php echo __("hours");?></option>
|
||||
<option value="4 hours" <?php if($conf->rssImportFrec == '4 hours') echo "selected=\"selected\""; ?>>4 <?php echo __("hours");?></option>
|
||||
<option value="6 hours" <?php if($conf->rssImportFrec == '6 hours') echo "selected=\"selected\""; ?>>6 <?php echo __("hours");?></option>
|
||||
<option value="12 hours" <?php if($conf->rssImportFrec == '12 hours') echo "selected=\"selected\""; ?>>12 <?php echo __("hours");?></option>
|
||||
<option value="1 day" <?php if($conf->rssImportFrec == '1 day') echo "selected=\"selected\""; ?>>24 <?php echo __("hours");?></option>
|
||||
<option value="5 minutes" <?php if ($conf->rssImportFrec == '5 minutes') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>5 <?php echo __("minutes"); ?></option>
|
||||
<option value="10 minutes" <?php if ($conf->rssImportFrec == '10 minutes') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>10 <?php echo __("minutes"); ?></option>
|
||||
<option value="15 minutes" <?php if ($conf->rssImportFrec == '15 minutes') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>15 <?php echo __("minutes"); ?></option>
|
||||
<option value="30 minutes" <?php if ($conf->rssImportFrec == '30 minutes') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>30 <?php echo __("minutes"); ?></option>
|
||||
<option value="45 minutes" <?php if ($conf->rssImportFrec == '45 minutes') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>45 <?php echo __("minutes"); ?></option>
|
||||
<option value="1 hour" <?php if ($conf->rssImportFrec == '1 hour') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>1 <?php echo __("hour"); ?></option>
|
||||
<option value="2 hours" <?php if ($conf->rssImportFrec == '2 hours') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>2 <?php echo __("hours"); ?></option>
|
||||
<option value="3 hours" <?php if ($conf->rssImportFrec == '3 hours') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>3 <?php echo __("hours"); ?></option>
|
||||
<option value="4 hours" <?php if ($conf->rssImportFrec == '4 hours') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>4 <?php echo __("hours"); ?></option>
|
||||
<option value="6 hours" <?php if ($conf->rssImportFrec == '6 hours') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>6 <?php echo __("hours"); ?></option>
|
||||
<option value="12 hours" <?php if ($conf->rssImportFrec == '12 hours') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>12 <?php echo __("hours"); ?></option>
|
||||
<option value="1 day" <?php if ($conf->rssImportFrec == '1 day') {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>24 <?php echo __("hours"); ?></option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="select"><label for="check_version"><?php echo __("Check for updates:")?></label>
|
||||
<select name="check_version" id="check_version">
|
||||
<option value="1" <?php if($conf->check_version) echo "selected=\"selected\""; ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if(!$conf->check_version) echo "selected=\"selected\""; ?>><?php echo __("Deactive")?></option>
|
||||
<option value="1" <?php if ($conf->check_version) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo __("Active")?></option>
|
||||
<option value="0" <?php if (!$conf->check_version) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo __("Deactive")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<?php
|
||||
$trigger->call('add_options_panel');
|
||||
?>
|
||||
$trigger->call('add_options_panel'); ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<p>
|
||||
|
|
@ -255,6 +298,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry',true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -17,8 +19,6 @@ global $user, $conf, $tumble;
|
|||
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
|
||||
$plugins = array();
|
||||
if ($handle = opendir(Absolute_Path."plugins")) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
|
|
@ -101,8 +101,7 @@ if ($user->isAdmin()) {
|
|||
if ($_GET["error"]==1) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server: ")."</strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<div class="tabla">
|
||||
|
||||
<form action="plugins.php" method="post" id="options_form" autocomplete="off" class="newpost">
|
||||
|
|
@ -130,23 +129,26 @@ if ($user->isAdmin()) {
|
|||
$plugin_data = array('Name' => trim($plugin_name[1]), 'URI' => trim($plugin_uri[1]), 'Description' => trim($description[1]), 'Author' => trim($author_name[1]), 'Author_uri' => trim($author_uri[1]), 'Version' => $version);
|
||||
*/
|
||||
$desc = __("There is no info for this plugin jet");
|
||||
$activated = array_key_exists($plugin, $actives);
|
||||
?>
|
||||
$activated = array_key_exists($plugin, $actives); ?>
|
||||
<ul>
|
||||
<li class="select">
|
||||
<label for="<?php echo $key; ?>" title="<?php echo $desc; ?>" class="help"><?php echo $plugin; ?></label>
|
||||
<select name="plugins[<?php echo $plugin; ?>]" id="<?php echo $key; ?>">
|
||||
<option value="on" <?php if($activated) echo 'selected="selected"'; ?>><?php echo __("On")?></option>
|
||||
<option value="off" <?php if(!$activated) echo 'selected="selected"'; ?>><?php echo __("Off")?></option>
|
||||
<option value="on" <?php if ($activated) {
|
||||
echo 'selected="selected"';
|
||||
} ?>><?php echo __("On")?></option>
|
||||
<option value="off" <?php if (!$activated) {
|
||||
echo 'selected="selected"';
|
||||
} ?>><?php echo __("Off")?></option>
|
||||
</select>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
} ?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
} ?>
|
||||
</fieldset>
|
||||
<p>
|
||||
<input type="submit" name="btnsubmit" id="btnsubmit" value="<?php echo __("Modify")?>" class="submit"/>
|
||||
|
|
@ -165,6 +167,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
|
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 567 B |
|
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
|
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 516 B |
|
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 357 B |
|
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
|
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 537 B |
|
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 743 B |
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
|
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 957 B |
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 240 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('entry')) define('entry',true);
|
||||
if (!defined('entry')) {
|
||||
define('entry', true);
|
||||
}
|
||||
/* ===========================
|
||||
|
||||
gelato CMS - A PHP based tumblelog CMS
|
||||
|
|
@ -15,7 +17,6 @@ require_once('../entry.php');
|
|||
global $user, $conf, $tumble;
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
if (isset($_POST["btnsubmit"])) {
|
||||
unset($_POST["btnsubmit"]);
|
||||
$_POST["url_installation"] = (util::endsWith($_POST["url_installation"], "/")) ? substr($_POST["url_installation"], 0, strlen($_POST["url_installation"])-1) : $_POST["url_installation"] ;
|
||||
|
|
@ -72,8 +73,7 @@ if ($user->isAdmin()) {
|
|||
if ($_GET["error"]==1) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server: ")."</strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<div class="tabla">
|
||||
|
||||
<form action="settings.php" method="post" id="settings_form" autocomplete="off" class="newpost">
|
||||
|
|
@ -94,9 +94,7 @@ if ($user->isAdmin()) {
|
|||
foreach ($langs as $key=>$lang) {
|
||||
$active = ($conf->lang==$key) ? "selected" : "";
|
||||
echo "<option value=\"".$key."\" ".$active.">".$lang."</option>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="template"><?php echo __("Template:")?></label>
|
||||
|
|
@ -106,14 +104,11 @@ if ($user->isAdmin()) {
|
|||
foreach ($themes as $theme) {
|
||||
$active = ($conf->template==$theme) ? "selected" : "";
|
||||
echo "<option value=\"".$theme."\" ".$active.">".$theme."</option>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
</select>
|
||||
</li>
|
||||
<?php
|
||||
$trigger->call('add_settings_panel');
|
||||
?>
|
||||
$trigger->call('add_settings_panel'); ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<p>
|
||||
|
|
@ -133,6 +128,7 @@ if ($user->isAdmin()) {
|
|||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
|
|
|
|||
|
|
@ -29,8 +29,16 @@
|
|||
<fieldset class="install">
|
||||
<legend class="install">Database Settings</legend>
|
||||
<ul>
|
||||
<li><label for="login">Are you the admin? Write the same data that "DB_User" in config.php</label>
|
||||
<input type="text" name="db_login" id="db_login" value="{db_login}" class="txt"/>{error.9}</li>
|
||||
<li><label for="login">User:</label>
|
||||
<input type="text" name="db_login" id="db_login" value="{db_login}" class="txt"/>{error.10}</li>
|
||||
<li><label for="password">Password:</label>
|
||||
<input type="password" name="db_password" id="db_password" value="" class="txt"/></li>
|
||||
<li><label for="password2">Re-type password:</label>
|
||||
<input type="password" name="db_password2" id="db_password2" value="" class="txt"/>{error.9}</li>
|
||||
<li><label for="email">Database Host:</label>
|
||||
<input type="text" name="db_host" id="db_host" value="{db_host}" class="txt"/>{error.7}</li>
|
||||
<li><label for="email">Database Name:</label>
|
||||
<input type="text" name="db_name" id="db_name" value="{db_name}" class="txt"/>{error.8}</li>
|
||||
</ul>
|
||||
</fieldset><br />
|
||||
<fieldset class="install">
|
||||
|
|
@ -59,9 +67,7 @@
|
|||
<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
|
||||
<li><label for="lang">Language:</label>
|
||||
<select id="lang" name="lang">
|
||||
{block $langs as $k=>$v}
|
||||
<option value="{$k}" {if $k=='en'}selected="selected"{/if}>{$v}</option>
|
||||
{/block}
|
||||
<option value="en" selected="selected">english</option>
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="template">Template:</label>
|
||||
|
|
|
|||
0
admin/themes/admin/parts/template_add_conversation.htm → admin/themes/admin/template_add_conversation.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_add_link.htm → admin/themes/admin/template_add_link.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_add_mp3.htm → admin/themes/admin/template_add_mp3.htm
Normal file → Executable file
7
admin/themes/admin/parts/template_add_photo.htm → admin/themes/admin/template_add_photo.htm
Normal file → Executable file
|
|
@ -1,3 +1,5 @@
|
|||
|
||||
|
||||
<div id="photo_upload">
|
||||
<label for="description">Photo</label>
|
||||
<br /><input type="file" name="photo" id="photo" accept="image/gif,image/jpeg,image/jpg,image/png"/>
|
||||
|
|
@ -28,9 +30,11 @@
|
|||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
<input type="hidden" name="id_user" id="id_user" value="{id_user}" />
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$('#photo_url').css('display','none');
|
||||
|
||||
$("#autosave").validate({
|
||||
rules: {
|
||||
photo: {
|
||||
|
|
@ -68,4 +72,5 @@
|
|||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
0
admin/themes/admin/parts/template_add_photo_bm.htm → admin/themes/admin/template_add_photo_bm.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_add_post.htm → admin/themes/admin/template_add_post.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_add_quote.htm → admin/themes/admin/template_add_quote.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_add_video.htm → admin/themes/admin/template_add_video.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_bm.htm → admin/themes/admin/template_bm.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_comment.htm → admin/themes/admin/template_comment.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_comment_post.htm → admin/themes/admin/template_comment_post.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_conversation.htm → admin/themes/admin/template_conversation.htm
Normal file → Executable file
0
admin/themes/admin/parts/template_mp3.htm → admin/themes/admin/template_mp3.htm
Normal file → Executable file
1
admin/themes/admin/parts/template_photo.htm → admin/themes/admin/template_photo.htm
Normal file → Executable file
|
|
@ -7,4 +7,3 @@
|
|||
<p><a {Effect}><img src="{PhotoURL}" alt="{PhotoAlt}" /></a></a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||