summaryrefslogtreecommitdiff
path: root/core/views/permissions_browse.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-28 06:07:27 +0800
committerGallery Role Account <gallery@menalto.com>2009-05-28 11:07:06 +0800
commitb245e3475f66c94afb94f8b2287bf0185a343732 (patch)
treea34b000f90311a42cc689af1785bb0586a334de8 /core/views/permissions_browse.html.php
parentb7a193cc19c7ac3ec67fa297b574fcd6caefe617 (diff)
Restructure things so that the application is now just another module.
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here. Signed-off-by: Gallery Role Account <gallery@menalto.com>
Diffstat (limited to 'core/views/permissions_browse.html.php')
-rw-r--r--core/views/permissions_browse.html.php56
1 files changed, 0 insertions, 56 deletions
diff --git a/core/views/permissions_browse.html.php b/core/views/permissions_browse.html.php
deleted file mode 100644
index afd87c2b..00000000
--- a/core/views/permissions_browse.html.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<script type="text/javascript">
- var form_url = "<?= url::site("permissions/form/__ITEM__") ?>";
- show = function(id) {
- $.ajax({
- url: form_url.replace("__ITEM__", id),
- success: function(data) {
- $("div.form").slideUp();
- $("div#edit-" + id).html(data).slideDown();
- }
- });
- }
-
- var action_url =
- "<?= url::site("permissions/change/__CMD__/__GROUP__/__PERM__/__ITEM__?csrf=$csrf") ?>";
- set = function(cmd, group_id, perm_id, item_id) {
- $.ajax({
- url: action_url.replace("__CMD__", cmd).replace("__GROUP__", group_id).
- replace("__PERM__", perm_id).replace("__ITEM__", item_id),
- success: function(data) {
- $("div#edit-" + item_id).load(form_url.replace("__ITEM__", item_id));
- }
- });
- }
-</script>
-<div id="gPermissions">
- <? if (!$htaccess_works): ?>
- <ul id="gMessage">
- <li class="gError">
- <?= t("Oh no! Your server needs a configuration change in order for you to hide photos! Ask your server administrator to set <a href=\"%url\"><i>AllowOverride FileInfo Options</i></a> to fix this.", array("url" => "http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride")) ?>
- </li>
- </ul>
- <? endif ?>
- <ul>
- <? foreach ($parents as $parent): ?>
- <li>
- <a href="javascript:show(<?= $parent->id ?>)">
- <?= $parent->title ?>
- </a>
- <div class="form" id="edit-<?= $parent->id ?>"></div>
- <ul>
- <? endforeach ?>
- <li>
- <a href="javascript:show(<?= $item->id ?>)">
- <?= $item->title ?>
- </a>
- <div class="form" id="edit-<?= $item->id ?>">
- <?= $form ?>
- </div>
- </li>
- <? foreach ($parents as $parent): ?>
- </ul>
- </li>
- </ul>
- <? endforeach ?>
-</div>