- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
// PRIVACY LEVEL OPTIONS
function winks_privacy_levels($privacy_level) {
global $database, $functions_general, $functions_winks;
$lang_query = $database->database_query("SELECT languagevar_value FROM se_languagevars WHERE languagevar_id = 14000105");
$lang_array = Array();
while($item = $database->database_fetch_assoc($lang_query)) {$case0 = $item[languagevar_value];}
$lang_query = $database->database_query("SELECT languagevar_value FROM se_languagevars WHERE languagevar_id = 14000106");
$lang_array = Array();
while($item = $database->database_fetch_assoc($lang_query)) {$case1 = $item[languagevar_value];}
$lang_query = $database->database_query("SELECT languagevar_value FROM se_languagevars WHERE languagevar_id = 14000107");
$lang_array = Array();
while($item = $database->database_fetch_assoc($lang_query)) {$case2 = $item[languagevar_value];}
switch($privacy_level) {
case 0: $privacy = $case0; break;
case 1: $privacy = $case1; break;
case 2: $privacy = $case2; break;
default: $privacy = ""; break;
}
return $privacy;
}
// WINKS ENABLED
function winks_enabled(){
global $database;
$winks_query = $database->database_query("SELECT * FROM sp_winks_settings");
$winks_array = Array();
while($item = $database->database_fetch_assoc($winks_query)) {
$winks_enabled = $item[enabled];
}
return $winks_enabled;
}