|
@@ 729-736 (lines=8) @@
|
| 726 |
|
/** |
| 727 |
|
* |
| 728 |
|
*/ |
| 729 |
|
public function getSufficientConfig() { |
| 730 |
|
$result = DBConnection::exec($this->databaseType, "SELECT sufficient_config FROM profile WHERE profile_id = " . $this->identifier); |
| 731 |
|
$configQuery = mysqli_fetch_row($result); |
| 732 |
|
if ($configQuery[0] == "0") { |
| 733 |
|
return FALSE; |
| 734 |
|
} |
| 735 |
|
return TRUE; |
| 736 |
|
} |
| 737 |
|
|
| 738 |
|
/** |
| 739 |
|
* Checks if the profile has enough information to have something to show to end users. This does not necessarily mean |
|
@@ 796-806 (lines=11) @@
|
| 793 |
|
* Checks if the profile is shown (showable) to end users |
| 794 |
|
* @return boolean TRUE if profile is shown; FALSE if not |
| 795 |
|
*/ |
| 796 |
|
public function getShowtime() { |
| 797 |
|
$result = DBConnection::exec($this->databaseType, "SELECT showtime FROM profile WHERE profile_id = " . $this->identifier); |
| 798 |
|
$r = mysqli_fetch_row($result); |
| 799 |
|
/* echo "<pre>"; |
| 800 |
|
print_r($r); |
| 801 |
|
echo "</pre>"; */ |
| 802 |
|
if ($r[0] == "0") { |
| 803 |
|
return FALSE; |
| 804 |
|
} |
| 805 |
|
return TRUE; |
| 806 |
|
} |
| 807 |
|
|
| 808 |
|
/** |
| 809 |
|
* current language |