-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresource_store.php
29 lines (26 loc) · 1.37 KB
/
resource_store.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
<?php
function gimmerandomfromfile($file) {
$input_file = $file;
$names = explode("\n", file_get_contents($input_file));
$output = '';
while (empty($output)) {
$output = $names[rand(1, count($names)-1)];
}
return $output;
}
function _browsers() { return gimmerandomfromfile('resources/browsers.txt'); }
function _ceo() { return gimmerandomfromfile('resources/ceo.txt'); }
function _tools() { return gimmerandomfromfile('resources/tools.txt'); }
function _techniques() { return gimmerandomfromfile('resources/techniques.txt'); }
function _platforms() { return gimmerandomfromfile('resources/platforms.txt'); }
function _languages() { return gimmerandomfromfile('resources/languages.txt'); }
function _companies() { return gimmerandomfromfile('resources/companies.txt'); }
function _os() { return gimmerandomfromfile('resources/os.txt'); }
function _applications() { return gimmerandomfromfile('resources/applications.txt'); }
function _urls() { return gimmerandomfromfile('resources/urls.txt'); }
function _users() { return gimmerandomfromfile('resources/users.txt'); }
function _adjetives() { return gimmerandomfromfile('resources/adjetives.txt'); }
function _countries() { return gimmerandomfromfile('resources/countries.txt'); }
function _years() { return gimmerandomfromfile('resources/years.txt'); }
function _mobiles() { return gimmerandomfromfile('resources/mobiles.txt'); }
?>