include("includes/config.php");
$sql_configuration = "SELECT * FROM ".$GLOBALS["db_prefix"]."_configuration WHERE sort_order = '0'";
$result_configuration = mysql_query($sql_configuration,$GLOBALS["verbindung"]);
$row_config = mysql_fetch_array($result_configuration,MYSQL_ASSOC);
include("functions/functions.php");
$sql_configuration1 = "SELECT * FROM ".$GLOBALS["db_prefix"]."_configuration WHERE sort_order = '8'";
$result_configuration1 = mysql_query($sql_configuration1,$GLOBALS["verbindung"]);
$row_config1 = mysql_fetch_array($result_configuration1,MYSQL_ASSOC);
$sql_select_pr_count = "SELECT COUNT(id) AS pr_count FROM ".$GLOBALS["db_prefix"]."_projekte WHERE status='y' AND header != ''";
$result_content_pr_count = mysql_query($sql_select_pr_count,$GLOBALS["verbindung"]);
$row_count = mysql_fetch_array($result_content_pr_count,MYSQL_ASSOC);
$limit = 4*$row_config1[value];
$current_count = $limit+$row_config1[value];
$sql_select_content_boxen = "SELECT * FROM ".$GLOBALS["db_prefix"]."_projekte WHERE status='y' AND header != '' ORDER BY position LIMIT $limit,$row_config1[value]";
$result_content_boxen = mysql_query($sql_select_content_boxen,$GLOBALS["verbindung"]);
$sql_select_content_metas = "SELECT * FROM ".$GLOBALS["db_prefix"]."_projekte WHERE status='y' AND header != '' ORDER BY position LIMIT $limit,1";
$result_content_metas = mysql_query($sql_select_content_metas,$GLOBALS["verbindung"]);
$row_metas = mysql_fetch_array($result_content_metas,MYSQL_ASSOC);
$sql_select_content_zboxen = "SELECT * FROM ".$GLOBALS["db_prefix"]."_content_zusatzboxen WHERE id =".PROJEKTE." AND text != '' ORDER BY box_sort_order";
$result_content_zboxen = mysql_query($sql_select_content_zboxen,$GLOBALS["verbindung"]);
?>