| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/gm/inc/ |
Upload File : |
<?php
/* --------------------------------------------------------------
gm_get_content_by_group_id.inc.php 2008-03-17 gambio
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
gm_get_content_by_group_id.inc.php 2008-01-30 pt
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
/*
* -> function to get content values by group id
*/
function gm_get_content_by_group_id($gm_group_id, $languages_id, $result_type = 'ASSOC') {
$gm_values = false;
if($result_type == 'ASSOC' || $result_type == 'NUMERIC'){
$gm_query = xtc_db_query("
SELECT
gm_value,
gm_key
FROM
gm_contents
WHERE
languages_id = '" . (int)$languages_id . "'
AND
gm_group_id = '" . (int)$gm_group_id . "'
ORDER by
gm_group_id ASC
");
$gm_values = array();
while($gm_row = xtc_db_fetch_array($gm_query)) {
if($result_type == 'ASSOC') {
$gm_values[$gm_row['gm_key']] = $gm_row['gm_value'];
} else {
$gm_values[] = $gm_row['gm_value'];
}
}
}
return $gm_values;
}
?>