equal
deleted
inserted
replaced
1 <?php |
1 <?php |
2 |
2 |
3 /* |
3 /* |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
5 * Version 1.1.1 |
5 * Version 1.1.3 (Caoineag alpha 3) |
6 * Copyright (C) 2006-2007 Dan Fuhry |
6 * Copyright (C) 2006-2007 Dan Fuhry |
7 * |
7 * |
8 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
8 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
9 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
9 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
10 * |
10 * |
78 // We need to see if this is a specially marked Enano development server. You can create an Enano |
78 // We need to see if this is a specially marked Enano development server. You can create an Enano |
79 // development server by cloning the Mercurial repository into a directory named repo, and then |
79 // development server by cloning the Mercurial repository into a directory named repo, and then |
80 // using symlinks to reference the original files so as to segregate unique files from non-unique |
80 // using symlinks to reference the original files so as to segregate unique files from non-unique |
81 // and distribution-standard ones. Enano will pivot its root directory accordingly if the file |
81 // and distribution-standard ones. Enano will pivot its root directory accordingly if the file |
82 // .enanodev is found in the Enano root (not /repo/). |
82 // .enanodev is found in the Enano root (not /repo/). |
83 if ( strpos(__FILE__, '/repo/') && ( file_exists('.enanodev') || file_exists('../.enanodev') ) ) |
83 if ( strpos(__FILE__, '/repo/') && file_exists(dirname(__FILE__) . '/../../.enanodev') ) |
84 { |
84 { |
85 // We have a development directory. Remove /repo/ from the picture. |
85 // We have a development directory. Remove /repo/ from the picture. |
86 $filename = str_replace('/repo/', '/', __FILE__); |
86 $filename = str_replace('/repo/', '/', __FILE__); |
87 } |
87 } |
88 else |
88 else |