<?php
/* --------------------------------------------------------------
ContentMaster.inc.php 2012-06-15 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2012 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
class ContentMaster
{
function get_content($p_content_group, $p_languages_id = false, $p_ignore_status = false, $p_customers_status_id = false)
{
$t_result_array = array();
$c_content_group = (int)$p_content_group;
$c_languages_id = (int)$_SESSION['languages_id'];
if($p_languages_id !== false)
{
$c_languages_id = (int)$p_languages_id;
}
$c_customers_status_id = (int)$_SESSION['customers_status']['customers_status_id'];
if($p_customers_status_id !== false)
{
$c_customers_status_id = (int)$p_customers_status_id;
}
if(GROUP_CHECK == 'true')
{
$t_group_check = "AND group_ids LIKE '%c_" . $c_customers_status_id . "_group%'";
}
$t_ignore_status = " AND content_status = '1' ";
if($p_ignore_status)
{
$t_ignore_status = '';
}
$t_sql = "SELECT
content_id,
content_title,
content_heading,
content_text,
content_file,
languages_id,
file_flag,
content_status,
gm_link,
gm_link_target
FROM " . TABLE_CONTENT_MANAGER . "
WHERE
content_group = '" . $c_content_group . "'
AND languages_id = '" . $c_languages_id . "'
" . $t_group_check
. $t_ignore_status;
$t_result = xtc_db_query($t_sql);
if(xtc_db_num_rows($t_result) == 1)
{
$t_result_array = xtc_db_fetch_array($t_result);
}
return $t_result_array;
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| AdminFavoritesSource.inc.php | 2013-11-12 21:11 | 1.12 KB | 76129f60960:kunden | -xw-x----- | |
| AdminMenuSource.inc.php | 2013-11-12 21:11 | 8.52 KB | 76129f60960:kunden | -xw-x----- | |
| AdminPermSource.inc.php | 2013-11-12 21:11 | 1.37 KB | 76129f60960:kunden | -xw-x----- | |
| AdminPermSourceInterface.inc.php | 2013-11-12 21:11 | 576 B | 76129f60960:kunden | -xw-x----- | |
| BrowserExtensionSource.inc.php | 2013-11-12 21:11 | 6.33 KB | 76129f60960:kunden | -xw-x----- | |
| ContentMaster.inc.php | 2013-11-12 21:11 | 1.78 KB | 76129f60960:kunden | -xw-x----- | |
| GMDataObject.inc.php | 2013-11-12 21:11 | 7.55 KB | 76129f60960:kunden | -xw-x----- | |
| GMDataObjectGroup.inc.php | 2013-11-12 21:11 | 2.45 KB | 76129f60960:kunden | -xw-x----- | |
| JSOptionsSource.inc.php | 2013-11-12 21:11 | 2 KB | 76129f60960:kunden | -xw-x----- | |
| MenuSourceInterface.inc.php | 2013-11-12 21:11 | 552 B | 76129f60960:kunden | -xw-x----- | |
| ServerInfoMaster.inc.php | 2013-11-12 21:11 | 12.94 KB | 76129f60960:kunden | -xw-x----- | |
| SimpleBoxesMaster.inc.php | 2013-11-12 21:11 | 1.51 KB | 76129f60960:kunden | -xw-x----- | |
| UsermodJSMaster.inc.php | 2013-11-12 21:11 | 1.63 KB | 76129f60960:kunden | -xw-x----- | |
| index.html | 2013-11-12 21:11 | 395 B | 76129f60960:kunden | -xw-x----- | |
| xml_line.php | 2013-11-12 21:11 | 60.47 KB | 76129f60960:kunden | -xw-x----- | |