Bharat Mediratta
bdc0876fa8
Add messaging system for reporting actions back to the user. Make
...
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta
17f77b8de4
Remove module.info from infrastructure modules that are effectively
...
libraries that would ship with the core.
Refactor welcome.php to use the newly refactored module::available()
2008-12-22 04:49:30 +00:00
Bharat Mediratta
9cf2c57921
Normalize CSRF handling into the access helper. Probably not the best
...
place for it, but it'll do for now.
Do CSRF checking in the Admin controller so that we're safe across the
board on the admin side.
2008-12-22 04:33:18 +00:00
Bharat Mediratta
685a5ca1e1
Support proper rendering of locked modules, add a submit button, point it at admin/modules/save
2008-12-22 04:32:23 +00:00
Bharat Mediratta
fe27bd1eb3
Change the way that we track modules.
...
Each module now has a "module.info" file that has information about
the module, including the core. We can display the installed version,
and the version in the code.
Also take a first shot at a modules admin page.
2008-12-22 03:41:33 +00:00
Bharat Mediratta
0573698155
Add some more logging code. Now the site admin has some log entries to look at.
2008-12-21 04:43:47 +00:00
Bharat Mediratta
f257f1b350
create a more generic random_phrase() function
2008-12-21 02:02:06 +00:00
Bharat Mediratta
ec8462410f
Update view counts for albums also
2008-12-20 20:11:51 +00:00
Bharat Mediratta
50b0613243
Add view counts and show them properly.
2008-12-20 20:04:57 +00:00
Bharat Mediratta
e4bace4c74
Collapse Admin_Dashboard_Controller down into a single theme call, since now
...
all dashboard blocks are stored in modules.
2008-12-20 01:42:18 +00:00
Bharat Mediratta
9d2d824336
Fix a bug in admin delegation.
2008-12-19 22:14:14 +00:00
Bharat Mediratta
855a5928ce
Create a new pattern for Site Admin controllers:
...
1) They must all start with "admin_". This pattern is not directly
routable.
2) Their urls must be /admin/xxx.
3) The Admin_Controller will take the xxx and look for Admin_Xxx_Controller
and will delegate to that admin controller, after doing security checks.
Moved the users and dashboard views into individual modules for now.
2008-12-19 09:47:13 +00:00
Bharat Mediratta
8b3e244578
We always have at least 1 page in an album.
2008-12-19 01:26:49 +00:00
Bharat Mediratta
5ca17fd273
Allow server-side adding of images to other albums than the root
2008-12-19 00:48:45 +00:00
Bharat Mediratta
b37047ff55
Add Item_Model::viewable() which we can use to restrict any query to
...
just items viewable by the active user. Ie:
ORM::factory("item")
->where("name", "foo")
->find_all()
Would get all items with the name "foo".
ORM::factory("item")
->viewable()
->where("name", "foo")
->find_all()
Restricts it to just the set of items that the user is allowed to see.
2008-12-17 22:39:33 +00:00
Bharat Mediratta
fa5a8fde4a
Switch from cookie sessions to database sessions. We can't use cookie
...
sessions; it encodes all the value into the cookie which means
little/no security, transfer costs, and storage limits.
2008-12-17 18:32:08 +00:00
Bharat Mediratta
78cd00312e
Improve performance by finding the item without walking the tree.
...
Instead, use the level and the name to get a short list of candidates,
and check each one of those. In most cases, this query should give us
the right result the first time.
2008-12-17 05:53:05 +00:00
Bharat Mediratta
8630d61051
Change the album thumbnail/resize from _album.jpg to .album.pjg
...
because the leading underscore confuses the Kohana router.
2008-12-17 04:55:49 +00:00
Bharat Mediratta
fc7b78492b
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
...
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy.
In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Bharat Mediratta
8c7d0a76e5
Add file_proxy. This is controller gets triggered by .htaccess
...
protection on var/albums and var/resizes and only displays files to
the user if they have "view" permission on the base ite.
2008-12-16 23:07:33 +00:00
Tim Almdal
04441e11cc
1) Remove the load watermark from the scaffolding... use the menu option
...
2) The set watermark dialog is now sizing properly. @todo is recenter in the window
2008-12-16 17:30:18 +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
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
Bharat Mediratta
1127257f63
Rename default_admin to admin_default.
2008-12-15 01:50:52 +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
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
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
8f4fec1f3d
Change the check from class_exists to module::is_installed
2008-12-12 23:02:53 +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
a0415afc1d
Use restore_error_handler() instead of a second set_error_handler() call
2008-12-12 07:44:19 +00:00
Tim Almdal
2fb94444d9
Randomly choose images from core/tests/images as test images
2008-12-12 07:40:53 +00:00
Tim Almdal
b202816324
Remove the attempt at a local import module
2008-12-12 01:46:43 +00:00
Bharat Mediratta
2cf3233f54
Get rid of all pseudo users and pseudo groups, while preserving all
...
other functionality. This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Tim Almdal
e1f2a5d4e6
1) Begins the creation of the local import module by adding the administation component to the scaffolding Actions tab. The importing functionality will follow shortly.
...
2) Defines a routining pattern for module administration controllers. URI's of the form admin/module/method/parameters gets remapped into module_admin/method/parameters. This will result in the lookup of the the controller Module_Admin_Controller
2008-12-11 17:20:55 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
4a0e4b798e
Check view permissions before allowing view access to albums/photos.
2008-12-09 10:14:09 +00:00
Bharat Mediratta
e62103b8d9
Move code to delete users and add/remove users from groups into the
...
model.
2008-12-09 08:47:30 +00:00
Bharat Mediratta
f69f3967ea
move user::delete() to User_Model::delete()
2008-12-09 00:07:26 +00:00
Bharat Mediratta
f0a1950597
Fix a bug in the redirect after adding photos.
2008-12-07 04:56:39 +00:00