From c55dbbc995e152af3f2c88662101b0643d2e171a Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 22:38:14 +0000 Subject: Removed file/folder git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/admin/include/functions_upgrade.php | 98 --------------------------------- 1 file changed, 98 deletions(-) delete mode 100644 BSF/admin/include/functions_upgrade.php (limited to 'BSF/admin/include/functions_upgrade.php') diff --git a/BSF/admin/include/functions_upgrade.php b/BSF/admin/include/functions_upgrade.php deleted file mode 100644 index 7e9a93aef..000000000 --- a/BSF/admin/include/functions_upgrade.php +++ /dev/null @@ -1,98 +0,0 @@ - -define(\'PHPWG_IN_UPGRADE\', true); - -if you want to upgrade'; - die($message); - } -} - -// concerning upgrade, we use the default tables -function prepare_conf_upgrade() -{ - global $prefixeTable; - - // $conf is not used for users tables - // define cannot be re-defined - define('CATEGORIES_TABLE', $prefixeTable.'categories'); - define('COMMENTS_TABLE', $prefixeTable.'comments'); - define('CONFIG_TABLE', $prefixeTable.'config'); - define('FAVORITES_TABLE', $prefixeTable.'favorites'); - define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access'); - define('GROUPS_TABLE', $prefixeTable.'groups'); - define('HISTORY_TABLE', $prefixeTable.'history'); - define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary'); - define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category'); - define('IMAGES_TABLE', $prefixeTable.'images'); - define('SESSIONS_TABLE', $prefixeTable.'sessions'); - define('SITES_TABLE', $prefixeTable.'sites'); - define('USER_ACCESS_TABLE', $prefixeTable.'user_access'); - define('USER_GROUP_TABLE', $prefixeTable.'user_group'); - define('USERS_TABLE', $prefixeTable.'users'); - define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); - define('USER_FEED_TABLE', $prefixeTable.'user_feed'); - define('WAITING_TABLE', $prefixeTable.'waiting'); - define('RATE_TABLE', $prefixeTable.'rate'); - define('USER_CACHE_TABLE', $prefixeTable.'user_cache'); - define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories'); - define('CADDIE_TABLE', $prefixeTable.'caddie'); - define('UPGRADE_TABLE', $prefixeTable.'upgrade'); - define('SEARCH_TABLE', $prefixeTable.'search'); - define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification'); - define('TAGS_TABLE', $prefixeTable.'tags'); - define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag'); - define('PLUGINS_TABLE', $prefixeTable.'plugins'); - define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access'); - define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); -} - -// Create empty local files to avoid log errors -function create_empty_local_files() -{ - $files = - array ( - PHPWG_ROOT_PATH . 'template-common/local-layout.css', - PHPWG_ROOT_PATH . 'template/yoga/local-layout.css' - ); - - foreach ($files as $path) - { - if (!file_exists ($path)) - { - $file = @fopen($path, "w"); - @fwrite($file , '/* You can modify this file */'); - @fclose($file); - } - } -} - -?> -- cgit v1.2.3