Multi Tiki using subdir
I've managed to get my install working now fine after a small glitch in the re-install. (1.9 latest stable build)
I am attempting to setup the AkiraMulti tiki (without using virtual hosts)
The code I'm using in the local.php is the one suggested.
The error I'm getting now is "Notice: Undefined variable: SCRIPT_URL in /var/www/tikimain/db/local.php on line 10" - in the sample code below it's actually line 7
Can anyone shed some light on how SCRIPT_URL is to be defined??
TIA
<?php
2 .
3 . $db_tiki = 'mysql';
4 . $dbversion_tiki = '1.9';
5 . $host_tiki = 'localhost';
6 .
7 . switch ( extractTopPath( $SCRIPT_URL ) ) {
8 . case '/':
9 . $user_tiki = 'tiki-test1';
10 . $pass_tiki = 'foobar1';
11 . $dbs_tiki = 'tiki-test1';
12 . $tikidomain = 'tiki-test1';
13 . break;
14 . case '/tiki-test2/':
15 . $user_tiki = 'tiki-test2';
16 . $pass_tiki = 'foobar2';
17 . $dbs_tiki = 'tiki-test2';
18 . $tikidomain = 'tiki-test2';
19 . break;
20 . default:
21 . exit();
22 . }
23 .
24 . function extractTopPath( $in ) {
25 . if ( ( $point = strpos( substr( $in, 1 ), "/" ) ) === false ) return ( $in . "/" );
26 . return substr( $in, 0, $point + 2 );
27 . }
28 .
29 . ?>