Initial commit

ZnoteX / Commit #5

Commit Initial commit

Alex Alex committed 01/10/2026 09:20 main Full upload
481 files +128,311 -0
A composer.json +28-0 View file
@@ -0,0 +1,28 @@
1+{
2+ "name": "open-games-community/znotex",
3+ "description": "ZnoteX - a complete website for your Open Tibia server.",
4+ "type": "project",
5+ "license": "MIT",
6+ "homepage": "https://github.com/Open-Games-Community/ZnoteX",
7+ "require": {
8+ "php": ">=8.1",
9+ "phpmailer/phpmailer": "^7.1"
10+ },
11+ "autoload": {
12+ "classmap": [
13+ "engine/function/"
14+ ]
15+ },
16+ "config": {
17+ "optimize-autoloader": true,
18+ "sort-packages": true
19+ },
20+ "require-dev": {
21+ "phpstan/phpstan": "^2.2",
22+ "phpunit/phpunit": "^10.5"
23+ },
24+ "scripts": {
25+ "test": "phpunit",
26+ "stan": "phpstan analyse"
27+ }
28+}
A composer.phar +0-0 View file
Binary file not shown.
A config.countries.php +249-0 View file
@@ -0,0 +1,249 @@
1+<?php
2+/**
3+ * List of countries, following ISO 3166 standard.
4+ *
5+ */
6+
7+$config['countries'] = array
8+(
9+ 'af' => 'Afghanistan',
10+ 'al' => 'Albania',
11+ 'dz' => 'Algeria',
12+ 'as' => 'American Samoa',
13+ 'ad' => 'Andorra',
14+ 'ao' => 'Angola',
15+ 'ai' => 'Anguilla',
16+ 'aq' => 'Antarctica',
17+ 'ag' => 'Antigua and Barbuda',
18+ 'ar' => 'Argentina',
19+ 'am' => 'Armenia',
20+ 'aw' => 'Aruba',
21+ 'au' => 'Australia',
22+ 'at' => 'Austria',
23+ 'az' => 'Azerbaijan',
24+ 'bs' => 'Bahamas',
25+ 'bh' => 'Bahrain',
26+ 'bd' => 'Bangladesh',
27+ 'bb' => 'Barbados',
28+ 'by' => 'Belarus',
29+ 'be' => 'Belgium',
30+ 'bz' => 'Belize',
31+ 'bj' => 'Benin',
32+ 'bm' => 'Bermuda',
33+ 'bt' => 'Bhutan',
34+ 'bo' => 'Bolivia',
35+ 'ba' => 'Bosnia and Herzegovina',
36+ 'bw' => 'Botswana',
37+ 'bv' => 'Bouvet Island',
38+ 'br' => 'Brazil',
39+ 'io' => 'British Indian Ocean Territory',
40+ 'bn' => 'Brunei Darussalam',
41+ 'bg' => 'Bulgaria',
42+ 'bf' => 'Burkina Faso',
43+ 'bi' => 'Burundi',
44+ 'kh' => 'Cambodia',
45+ 'cm' => 'Cameroon',
46+ 'ca' => 'Canada',
47+ 'cv' => 'Cape Verde',
48+ 'ky' => 'Cayman Islands',
49+ 'cf' => 'Central African Republic',
50+ 'td' => 'Chad',
51+ 'cl' => 'Chile',
52+ 'cn' => 'China',
53+ 'cx' => 'Christmas Island',
54+ 'cc' => 'Cocos (Keeling) Islands',
55+ 'co' => 'Colombia',
56+ 'km' => 'Comoros',
57+ 'cg' => 'Congo',
58+ 'cd' => 'Congo, the Democratic Republic of the',
59+ 'ck' => 'Cook Islands',
60+ 'cr' => 'Costa Rica',
61+ 'ci' => 'Cote D\'Ivoire',
62+ 'hr' => 'Croatia',
63+ 'cu' => 'Cuba',
64+ 'cy' => 'Cyprus',
65+ 'cz' => 'Czech Republic',
66+ 'dk' => 'Denmark',
67+ 'dj' => 'Djibouti',
68+ 'dm' => 'Dominica',
69+ 'do' => 'Dominican Republic',
70+ 'ec' => 'Ecuador',
71+ 'eg' => 'Egypt',
72+ 'sv' => 'El Salvador',
73+ 'gq' => 'Equatorial Guinea',
74+ 'er' => 'Eritrea',
75+ 'ee' => 'Estonia',
76+ 'et' => 'Ethiopia',
77+ 'fk' => 'Falkland Islands (Malvinas)',
78+ 'fo' => 'Faroe Islands',
79+ 'fj' => 'Fiji',
80+ 'fi' => 'Finland',
81+ 'fr' => 'France',
82+ 'gf' => 'French Guiana',
83+ 'pf' => 'French Polynesia',
84+ 'tf' => 'French Southern Territories',
85+ 'ga' => 'Gabon',
86+ 'gm' => 'Gambia',
87+ 'ge' => 'Georgia',
88+ 'de' => 'Germany',
89+ 'gh' => 'Ghana',
90+ 'gi' => 'Gibraltar',
91+ 'gr' => 'Greece',
92+ 'gl' => 'Greenland',
93+ 'gd' => 'Grenada',
94+ 'gp' => 'Guadeloupe',
95+ 'gu' => 'Guam',
96+ 'gt' => 'Guatemala',
97+ 'gn' => 'Guinea',
98+ 'gw' => 'Guinea-Bissau',
99+ 'gy' => 'Guyana',
100+ 'ht' => 'Haiti',
101+ 'hm' => 'Heard Island and Mcdonald Islands',
102+ 'va' => 'Holy See (Vatican City State)',
103+ 'hn' => 'Honduras',
104+ 'hk' => 'Hong Kong',
105+ 'hu' => 'Hungary',
106+ 'is' => 'Iceland',
107+ 'in' => 'India',
108+ 'id' => 'Indonesia',
109+ 'ir' => 'Iran, Islamic Republic of',
110+ 'iq' => 'Iraq',
111+ 'ie' => 'Ireland',
112+ 'il' => 'Israel',
113+ 'it' => 'Italy',
114+ 'jm' => 'Jamaica',
115+ 'jp' => 'Japan',
116+ 'jo' => 'Jordan',
117+ 'kz' => 'Kazakhstan',
118+ 'ke' => 'Kenya',
119+ 'ki' => 'Kiribati',
120+ 'kp' => 'Korea, Democratic People\'s Republic of',
121+ 'kr' => 'Korea, Republic of',
122+ 'kw' => 'Kuwait',
123+ 'kg' => 'Kyrgyzstan',
124+ 'la' => 'Lao People\'s Democratic Republic',
125+ 'lv' => 'Latvia',
126+ 'lb' => 'Lebanon',
127+ 'ls' => 'Lesotho',
128+ 'lr' => 'Liberia',
129+ 'ly' => 'Libyan Arab Jamahiriya',
130+ 'li' => 'Liechtenstein',
131+ 'lt' => 'Lithuania',
132+ 'lu' => 'Luxembourg',
133+ 'mo' => 'Macao',
134+ 'mk' => 'Macedonia, the Former Yugoslav Republic of',
135+ 'mg' => 'Madagascar',
136+ 'mw' => 'Malawi',
137+ 'my' => 'Malaysia',
138+ 'mv' => 'Maldives',
139+ 'ml' => 'Mali',
140+ 'mt' => 'Malta',
141+ 'mh' => 'Marshall Islands',
142+ 'mq' => 'Martinique',
143+ 'mr' => 'Mauritania',
144+ 'mu' => 'Mauritius',
145+ 'yt' => 'Mayotte',
146+ 'mx' => 'Mexico',
147+ 'fm' => 'Micronesia, Federated States of',
148+ 'md' => 'Moldova, Republic of',
149+ 'mc' => 'Monaco',
150+ 'mn' => 'Mongolia',
151+ 'ms' => 'Montserrat',
152+ 'ma' => 'Morocco',
153+ 'mz' => 'Mozambique',
154+ 'mm' => 'Myanmar',
155+ 'na' => 'Namibia',
156+ 'nr' => 'Nauru',
157+ 'np' => 'Nepal',
158+ 'nl' => 'Netherlands',
159+ 'an' => 'Netherlands Antilles',
160+ 'nc' => 'New Caledonia',
161+ 'nz' => 'New Zealand',
162+ 'ni' => 'Nicaragua',
163+ 'ne' => 'Niger',
164+ 'ng' => 'Nigeria',
165+ 'nu' => 'Niue',
166+ 'nf' => 'Norfolk Island',
167+ 'mp' => 'Northern Mariana Islands',
168+ 'no' => 'Norway',
169+ 'om' => 'Oman',
170+ 'pk' => 'Pakistan',
171+ 'pw' => 'Palau',
172+ 'ps' => 'Palestinian Territory, Occupied',
173+ 'pa' => 'Panama',
174+ 'pg' => 'Papua New Guinea',
175+ 'py' => 'Paraguay',
176+ 'pe' => 'Peru',
177+ 'ph' => 'Philippines',
178+ 'pn' => 'Pitcairn',
179+ 'pl' => 'Poland',
180+ 'pt' => 'Portugal',
181+ 'pr' => 'Puerto Rico',
182+ 'qa' => 'Qatar',
183+ 're' => 'Reunion',
184+ 'ro' => 'Romania',
185+ 'ru' => 'Russian Federation',
186+ 'rw' => 'Rwanda',
187+ 'sh' => 'Saint Helena',
188+ 'kn' => 'Saint Kitts and Nevis',
189+ 'lc' => 'Saint Lucia',
190+ 'pm' => 'Saint Pierre and Miquelon',
191+ 'vc' => 'Saint Vincent and the Grenadines',
192+ 'ws' => 'Samoa',
193+ 'sm' => 'San Marino',
194+ 'st' => 'Sao Tome and Principe',
195+ 'sa' => 'Saudi Arabia',
196+ 'sn' => 'Senegal',
197+ 'cs' => 'Serbia and Montenegro',
198+ 'sc' => 'Seychelles',
199+ 'sl' => 'Sierra Leone',
200+ 'sg' => 'Singapore',
201+ 'sk' => 'Slovakia',
202+ 'si' => 'Slovenia',
203+ 'sb' => 'Solomon Islands',
204+ 'so' => 'Somalia',
205+ 'za' => 'South Africa',
206+ 'gs' => 'South Georgia and the South Sandwich Islands',
207+ 'es' => 'Spain',
208+ 'lk' => 'Sri Lanka',
209+ 'sd' => 'Sudan',
210+ 'sr' => 'Suriname',
211+ 'sj' => 'Svalbard and Jan Mayen',
212+ 'sz' => 'Swaziland',
213+ 'se' => 'Sweden',
214+ 'ch' => 'Switzerland',
215+ 'sy' => 'Syrian Arab Republic',
216+ 'tw' => 'Taiwan, Province of China',
217+ 'tj' => 'Tajikistan',
218+ 'tz' => 'Tanzania, United Republic of',
219+ 'th' => 'Thailand',
220+ 'tl' => 'Timor-Leste',
221+ 'tg' => 'Togo',
222+ 'tk' => 'Tokelau',
223+ 'to' => 'Tonga',
224+ 'tt' => 'Trinidad and Tobago',
225+ 'tn' => 'Tunisia',
226+ 'tr' => 'Turkey',
227+ 'tm' => 'Turkmenistan',
228+ 'tc' => 'Turks and Caicos Islands',
229+ 'tv' => 'Tuvalu',
230+ 'ug' => 'Uganda',
231+ 'ua' => 'Ukraine',
232+ 'ae' => 'United Arab Emirates',
233+ 'gb' => 'United Kingdom',
234+ 'us' => 'United States',
235+ 'um' => 'United States Minor Outlying Islands',
236+ 'uy' => 'Uruguay',
237+ 'uz' => 'Uzbekistan',
238+ 'vu' => 'Vanuatu',
239+ 've' => 'Venezuela',
240+ 'vn' => 'Viet Nam',
241+ 'vg' => 'Virgin Islands, British',
242+ 'vi' => 'Virgin Islands, U.s.',
243+ 'wf' => 'Wallis and Futuna',
244+ 'eh' => 'Western Sahara',
245+ 'ye' => 'Yemen',
246+ 'zm' => 'Zambia',
247+ 'zw' => 'Zimbabwe'
248+);
249+?>
Top