/[smecontribs]/rpms/smeserver-moodle/contribs7/smeserver-moodle-1.0-removeConfig.patch
ViewVC logotype

Annotation of /rpms/smeserver-moodle/contribs7/smeserver-moodle-1.0-removeConfig.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:26 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

1 dungog 1.1 diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/10config-dist smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/10config-dist
2     --- smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/10config-dist 2008-09-16 21:33:00.000000000 +1000
3     +++ smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/10config-dist 1970-01-01 10:00:00.000000000 +1000
4     @@ -1,303 +0,0 @@
5     -////////////////////////////////////////////////////////////////////////////
6     -// //
7     -// Moodle configuration file //
8     -// //
9     -// This file should be renamed "config.php" in the top-level directory //
10     -// //
11     -///////////////////////////////////////////////////////////////////////////
12     -// //
13     -// NOTICE OF COPYRIGHT //
14     -// //
15     -// Moodle - Modular Object-Oriented Dynamic Learning Environment //
16     -// http://moodle.org //
17     -// //
18     -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
19     -// //
20     -// This program is free software; you can redistribute it and/or modify //
21     -// it under the terms of the GNU General Public License as published by //
22     -// the Free Software Foundation; either version 2 of the License, or //
23     -// (at your option) any later version. //
24     -// //
25     -// This program is distributed in the hope that it will be useful, //
26     -// but WITHOUT ANY WARRANTY; without even the implied warranty of //
27     -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
28     -// GNU General Public License for more details: //
29     -// //
30     -// http://www.gnu.org/copyleft/gpl.html //
31     -// //
32     -///////////////////////////////////////////////////////////////////////////
33     -unset($CFG); // Ignore this line
34     -
35     -//=========================================================================
36     -// 1. DATABASE SETUP
37     -//=========================================================================
38     -// First, you need to configure the database where all Moodle data //
39     -// will be stored. This database must already have been created //
40     -// and a username/password created to access it. //
41     -// //
42     -// mysql - the prefix is optional, but useful when installing //
43     -// into databases that already contain tables. //
44     -//
45     -// postgres7 - the prefix is REQUIRED, regardless of whether the //
46     -// database already contains tables. //
47     -// //
48     -// A special case exists when using PostgreSQL databases via sockets. //
49     -// Define dbhost as follows, leaving dbname, dbuser, dbpass BLANK!: //
50     -// $CFG->dbhost = " user='muser' password='mpass' dbname='mdata'"; //
51     -//
52     -
53     -$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)
54     -$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
55     -$CFG->dbname = 'moodle'; // database name, eg moodle
56     -$CFG->dbuser = 'username'; // your database username
57     -$CFG->dbpass = 'password'; // your database password
58     -$CFG->prefix = 'mdl_'; // Prefix to use for all table names
59     -
60     -$CFG->dbpersist = false; // Should database connections be reused?
61     - // "false" is the most stable setting
62     - // "true" can improve performance sometimes
63     -
64     -
65     -//=========================================================================
66     -// 2. WEB SITE LOCATION
67     -//=========================================================================
68     -// Now you need to tell Moodle where it is located. Specify the full
69     -// web address to where moodle has been installed. If your web site
70     -// is accessible via multiple URLs then choose the most natural one
71     -// that your students would use. Do not include a trailing slash
72     -
73     -$CFG->wwwroot = 'http://example.com/moodle';
74     -
75     -
76     -//=========================================================================
77     -// 3. SERVER FILES LOCATION
78     -//=========================================================================
79     -// Next, specify the full OS directory path to this same location
80     -// Make sure the upper/lower case is correct. Some examples:
81     -//
82     -// $CFG->dirroot = 'c:\program files\easyphp\www\moodle'; // Windows
83     -// $CFG->dirroot = '/var/www/html/moodle'; // Redhat Linux
84     -// $CFG->dirroot = '/home/example/public_html/moodle'; // Cpanel host
85     -
86     -$CFG->dirroot = '/home/example/public_html/moodle';
87     -
88     -
89     -//=========================================================================
90     -// 4. DATA FILES LOCATION
91     -//=========================================================================
92     -// Now you need a place where Moodle can save uploaded files. This
93     -// directory should be readable AND WRITEABLE by the web server user
94     -// (usually 'nobody' or 'apache'), but it should not be accessible
95     -// directly via the web.
96     -//
97     -// - On hosting systems you might need to make sure that your "group" has
98     -// no permissions at all, but that "others" have full permissions.
99     -//
100     -// - On Windows systems you might specify something like 'c:\moodledata'
101     -
102     -$CFG->dataroot = '/home/example/moodledata';
103     -
104     -
105     -//=========================================================================
106     -// 5. DATA FILES PERMISSIONS
107     -//=========================================================================
108     -// The following parameter sets the permissions of new directories
109     -// created by Moodle within the data directory. The format is in
110     -// octal format (as used by the Unix utility chmod, for example).
111     -// The default is usually OK, but you may want to change it to 0750
112     -// if you are concerned about world-access to the files (you will need
113     -// to make sure the web server process (eg Apache) can access the files.
114     -// NOTE: the prefixed 0 is important, and don't use quotes.
115     -
116     -$CFG->directorypermissions = 02777;
117     -
118     -
119     -//=========================================================================
120     -// 6. DIRECTORY LOCATION (most people can just ignore this setting)
121     -//=========================================================================
122     -// A very few webhosts use /admin as a special URL for you to access a
123     -// control panel or something. Unfortunately this conflicts with the
124     -// standard location for the Moodle admin pages. You can fix this by
125     -// renaming the admin directory in your installation, and putting that
126     -// new name here. eg "moodleadmin". This will fix admin links in Moodle.
127     -
128     -$CFG->admin = 'admin';
129     -
130     -
131     -//=========================================================================
132     -// 7. OTHER MISCELLANEOUS SETTINGS (ignore these for new installations)
133     -//=========================================================================
134     -//
135     -// These are additional tweaks for which no GUI exists in Moodle yet.
136     -//
137     -//
138     -// Prevent scheduled backups from operating (and hide the GUI for them)
139     -// Useful for webhost operators who have alternate methods of backups
140     -// $CFG->disablescheduledbackups = true;
141     -//
142     -// Prevent stats processing and hide the GUI
143     -// $CFG->disablestatsprocessing = true;
144     -//
145     -// Setting this to true will enable admins to edit any post at any time
146     -// $CFG->admineditalways = true;
147     -//
148     -// These variables define DEFAULT block variables for new courses
149     -// If this one is set it overrides all others and is the only one used.
150     -// $CFG->defaultblocks_override = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
151     -//
152     -// These variables define the specific settings for defined course formats.
153     -// They override any settings defined in the formats own config file.
154     -// $CFG->defaultblocks_site = 'site_main_menu,admin,course_list:course_summary,calendar_month';
155     -// $CFG->defaultblocks_social = 'participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,admin,course_list';
156     -// $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
157     -// $CFG->defaultblocks_weeks = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
158     -//
159     -// These blocks are used when no other default setting is found.
160     -// $CFG->defaultblocks = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
161     -//
162     -//
163     -// Allow unicode characters in uploaded files, generated reports, etc.
164     -// This setting is new and not much tested, there are known problems
165     -// with backup/restore that will not be solved, because native infozip
166     -// binaries are doing some weird conversions - use internal PHP zipping instead.
167     -// NOT RECOMMENDED FOR PRODUCTION SITES
168     -// $CFG->unicodecleanfilename = true;
169     -//
170     -// Seconds for files to remain in caches. Decrease this if you are worried
171     -// about students being served outdated versions of uploaded files.
172     -// $CFG->filelifetime = 86400;
173     -//
174     -// This setting will prevent the 'My Courses' page being displayed when a student
175     -// logs in. The site front page will always show the same (logged-out) view.
176     -// $CFG->disablemycourses = true;
177     -//
178     -// If this setting is set to true, then Moodle will track the IP of the
179     -// current user to make sure it hasn't changed during a session. This
180     -// will prevent the possibility of sessions being hijacked via XSS, but it
181     -// may break things for users coming using proxies that change all the time,
182     -// like AOL.
183     -// $CFG->tracksessionip = true;
184     -//
185     -//
186     -// The following lines are for handling email bounces.
187     -// $CFG->handlebounces = true;
188     -// $CFG->minbounces = 10;
189     -// $CFG->bounceratio = .20;
190     -// The next lines are needed both for bounce handling and any other email to module processing.
191     -// mailprefix must be EXACTLY four characters.
192     -// Uncomment and customise this block for Postfix
193     -// $CFG->mailprefix = 'mdl+'; // + is the separator for Exim and Postfix.
194     -// $CFG->mailprefix = 'mdl-'; // - is the separator for qmail
195     -// $CFG->maildomain = 'youremaildomain.com';
196     -//
197     -// The following setting will tell Moodle to respect your PHP session
198     -// settings. Use this if you want to control session configuration
199     -// from php.ini, httpd.conf or .htaccess files.
200     -// $CFG->respectsessionsettings = true;
201     -//
202     -// This setting will cause the userdate() function not to fix %d in
203     -// date strings, and just let them show with a zero prefix.
204     -// $CFG->nofixday = true;
205     -//
206     -// This setting will make some graphs (eg user logs) use lines instead of bars
207     -// $CFG->preferlinegraphs = true;
208     -//
209     -// Enabling this will allow custom scripts to replace existing moodle scripts.
210     -// For example: if $CFG->customscripts/course/view.php exists then
211     -// it will be used instead of $CFG->wwwroot/course/view.php
212     -// At present this will only work for files that include config.php and are called
213     -// as part of the url (index.php is implied).
214     -// Some examples are:
215     -// http://my.moodle.site/course/view.php
216     -// http://my.moodle.site/index.php
217     -// http://my.moodle.site/admin (index.php implied)
218     -// Custom scripts should not include config.php
219     -// Warning: Replacing standard moodle scripts may pose security risks and/or may not
220     -// be compatible with upgrades. Use this option only if you are aware of the risks
221     -// involved.
222     -// Specify the full directory path to the custom scripts
223     -// $CFG->customscripts = '/home/example/customscripts';
224     -//
225     -// Performance profiling
226     -//
227     -// If you set Debug to "Yes" in the Configuration->Variables page some
228     -// performance profiling data will show up on your footer (in default theme).
229     -// With these settings you get more granular control over the capture
230     -// and printout of the data
231     -//
232     -// Capture performance profiling data
233     -// define('MDL_PERF' , true);
234     -//
235     -// Capture additional data from DB
236     -// define('MDL_PERFDB' , true);
237     -//
238     -// Print to log (for passive profiling of production servers)
239     -// define('MDL_PERFTOLOG' , true);
240     -//
241     -// Print to footer (works with the default theme)
242     -// define('MDL_PERFTOFOOT', true);
243     -//
244     -// Force displayed usernames
245     -// A little hack to anonymise user names for all students. If you set these
246     -// then all non-teachers will always see these for every person.
247     -// $CFG->forcefirstname = 'Bruce';
248     -// $CFG->forcelastname = 'Simpson';
249     -//
250     -// The following setting will turn SQL Error logging on. This will output an
251     -// entry in apache error log indicating the position of the error and the statement
252     -// called. This option will action disregarding error_reporting setting.
253     -// $CFG->dblogerror = true;
254     -//
255     -// The following setting will log every database query to a table called adodb_logsql.
256     -// Use this setting on a development server only, the table grows quickly!
257     -// $CFG->logsql = true;
258     -//
259     -// The following setting will turn on username logging into Apache log. For full details regarding setting
260     -// up of this function please refer to the install section of the document.
261     -// $CFG->apacheloguser = 0; // Turn this feature off. Default value.
262     -// $CFG->apacheloguser = 1; // Log user id.
263     -// $CFG->apacheloguser = 2; // Log full name in cleaned format. ie, Darth Vader will be displayed as darth_vader.
264     -// $CFG->apacheloguser = 3; // Log username.
265     -// To get the values logged in Apache's log, add to your httpd.conf
266     -// the following statements. In the General part put:
267     -// LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %s %b \"%{Referer}i\" \"%{UserREPLACEwithDASHAgent}i\"" moodleformat
268     -// And in the part specific to your Moodle install / virtualhost:
269     -// CustomLog "/your/path/to/log" moodleformat
270     -// CAUTION: Use of this option will expose usernames in the Apache log,
271     -// If you are going to publish your log, or the output of your web stats analyzer
272     -// this will weaken the security of your website.
273     -//
274     -// Email database connection errors to someone. If Moodle cannot connect to the
275     -// database, then email this address with a notice.
276     -//
277     -// $CFG->emailconnectionerrorsto = 'your@emailaddress.com';
278     -//
279     -// NOTE: if you are using custompix in your theme, see /fixpix.php.
280     -//
281     -// special magic evil developer only wanting to edit the xmldb files manually
282     -// AND don't use the XMLDBEditor nor the prev/next stuff at all (Mahara and others)
283     -// Uncomment these if you're lazy like Penny
284     -// $CFG->xmldbdisablecommentchecking = true;
285     -// $CFG->xmldbdisablenextprevchecking = true;
286     -//
287     -// special magig evil developer only wanting to edit xmldb files manually
288     -// AND allowing the XMLDBEditor to recostruct the prev/next elements every
289     -// time one file is loaded and saved (Moodle).
290     -// Uncomment this if you're lazy like Petr
291     -// $CFG->xmldbreconstructprevnext = true;
292     -//
293     -// Set the priority of themes from highest to lowest. This is useful (for
294     -// example) in sites where the user theme should override all other theme
295     -// settings for accessibility reasons. You can also disable types of themes
296     -// by removing them from the array. The default setting is:
297     -// $CFG->themeorder = array('page', 'course', 'category', 'session', 'user', 'site');
298     -// NOTE: course, category, session, user themes still require the
299     -// respective settings to be enabled
300     -//
301     -// When working with production data on test servers, no emails should ever be send to real users
302     -// $CFG->noemailever = true;
303     -//
304     -//
305     -//=========================================================================
306     -// ALL DONE! To continue installation, visit your main page with a browser
307     -//=========================================================================
308     diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/20db smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db
309     --- smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/20db 2008-09-16 21:33:00.000000000 +1000
310     +++ smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db 1970-01-01 10:00:00.000000000 +1000
311     @@ -1,14 +0,0 @@
312     -
313     -// SME Server Settings
314     -{
315     - my $wwwroot = "http://$DomainName/moodle";
316     - if ($moodle{domain})
317     - { $wwwroot = "http://$moodle{domain}"; }
318     -
319     - $OUT .= "\$CFG->dbname = \'$moodle{DbName}\'\; \n";
320     - $OUT .= "\$CFG->dbuser = \'$moodle{DbUser}\'\; \n";
321     - $OUT .= "\$CFG->dbpass = \'$moodle{DbPassword}\'\; \n";
322     - $OUT .= "\$CFG->wwwroot = \'$wwwroot\'\; \n";
323     - $OUT .= "\$CFG->dirroot = \'/opt/moodle/html'\; \n";
324     - $OUT .= "\$CFG->dataroot = \'/opt/moodle/moodledata\'\; \n";
325     -}
326     diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/30config-dist smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/30config-dist
327     --- smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/30config-dist 2007-07-07 00:27:04.000000000 +1000
328     +++ smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/30config-dist 1970-01-01 10:00:00.000000000 +1000
329     @@ -1,3 +0,0 @@
330     -{
331     - $OUT .= "include_once(\"\$CFG->dirroot/lib/setup.php\"\)\; \n";
332     -}
333     diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/template-begin smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/template-begin
334     --- smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/template-begin 2003-03-18 07:00:58.000000000 +1100
335     +++ smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/template-begin 1970-01-01 10:00:00.000000000 +1000
336     @@ -1,14 +0,0 @@
337     -{
338     - $OUT = <<HERE;
339     -<?php
340     -/*
341     -HERE
342     -
343     - $OUT .=
344     - Text::Template::_load_text("/etc/e-smith/templates-default/template-begin");
345     -
346     - $OUT .= <<HERE;
347     -*/
348     -HERE
349     -
350     -}
351     diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/template-end smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/template-end
352     --- smeserver-moodle-1.0.old/root/etc/e-smith/templates/opt/moodle/html/config.php/template-end 2003-03-18 07:16:08.000000000 +1100
353     +++ smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/template-end 1970-01-01 10:00:00.000000000 +1000
354     @@ -1 +0,0 @@
355     -?>

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed