TightURL

TightURL Git Source Tree

Root/local/tighturl.config.inc.php

1<?php
2/**
3 * TightURL Local Configuration File
4 * Make all changes here, *not* in the TightURL script file.
5 *
6 * @package TightURL
7 * @author Ron Guerin <ron@vnetworx.net>
8 */
9
10/**
11 * MySQL variables
12 */
13$dbhost = "localhost";
14$dbuser = "dbuser";
15$dbpass = "dbpass";
16$dbname = "tighturl";
17$dbtable = "tighturl";
18
19/**
20 * Site
21 */
22$sitenames = array("example.com","www.example.com");
23
24/**
25 * Operating modes
26 */
27$FOFMethod = FALSE; //FALSE=Use full URL path or mod_rewrite, TRUE=Use 404 Method to compress URLs
28$antiabuse = TRUE; //0=do not run network checks or other anti-abuse measures on submitted URIs, 1=run tests
29                    //Must be set to something other than true to deactivate
30$netchecks = TRUE; //0=do not run network checks, 1=run network tests as part of anti-abuse system
31$mustexist = TRUE; //0=do not check URLs to see if they exist, 1=check URLs if netchecks are on.
32$BB2=TRUE; //0=do not use Bad Behavior, 1=Protect your site with Bad Behavior
33
34/**
35 * URIBL variables
36 */
37$uribl = array("multi.surbl.org", "black.uribl.com");
38$uriblurl = array("www.surbl.org", "www.uribl.com");
39
40/** Text strings and style variables
41 *
42 */
43$svcname = "URLSquisher";
44$verbtext = "Squish";
45$pasttext = "Squished";
46$tagline = "Squish long URLs to make short ones";
47$headcolor = "#006600";
48$tablecolor = "#00CC99";
49$copystart = date("Y");
50$copyrightholder = "SquishURL Enterprises";
51$complain = true;
52$validschemes = "(http|https|ftp|sftp)";
53$forbid = "\.(cmd|bat|exe|scr|pif|vbs|js|pif|msi|cdr)";
54
55// Validate IP addresses
56
57$validipv4pattern = ":\/\/(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\."
58 . "(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])"
59 . "\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\/*";
60
61// Reserved URLs
62$ReservedURL = array("x", "rest", "xmlrpc", "soap", "xml", "atom", "rss", "blog",
63                     "faq", "help", "about", "api", "code", "source", "docs",
64                     "cvs", "arch", "url", "admin", "setup", "svn", "project", "abuse", "exploited");
65?>
66

Archive Download this file

Branches