OSDN Git Service

fix createBlogLink
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / extra / fancyurls / fancyurls.config.php
1 <?php
2         /*
3                 About
4                 -----
5                 
6                 This directory contains extra files to make the 'fancy urls' feature even more
7                 fancier, by eliminating the 'index.php'-part of the URL
8         
9                 Installation
10                 ------------
11                 
12                 1. Copy all files in this directory (except for index.html) to your main nucleus dir
13                    (where your index.php and action.php file are)
14                    
15                    If you have an already existing .htaccess file (most ftp-programs don't show hidden files
16                    by default, so don't start uploading it without checking your server). If you do, download
17                    that old one first, and copy the contents of the new .htaccess file (from the fancyurls
18                    folder) in your old one, and upload that... 
19
20                 2. Edit fancyurls.config.php so that $CONF['Self'] points to your main directory. 
21                         NOTE: this time, and only this time, the URL should NOT end in a slash
22
23                 3. Edit index.php to look like this: 
24                    
25                         $CONF = array();
26
27                         include('./fancyurls.config.php'); 
28                         include('./config.php');
29
30                         selector();
31                         
32                 4. Enable 'Fancy URLs' in the Nucleus admin area (nucleus management / edit settings)
33
34                 5. Off you go!
35                 
36                 If it doesn't work:
37                 -------------------
38                 
39                 Remove the files again (don't forget the hidden file .htaccess). Voila.
40                 
41         */
42
43         
44         // remember: this URL should _NOT_ end with a slash. 
45         $CONF['Self'] = 'http://www.yourhost.com/yourpath';
46
47     /*
48         Advanced: keywords to use in fancy URLs. 
49         
50         If you want to change these, you'll also need to rename the stub files 
51         and update the contents of the .htaccess file accordingly
52     */
53     $CONF['ItemKey']        = 'item';
54     $CONF['ArchiveKey']     = 'archive';
55     $CONF['ArchivesKey']    = 'archives';
56     $CONF['MemberKey']      = 'member';
57     $CONF['BlogKey']        = 'blog';
58     $CONF['CategoryKey']    = 'category';
59     $CONF['SpecialskinKey'] = 'special';
60 ?>