Override Flash_Uploader_Controller and redirect to
Html_Uploader_Controller in case anybody generates direct urls to the old controller. The wind theme does this for empty albums.
This commit is contained in:
parent
d1fa017b44
commit
a76e7187f7
26
modules/html_uploader/controllers/flash_uploader.php
Normal file
26
modules/html_uploader/controllers/flash_uploader.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.");
|
||||
/**
|
||||
* Gallery - a web based photo album viewer and editor
|
||||
* Copyright (C) 2000-2010 Bharat Mediratta
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class Flash_Uploader_Controller extends Controller {
|
||||
public function app($id) {
|
||||
// Override the Flash uploader in case anybody goes to it directly
|
||||
// (the Wind theme has a direct link) in empty albums
|
||||
url::redirect("html_uploader/app/$id");
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.");
|
||||
/**
|
||||
* Gallery - a web based photo album viewer and editor
|
||||
* Copyright (C) 2000-2010 Bharat Mediratta
|
||||
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -34,12 +34,12 @@ $config["ldap"] = array(
|
||||
"driver" => "ldap",
|
||||
"allow_updates" => false,
|
||||
"params" => array(
|
||||
"groups" => array("users", "guest"),
|
||||
"groups" => array("eng", "google", "guest"),
|
||||
"everybody_group" => "guest",
|
||||
"registered_users_group" => "users",
|
||||
"admins" => array("jdoe"),
|
||||
"url" => "ldap://127.0.0.1/",
|
||||
"group_domain" => "ou=groups,dc=gallery,dc=local",
|
||||
"user_domain" => "ou=people,dc=gallery,dc=local"
|
||||
"registered_users_group" => "google",
|
||||
"admins" => array("mediratta", "martinm"),
|
||||
"url" => "ldaps://ldap.corp.google.com/",
|
||||
"group_domain" => "ou=Posix,ou=Groups,dc=google,dc=com",
|
||||
"user_domain" => "ou=People,dc=google,dc=com"
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user