summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
2008-12-22Add some admin theme callbacks and make them explicitly admin_xxx for ↵Bharat Mediratta
consistency with the callbacks in the xxx_block helpers. So in the theme we have: admin.html.php: $theme->admin_page_bottom() then in the helpers: core_block.php: function admin_page_bottom() { }
2008-12-22Change the way that we track modules.Bharat Mediratta
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-21Add phpdoc comments.Bharat Mediratta
2008-12-21Swap "Content" and "Modules"Bharat Mediratta
2008-12-21INFO -> log::INFOBharat Mediratta
2008-12-21Report actual log entries in the "log entries" admin block.Bharat Mediratta
2008-12-21Add a logging facility, and instrument login/logout to use it.Bharat Mediratta
2008-12-21Implement the 'Project News' block with actual news from GMC.. woot!Bharat Mediratta
2008-12-20Implement the photo stream with the most recently uploaded photos.Bharat Mediratta
2008-12-20Add "created" and "updated" timestamps to the items table.Bharat Mediratta
2008-12-20Add view counts and show them properly.Bharat Mediratta
2008-12-20use some real statsBharat Mediratta
2008-12-20Move log entries into its own blockBharat Mediratta
2008-12-20Move the "Photo Stream" section into its own blockBharat Mediratta
2008-12-20Move the "status messages" section into its own block.Bharat Mediratta
2008-12-20Move Platform and Project News admin sidebar blocks into the newBharat Mediratta
modular structure.
2008-12-20Add admin sidebar blocks, and move the stats block into that pattern.Bharat Mediratta
2008-12-20Create a pattern for admin dashboard blocks and make the "welcome"Bharat Mediratta
block.
2008-12-20Create module::load_themes() to load the correct theme after we doBharat Mediratta
routing and know whether we're going to an /admin page or a regular one.
2008-12-19Add access::forbidden()Bharat Mediratta
2008-12-19Create a new pattern for Site Admin controllers:Bharat Mediratta
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-19Delete the var/thumbs .htaccess files, too.Bharat Mediratta
2008-12-18Refactor site admin menu into a theme function and build the menus inBharat Mediratta
the various modules. In the process, rename xxx_menu::site_navigation() to just xxx_menu::site(). And add xxx_menu::admin(). The menus are the same as before, but I changed the HTML to be consistent with the way that we do it in the regular site, and this broke the superfish styles. I don't know how to fix this.. help me Chad!
2008-12-17Fix some lint errorsBharat Mediratta
2008-12-17Clear out module list in load_modules() before trying any db operationsBharat Mediratta
2008-12-17Switch from cookie sessions to database sessions. We can't use cookieBharat Mediratta
sessions; it encodes all the value into the cookie which means little/no security, transfer costs, and storage limits.
2008-12-17Add initialization to the user module to put the user and group_idsBharat Mediratta
into the session, for easy access. This cuts down the number of queries when we're loading images through file_proxy.php
2008-12-17Separate thumbnails out into var/thumbs. This clears up some ambiguity in ↵Bharat Mediratta
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-16Add file_proxy. This is controller gets triggered by .htaccessBharat Mediratta
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-16Alphabetize field names to make it easier to find 'em.Bharat Mediratta
2008-12-16Change htaccess rules to use mod_rewriteBharat Mediratta
2008-12-16Don't use model_cache for get_version and set_version; that breaks the ↵Bharat Mediratta
installer.
2008-12-16Use model_cache::get() to reduce duplicate queriesBharat Mediratta
2008-12-16Various optimizations:Bharat Mediratta
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-16Fix a bug where we were not deleting the .htaccess file on access::reset()Bharat Mediratta
2008-12-16Create and delete .htaccess files based on the view permissions forBharat Mediratta
the group::everybody() user.
2008-12-16Fix capitalization.Bharat Mediratta
2008-12-16phpdoc cleanupBharat Mediratta
2008-12-16Permission only function on albums.Bharat Mediratta
2008-12-15Protect menus and blocks against the fact that we don't have an itemBharat Mediratta
on tag pages.
2008-12-15The admin high level menu is shown if the active user is not a guest. Other ↵Tim Almdal
sub menus depend on the appropriate level of access
2008-12-151) Move the deletion of the vars into module::delete helperTim Almdal
2) remove the watermark_add_form.html.php
2008-12-15Rename default_admin to admin_default.Bharat Mediratta
2008-12-14load admin subpages AJAXy wayFelix Rabinovich
2008-12-141) fix Forge_Group to display the label (will raise a bug with Kohana)Tim Almdal
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-14Created admin controller and made admin obey admin theme settingsFelix Rabinovich
2008-12-13Fix a bug where parent permissions were not getting inherited to newlyBharat Mediratta
created albums and photos.
2008-12-13Make sure that access::can fails if the item is not loadedBharat Mediratta
2008-12-13Set the resize and thumbnail maximum dimension into the module vars tableTim Almdal
2008-12-13Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize ↵Tim Almdal
method pick the right aspect ratio