Issues (2756)

user/config-sample.php (26 issues)

1
<?php
2
/* This is a sample config file.
0 ignored issues
show
Block comment text must start on a new line
Loading history...
3
 * Edit this file with your own settings and save it as "config.php"
4
 *
5
 * IMPORTANT: edit and save this file as plain ASCII text, using a text editor, for instance TextEdit on Mac OS or
0 ignored issues
show
This line exceeds maximum limit of 100 characters; contains 114 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
6
 * Notepad on Windows. Make sure there is no character before the opening <?php at the beginning of this file.
0 ignored issues
show
This line exceeds maximum limit of 100 characters; contains 110 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
7
 */
8
9
/*
10
 ** MySQL settings - You can get this info from your web host
11
 */
12
13
/** MySQL database username */
14
define( 'YOURLS_DB_USER', 'your db user name' );
15
16
/** MySQL database password */
0 ignored issues
show
Block comments must be started with /*
Loading history...
17
define( 'YOURLS_DB_PASS', 'your db password' );
18
19
/** The name of the database for YOURLS
0 ignored issues
show
Block comments must be started with /*
Loading history...
20
 ** Use lower case letters [a-z], digits [0-9] and underscores [_] only */
21
define( 'YOURLS_DB_NAME', 'yourls' );
22
23
/** MySQL hostname.
0 ignored issues
show
Block comments must be started with /*
Loading history...
24
 ** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */
0 ignored issues
show
This line exceeds maximum limit of 100 characters; contains 109 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
25
define( 'YOURLS_DB_HOST', 'localhost' );
26
27
/** MySQL tables prefix
0 ignored issues
show
Block comments must be started with /*
Loading history...
28
 ** YOURLS will create tables using this prefix (eg `yourls_url`, `yourls_options`, ...)
29
 ** Use lower case letters [a-z], digits [0-9] and underscores [_] only */
30
define( 'YOURLS_DB_PREFIX', 'yourls_' );
31
32
/*
33
 ** Site options
34
 */
35
36
/** YOURLS installation URL
0 ignored issues
show
Block comments must be started with /*
Loading history...
37
 ** All lowercase, no trailing slash at the end.
38
 ** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa)
0 ignored issues
show
This line exceeds maximum limit of 100 characters; contains 103 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
39
 ** To use an IDN domain (eg http://héhé.com), write its ascii form here (eg http://xn--hh-bjab.com) */
0 ignored issues
show
This line exceeds maximum limit of 100 characters; contains 103 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
40
define( 'YOURLS_SITE', 'http://your-own-domain-here.com' );
41
42
/** YOURLS language
0 ignored issues
show
Block comments must be started with /*
Loading history...
43
 ** Change this setting to use a translation file for your language, instead of the default English.
44
 ** That translation file (a .mo file) must be installed in the user/language directory.
45
 ** See http://yourls.org/translations for more information */
46
define( 'YOURLS_LANG', '' );
47
48
/** Allow multiple short URLs for a same long URL
0 ignored issues
show
Block comments must be started with /*
Loading history...
49
 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
50
 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
51
define( 'YOURLS_UNIQUE_URLS', true );
52
53
/** Private means the Admin area will be protected with login/pass as defined below.
0 ignored issues
show
Block comments must be started with /*
Loading history...
54
 ** Set to false for public usage (eg on a restricted intranet or for test setups)
55
 ** Read http://yourls.org/privatepublic for more details if you're unsure */
56
define( 'YOURLS_PRIVATE', true );
57
58
/** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated
0 ignored issues
show
Block comments must be started with /*
Loading history...
This line exceeds maximum limit of 100 characters; contains 109 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
59
 ** Hint: copy from http://yourls.org/cookie */
60
define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
61
62
/** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
0 ignored issues
show
Block comments must be started with /*
Loading history...
This line exceeds maximum limit of 100 characters; contains 113 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
63
 ** YOURLS will auto encrypt plain text passwords in this file
64
 ** Read http://yourls.org/userpassword for more information */
65
$yourls_user_passwords = array(
0 ignored issues
show
Multi-line array contains a single value; use single-line array instead
Loading history...
66
	'username' => 'password',
67
	// 'username2' => 'password2',
68
	// You can have one or more 'login'=>'password' lines
69
	);
0 ignored issues
show
The closing parenthesis does not seem to be aligned correctly; expected 25 space(s), but found 1.
Loading history...
70
71
/** URL shortening method: 36 or 62
0 ignored issues
show
Block comments must be started with /*
Loading history...
72
 ** 36: generates all lowercase keywords (ie: 13jkm)
73
 ** 62: generates mixed case keywords (ie: 13jKm or 13JKm) */
74
define( 'YOURLS_URL_CONVERT', 36 );
75
76
/** Debug mode to output some internal information
0 ignored issues
show
Block comments must be started with /*
Loading history...
77
 ** Default is false for live site. Enable when coding or before submitting a new issue */
78
define( 'YOURLS_DEBUG', false );
79
80
/**
0 ignored issues
show
Block comments must be started with /*
Loading history...
81
* Reserved keywords (so that generated URLs won't match them)
82
* Define here negative, unwanted or potentially misleading keywords.
83
*/
84
$yourls_reserved_URL = array(
85
	'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick',
0 ignored issues
show
This array value does not seem to be aligned correcty; expected 24 spaces, but found 1.
Loading history...
Each value in a multi-line array must be on a new line
Loading history...
86
);
0 ignored issues
show
The closing parenthesis does not seem to be aligned correctly; expected 23 space(s), but found 0.
Loading history...
87
88
/*
89
 ** Personal settings would go after here.
90
 */
91