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