Load quickappoint-0.1+svn20051119 into debian/quickappoint/trunk.
[debian/quickappoint.git] / debian / patches / options.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## options.dpatch by  <gregor+debian@comodo.priv.at>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad quickappoint-0.1+svn20051119~/etc/options.php quickappoint-0.1+svn20051119/etc/options.php
9 --- quickappoint-0.1+svn20051119~/etc/options.php       2005-11-20 23:25:42.000000000 +0100
10 +++ quickappoint-0.1+svn20051119/etc/options.php        2005-11-20 23:27:20.000000000 +0100
11 @@ -1,32 +1,30 @@
12  <?php
13  
14 +/*
15 +CHANGE SETTINGS HERE:
16 +You may want to change at least the projecturl, the other
17 +settings have reasonable defaults.
18 +*/
19 +
20  // Server settings
21  $project_options = array(
22 -       'projecturl' => 'http://www.toastfreeware.priv.at/quickappoint/',
23 +       'projecturl' => 'http://localhost/quickappoint/',
24         'locale' => '' // use empty string for system default or something like 'de_AT@euro'
25  );
26  
27  
28  // Database settings
29  $db_options = array(
30 -       'host' => 'colleen.colgarra.priv.at',
31 +       'host' => 'localhost',
32         'db' => 'quickappoint',
33         'user' => 'quickappoint',
34         'pass' => 'quickappoint'
35  );
36  
37 +/*
38 +DON'T CHANGE ANYTHING HERE.
39 +*/
40  
41 -// -------------
42 -// Local options for testing and developing on local machines below:
43 -
44 -$local = !ereg('toastfreeware', $_SERVER['HTTP_HOST']);
45 -
46 -if ($local) {
47 -       $project_options['projecturl'] = 'http://localhost/~philipp/quickappoint/';
48 -}
49 -
50 -
51 -// -------------
52  // Further options (derived)
53  // Pages where the user doesn't require a login
54  $unrestricted_pages = array(
55 diff -urNad quickappoint-0.1+svn20051119~/lib/prepend.php quickappoint-0.1+svn20051119/lib/prepend.php
56 --- quickappoint-0.1+svn20051119~/lib/prepend.php       2005-11-20 23:25:42.000000000 +0100
57 +++ quickappoint-0.1+svn20051119/lib/prepend.php        2005-11-20 23:25:43.000000000 +0100
58 @@ -3,7 +3,7 @@
59  
60  error_reporting(E_ALL);
61  session_start();
62 -require_once(dirname(__FILE__) . '/../etc/options.php');
63 +require_once('/etc/quickappoint/options.php');
64  
65  
66  // check server settings: magic quotes gpc