diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 15:07:27 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 15:07:27 -0700 |
| commit | 28b41056e3ea962dce1ad017a3c0a60252195e7a (patch) | |
| tree | 82c11956bb13969e6c8ddeb39ccfce7ae70786ca /core/views/permissions_browse.html.php | |
| parent | 2e285cf3ecac742193457347ecb5c2d1121a1052 (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.
Diffstat (limited to 'core/views/permissions_browse.html.php')
| -rw-r--r-- | core/views/permissions_browse.html.php | 56 |
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> |
