From aaef4c4bf4095afb581a51c465fd82650c7d5b7f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 2 Oct 2013 19:30:05 +0200 Subject: [PATCH] Remove templates for bootstrap_plugins.php, and make sure this file is now empty --- createlinks | 2 + .../etc/ajaxplorer/bootstrap_plugins.php/001exec | 1 - .../ajaxplorer/bootstrap_plugins.php/040plugins | 53 ---------------------- 3 files changed, 2 insertions(+), 54 deletions(-) delete mode 100644 root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/001exec delete mode 100644 root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/040plugins diff --git a/createlinks b/createlinks index 6ff016b..546c851 100644 --- a/createlinks +++ b/createlinks @@ -18,6 +18,8 @@ safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smit safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/template-end"); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/var/cache/ajaxplorer/diag_result.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/var/cache/ajaxplorer/diag_result.php/template-end"); +safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/template-begin"); +safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/template-end"); safe_touch("root/etc/e-smith/templates/var/cache/ajaxplorer/first_run_passed/template-begin"); safe_touch("root/etc/e-smith/templates/var/cache/ajaxplorer/admin_counted/template-begin"); diff --git a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/001exec b/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/001exec deleted file mode 100644 index cc84ed5..0000000 --- a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/001exec +++ /dev/null @@ -1 +0,0 @@ -defined('AJXP_EXEC') or die( 'Access not allowed'); diff --git a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/040plugins b/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/040plugins deleted file mode 100644 index 1709700..0000000 --- a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_plugins.php/040plugins +++ /dev/null @@ -1,53 +0,0 @@ -/*********************************************************/ -/* PLUGINS DEFINITIONS -/* Drivers will define how the application will work. For -/* each type of operation, there are multiple implementation -/* possible. Check the content of the plugins folder. -/* CONF = users and repositories definition, -/* AUTH = users authentification mechanism, -/* LOG = logs of the application. -/* -/* By default, the three are all based on files. -/* -/* ACTIVE_PLUGINS adds other type of plugins to the application. -/* If you are developping your own plugin, do not forget to declare -/* it here. -/*********************************************************/ -$PLUGINS = array( - "CONF_DRIVER" => array( - "NAME" => "serial", - "OPTIONS" => array( - "REPOSITORIES_FILEPATH" => "/var/lib/ajaxplorer/plugins/conf.serial/repo.ser", - "ROLES_FILEPATH" => "/var/lib/ajaxplorer/plugins/auth.serial/roles.ser", - "USERS_DIRPATH" => "/var/lib/ajaxplorer/plugins/auth.serial", - ) - ), - "AUTH_DRIVER" => array( - "NAME" => "basic_http", - "OPTIONS" => array( - "LOGIN_REDIRECT" => false, - "USERS_FILEPATH" => "/var/lib/ajaxplorer/plugins/auth.serial/users.ser", - "AUTOCREATE_AJXPUSER" => false, - "TRANSMIT_CLEAR_PASS" => false, - "LOGOUT_URL" => "{$ajaxplorer{'LogoutUrl'} || 'http://' . $SystemName . '.' . $DomainName;}" ) - ), - "LOG_DRIVER" => array( - "NAME" => "text", - "OPTIONS" => array( - "LOG_PATH" => "/var/log/ajaxplorer/", - "LOG_FILE_NAME" => 'log_' . date('m-d-y') . '.txt', - "LOG_CHMOD" => 0770 - ) - ), - // Do not use wildcard for uploader, to keep them in a given order - // Warning, do not add the "meta." plugins, they are automatically - // detected and activated by the application. - "ACTIVE_PLUGINS" => array("editor.*", "uploader.flex", "uploader.html", "gui.ajax", "hook.*") -); -if(AJXP_Utils::userAgentIsMobile())\{ - $PLUGINS["ACTIVE_PLUGINS"][] = "gui.mobile"; - if(AJXP_Utils::userAgentIsIOS() && !isSet($_GET["skipIOS"]) && !isSet($_COOKIE["SKIP_IOS"]))\{ - $PLUGINS["ACTIVE_PLUGINS"][] = "gui.ios"; - \} -\} -