Bharat Mediratta
e2544da5b0
Alphabetize field names to make it easier to find 'em.
2008-12-16 08:27:06 +00:00
Bharat Mediratta
3e219aab6b
Change htaccess rules to use mod_rewrite
2008-12-16 08:17:00 +00:00
Bharat Mediratta
8bd7afeb5b
TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode.
2008-12-16 05:13:04 +00:00
Bharat Mediratta
83363172b1
Don't use model_cache for get_version and set_version; that breaks the installer.
2008-12-16 05:04:42 +00:00
Bharat Mediratta
3273984582
Use model_cache::get() to reduce duplicate queries
2008-12-16 04:56:51 +00:00
Bharat Mediratta
65a340efd8
Fix a bug where we were using module::set_var() instead of module::get_var() resulting in
...
loading all photos in an album on a single page and updating the var on every page load.
2008-12-16 04:52:16 +00:00
Bharat Mediratta
e82b08db20
Make the profiler output more legible by adding some padding to the table.
2008-12-16 04:45:52 +00:00
Bharat Mediratta
d9e02a5d0c
Various optimizations:
...
o Add model_cache::get() which caches models avoiding duplicate lookups
o Stop using ORM relationships for Item_Model::owner so that we can use caching
o For Item_Model::xxx_edit fields, don't make them editable for guests
o Other minor stuff.
These optimizations reduce the number of queries for a 9-photos page from ~200
to ~45. Still way too many!
2008-12-16 04:29:00 +00:00
Bharat Mediratta
dc08917345
Fix a bug where we were not deleting the .htaccess file on access::reset()
2008-12-16 02:31:13 +00:00
Bharat Mediratta
61618af0db
Create and delete .htaccess files based on the view permissions for
...
the group::everybody() user.
2008-12-16 01:04:19 +00:00
Bharat Mediratta
898d001330
Fix capitalization.
2008-12-16 00:50:51 +00:00
Bharat Mediratta
eecf7bd518
phpdoc cleanup
2008-12-16 00:31:50 +00:00
Bharat Mediratta
3d2fc86604
Permission only function on albums.
2008-12-16 00:30:05 +00:00
Bharat Mediratta
2f8b4df0f5
Protect menus and blocks against the fact that we don't have an item
...
on tag pages.
2008-12-15 21:23:00 +00:00
Bharat Mediratta
b6363bcb03
Update to reflect changes in Kohana ORM relationship code.
...
Now you must call ORM::save() after ORM::add() and ORM::remove().
2008-12-15 20:49:05 +00:00
Tim Almdal
1d3e1484a7
The admin high level menu is shown if the active user is not a guest. Other sub menus depend on the appropriate level of access
2008-12-15 19:51:49 +00:00
Tim Almdal
b2107c3734
1) Move the deletion of the vars into module::delete helper
...
2) remove the watermark_add_form.html.php
2008-12-15 03:49:48 +00:00
Bharat Mediratta
2812f34732
Rename default_admin to admin_default.
2008-12-15 01:55:07 +00:00
Bharat Mediratta
1127257f63
Rename default_admin to admin_default.
2008-12-15 01:50:52 +00:00
Bharat Mediratta
20f6be62c8
Add Admin_View
2008-12-15 01:49:25 +00:00
Bharat Mediratta
c02d2554cf
Refactor admin dashboard.
...
o Copy all the assets from default to default_admin so that they're
totally separate
o Get rid of $item_theme
o Rename list_users.html.php to users.html.php
o use __call in admin controller to allow us to load any admin page
2008-12-15 01:48:34 +00:00
Bharat Mediratta
19e75b1e2e
mark unauthorized exception w/ a @todo
2008-12-15 00:37:31 +00:00
Tim Almdal
db7e60da32
Change the watermark module to use forge.
...
Also the watermark file is now stored in varpath.
and the location is stored in the module vars table
2008-12-14 23:53:30 +00:00
Felix Rabinovich
c46bd97407
load admin subpages AJAXy way
2008-12-14 21:50:10 +00:00
Bharat Mediratta
b7487e384d
convert single quotes to double quotes for consistency.
2008-12-14 21:39:56 +00:00
Tim Almdal
4b4e9e8e45
The start of the watermark module. It doesn't save the watermark at this point. This is more of trying out the approach where Forge is not used for forms. Basic html and the Validation library.
2008-12-14 19:43:04 +00:00
Felix Rabinovich
7fa014ae61
refactored admin views and added 'List User'
2008-12-14 07:59:24 +00:00
Felix Rabinovich
8b81731846
clean the links and require authorization before showing admin pages
2008-12-14 04:39:22 +00:00
Felix Rabinovich
cb92d1a70d
1. fix up the <link> and <script> elements in the dashboard <head>.
...
2. made the images work properly
2008-12-14 04:16:38 +00:00
Tim Almdal
fc1e7a9333
1) fix Forge_Group to display the label (will raise a bug with Kohana)
...
2) Change form.html.php to use the group label instead of the name
3) Converted the add photo to explicity set the label of the field (new coding standard)
2008-12-14 03:19:31 +00:00
Felix Rabinovich
34c9aa52b8
Fixed tabs and line endings
2008-12-14 02:45:07 +00:00
Felix Rabinovich
13ad40ab5c
Created admin controller and made admin obey admin theme settings
2008-12-14 02:23:37 +00:00
Bharat Mediratta
af8c74f612
Fix a bug where parent permissions were not getting inherited to newly
...
created albums and photos.
2008-12-13 20:06:20 +00:00
Bharat Mediratta
8ba5ea3cf8
Make sure that access::can fails if the item is not loaded
2008-12-13 19:49:33 +00:00
Tim Almdal
80792d4fb1
Set the resize and thumbnail maximum dimension into the module vars table
2008-12-13 05:01:12 +00:00
Tim Almdal
7b7bf37e67
Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize method pick the right aspect ratio
2008-12-13 04:12:40 +00:00
Tim Almdal
8f4fec1f3d
Change the check from class_exists to module::is_installed
2008-12-12 23:02:53 +00:00
Tim Almdal
43e626f99e
Change the resize option on creating thumbnails and resizes to Image::AUTO which will preserve the aspect ratio of the original image
2008-12-12 21:37:11 +00:00
Tim Almdal
942dbe175c
Remove a couple of todo's by store the "theme name", "admin theme name" and "page size" in the vars table and initializing when the core module is installed
2008-12-12 19:39:38 +00:00
Tim Almdal
7715aa9c64
If the user class doesn't exist, then just set the owner_id to null. Another issue of generating data before the user class is installed
2008-12-12 19:36:07 +00:00
Bharat Mediratta
e12451cf10
Refaactor module::install() and module::uninstall() out of the
...
scaffolding and unit test code so that we can use it consistently.
This fixes an issue where adding a module was not refreshing the
statically cached module list causing the test framework to break.
2008-12-12 08:41:48 +00:00
Bharat Mediratta
7e4d13d9bd
Point the Site Admin link at the wireframe for now.
2008-12-12 08:00:07 +00:00
Bharat Mediratta
597cc0013c
Make the error handler public, else it can't be called from outside
...
this class (which is the most likely scenario).
2008-12-12 07:55:19 +00:00
Bharat Mediratta
79226f0a8f
Cache modules and module_names when we call load_modules so that we don't have to check every time
2008-12-12 07:53:54 +00:00
Bharat Mediratta
a0415afc1d
Use restore_error_handler() instead of a second set_error_handler() call
2008-12-12 07:44:19 +00:00
Bharat Mediratta
187f28a6b3
Yet another deal with bootstrapping when we've got no core install yet.
2008-12-12 07:42:26 +00:00
Tim Almdal
2fb94444d9
Randomly choose images from core/tests/images as test images
2008-12-12 07:40:53 +00:00
Bharat Mediratta
e65f8d5022
Remove head() for now.
2008-12-12 07:25:43 +00:00
Bharat Mediratta
11d4e2d725
Don't show the access tab if the user module isn't installed
2008-12-12 07:12:48 +00:00
Bharat Mediratta
54d27238f3
Fix module::_core_installed() hack.
2008-12-12 07:09:00 +00:00