]> git.pld-linux.org Git - packages/php-AutoIndex.git/blame - php-AutoIndex-config.patch
- blocker for webapps migrate
[packages/php-AutoIndex.git] / php-AutoIndex-config.patch
CommitLineData
f516b1d7
ER
1--- ./index.php~ 2005-07-07 02:08:44.000000000 +0300
2+++ ./index.php 2005-09-10 17:30:46.000000000 +0300
3@@ -39,8 +39,9 @@
4 define('CONFIG_GENERATOR', 'config.php');
5
6 //paths for files that will be included
7-define('PATH_TO_CLASSES', './classes/');
8-define('PATH_TO_LANGUAGES', './languages/');
9+define('_APPDIR', dirname(__FILE__));
10+define('PATH_TO_CLASSES', _APPDIR . '/classes/');
11+define('PATH_TO_LANGUAGES', _APPDIR . '/languages/');
12 define('LANGUAGE_FILE_EXT', '.txt');
13
14 //filenames of template files
15--- ./hidden_files~ 2005-02-09 03:06:36.000000000 +0200
16+++ ./hidden_files 2005-09-10 17:32:34.000000000 +0300
17@@ -5,3 +5,5 @@
18 index_icons
19 languages
20 templates
21+*~
22+.*
23--- ./templates/default/global_header.tpl 2005-02-05 20:37:16.000000000 +0200
24+++ /tmp/global_header.tpl 2005-09-10 17:37:46.000000000 +0300
25@@ -3,8 +3,8 @@
26 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{config:language}">
27 <head>
28 <title>{words:index of} {info:dir}</title>
29- <link href="{config:template}default.css" rel="stylesheet" title="AutoIndex Default" type="text/css" />
30- <link href="{config:template}alternate.css" rel="alternate stylesheet" title="AutoIndex Alternate" type="text/css" />
31+ <link href="{config:template_path}default.css" rel="stylesheet" title="AutoIndex Default" type="text/css" />
32+ <link href="{config:template_path}alternate.css" rel="alternate stylesheet" title="AutoIndex Alternate" type="text/css" />
33 </head>
34
35 <body class="autoindex_body">
36--- ./templates/simple_image_gallery/global_header.tpl 2004-08-21 03:47:04.000000000 +0300
37+++ /tmp/global_header.tpl 2005-09-10 17:37:46.000000000 +0300
38@@ -3,7 +3,8 @@
39 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{config:language}">
40 <head>
41 <title>{words:index of} {info:dir}</title>
42- <link href="{config:template}default.css" rel="stylesheet" title="AutoIndex Default" type="text/css" />
43+ <link href="{config:template_path}default.css" rel="stylesheet" title="AutoIndex Default" type="text/css" />
44+ <link href="{config:template_path}alternate.css" rel="alternate stylesheet" title="AutoIndex Alternate" type="text/css" />
45 </head>
46
47 <body class="autoindex_body">
48--- ./config.php 2005-02-10 02:59:20.000000000 +0200
49+++ /tmp/config.php 2005-09-10 17:42:07.000000000 +0300
50@@ -200,14 +200,15 @@
51 //list of default settings
52 $settings = array(
53 'base_dir' => './',
54- 'icon_path' => 'index_icons/winxp/',
55+ 'icon_path' => '/AutoIndex/index_icons/winxp/',
56 'language' => 'en',
57- 'template' => './templates/default/',
58+ 'template' => '/usr/share/AutoIndex/templates/default/',
59+ 'template_path' => '/AutoIndex/templates/default/',
60 'log_file' => 'false',
61 'description_file' => 'false',
62 'user_list' => '.htpasswd.autoindex',
63 'download_count' => 'false',
64- 'hidden_files' => 'hidden_files',
65+ 'hidden_files' => '/etc/AutoIndex/hidden_files',
66 'banned_list' => 'false',
67 'show_dir_size' => 'true',
68 'use_login_system' => 'false',
69--- ./config.php 2005-09-10 17:42:41.000000000 +0300
70+++ /tmp/config.php 2005-09-10 17:45:54.000000000 +0300
71@@ -35,7 +35,7 @@
72 die();
73 }
74
75-$strings = array('base_dir', 'icon_path', 'language', 'template', 'log_file',
76+$strings = array('base_dir', 'icon_path', 'language', 'template', 'template_path', 'log_file',
77 'description_file', 'user_list', 'download_count', 'hidden_files',
78 'banned_list');
79 $checkboxes = array('show_dir_size', 'use_login_system', 'force_download',
80@@ -350,6 +350,14 @@
81
82 <p />
83 <table width="650" cellpadding="8"><tr><td>
84+Template Path: <input type="text" name="template_path" value="<?php if ($settings['template_path'] != 'false') echo $settings['template_path']; ?>" />
85+<p class="small">
86+ This is the path where the *.tpl template files are located (relative to the web page).
87+</p>
88+</td></tr></table>
89+
90+<p />
91+<table width="650" cellpadding="8"><tr><td>
92 <input type="checkbox" name="use_login_system" value="true"<?php if ($settings['use_login_system'] != 'false') echo ' checked="checked"'; ?> /> Enable Login System
93 <br /><input type="checkbox" name="must_login_to_download" value="true"<?php if ($settings['must_login_to_download'] != 'false') echo ' checked="checked"'; ?> /> Users must login to view/download
94 <br />User List: <input type="text" name="user_list" value="<?php if ($settings['user_list'] != 'false') echo $settings['user_list']; ?>" />
This page took 0.117992 seconds and 4 git commands to generate.