| Age | Commit message (Collapse) | Author |
|
Gallery n as opposed any variants of this.
|
|
failed import messages. Thanks shai
|
|
|
|
to write all activity to the "log file". The "log file" is stored in the
persistent cache.
|
|
deprecated.
|
|
|
|
This reverts commit 4ba022438e29dd305435a18e94a0bc08b5dd76a4.
|
|
easily style via css
|
|
Create a _transform_bbcode which coverts the g2 bbcode to html.
The html won't be rendered until ticket #400 is implemented as
pclean() excapse the html
|
|
In G2, text strings have the &, ", < and > replaced by &, "e;,
< and > respectively. Created the _decode_html_special_chars
method in helpers/g2_import.php to revert these character strings.
|
|
Added a call to GalleryCoreApi::fetchItemViewCounts to retrieve the gallery2
view counts forthe imported items.
|
|
an EMPTY_INPUT_FILE exception which we can then log and continue.
|
|
|
|
Changed the set the created date as part of the import and change
models/comment::save() to not set the creation date if it is already
set.
|
|
validate the embed path. This resolves an issue with b1 installs
which had versions of the rewritten code that were buggy and can be
replaced.
|
|
|
|
else (or gets deleted).
Fixes ticket #458
|
|
Add xxx_installer::upgrade($version) method so that upgrade stanzas
are separate from install stanzas. In the old code, to do an upgrade
meant that you had to re-evolve everything from the initial install
because we'd step through each version's changes. But what we really
want is for the initial install to start off in the perfect initial
state, and the upgrades to do the work behind the scenes. So now the
install() function gets things set up properly the first time, and the
upgrade() function does any work to catch you up to the latest code.
See gallery_installer.php for a good example.
|
|
separator. Try to
be smart about it. If we see a comma or a semicolon, expect the keywords to be separated
by that delimeter. Otherwise, use space as the delimiter.
Fixes ticket #446
|
|
|
|
|
|
|
|
returns an error, and log them appropriately. This should fix a slew
of import failures from corrupt G2 installs.
|
|
active, since the code may not even be present. This assumes that if
the G2 comment module *is* active that the code is present, but that's
part of the assumption that the G2 we're importing from is healthy.
Fixes ticket #409
|
|
loading that user.
|
|
|
|
|
|
|
|
68fd196d66e2d21f571ff3b5a673f18cd129abf9 leaving us in a temporarily
broken state.
|
|
|
|
appropriately in g2_import.
|
|
and verifying user permissions, but there are several above-the-bar
changes:
1) Server add is now only available to admins. This is a hard
requirement because we have to limit server access (eg:
server_add::children) to a user subset and the current permission
model doesn't include that. Easiest fix is to restrict to admins.
Got rid of the server_add permission.
2) We now know check permissions at every level, which means in
controllers AND in helpers. This "belt and suspenders" approach will
give us defense in depth in case we overlook it in one area.
3) We now do CSRF checking in every controller method that changes the
code, in addition to the Forge auto-check. Again, defense in depth
and it makes scanning the code for security much simpler.
4) Moved Simple_Uploader_Controller::convert_filename_to_title to
item:convert_filename_to_title
5) Fixed a bug in sending notification emails.
6) Fixed the Organize code to verify that you only have access to your
own tasks. In general, added permission checks to organize which had
pretty much no validation code.
I did my best to verify every feature that I touched.
|
|
code preamble for security.
Update File_Structure_Test::code_files_start_with_preamble_test to
check all the php files in var, too.
|
|
users about images that failed to import.
|
|
and Gallery 3 have a class named Gallery. Clone a subset of the
Gallery 2 files and munge them so that we can rename the Galery 2
version to G2_Gallery.
Also, update the disclaimer in Admin > Settings > Gallery 2 Import.
|
|
gallery module. This type of mass update is prone to some small bugs.
|
|
Install: <module>_installer::install() is called, any necessary tables
are created.
Activate: <module>_installer::activate() is called. Module
controllers are routable, helpers are accessible, etc. The module is
in use.
Deactivate: <module>_installer::deactivate() is called. Module code
is not accessible or routable. Module is *not* in use, but its tables
are still around.
Uninstall: <module>_installer::uninstall() is called. Module is
completely removed from the database.
Admin > Modules will install and activate modules, but will only
deactivate (will NOT uninstall modules).
|
|
image instead so that we at least have a target for comments.
Fixes ticket #294
|
|
|
|
image" placeholder and keep on trucking. Oh, and notify the admin.
Fixes ticket #287
|
|
|
|
|
|
|
|
the user enters the path to G2 itself, we find the embed.php path from there.
|
|
|
|
|
|
Refactor the general flow of g2_import_task::import() to simplify it
and make it more sensible. It had gotten a little overgrown. It's
still a little overgrown, but I don't see an easy way to simplify it
from here.
|
|
|
|
any resizes (or thumbnails).
Fix a case where we were over-weighting the max dimension for square
resizes and thumbs.
|
|
|