root/tags/1.0/phptagengine.config.inc.php

Revision 20 (checked in by svn, 2 years ago)

creating 1.0 and stable tags

Line 
1 <?php
2
3 // Copyright (c) 2006-2007 Alex King. All rights reserved.
4 // http://alexking.org/projects/php-tag-engine
5 //
6 // Released under the LGPL license
7 // http://www.opensource.org/licenses/lgpl-license.php
8 //
9 // **********************************************************************
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 // **********************************************************************
14
15 /**
16  * The PHP Tag Engine configuration settings
17  *
18  * @package phptagengine
19  */
20
21 if (__FILE__ == basename($_SERVER['SCRIPT_NAME'])) { die(); }
22
23 // -- instantiate PHP Tag Engine
24
25 $pte = new phptagengine;
26
27 if (!isset($pte_js) || !$pte_js) { // no database needed for JS
28
29 // -- database info
30         $pte->db = $db; // where $db is your ADOdb instance
31         $pte->table_tags = $table_prefix.'tags';
32         $pte->table_tag_names = $table_prefix.'tag_names';
33         $pte->table_users = $table_prefix.'users';
34         $pte->table_users_name = 'name';
35
36 }
37
38 // -- misc
39
40 $pte->base_url = 'phptagengine/';
41 $pte->ajax_handler = 'u_rail.php';
42 $pte->tag_browse_url = 'index.php?screen=tags&tag=<tag>&type=<type>';
43
44 // -- default values (optional)
45
46 $pte->default_type = '';
47 $pte->default_user = '';
48
49 // -- language file
50
51 require('languages/english.inc.php');
52
53 // -- buttons
54
55 $pte->edit_button_display = 'text';
56 $pte->edit_button_image_url = 'images/icon_edit_tag_small.gif';
57
58 $pte->show_remove_links = false;
59 $pte->delete_button_display = 'text';
60 $pte->delete_button_image_url = 'images/icon_delete_tag.gif';
61
62 // -- Yahoo! Auto-Complete
63
64 $pte->yac = true;
65
66 ?>
Note: See TracBrowser for help on using the browser.