 |
$i = 0;
$s1 = mysql_query("select * from jos_content where sectionid=6 and state<>0 order by ordering asc limit 5");
while ($c1 = mysql_fetch_array($s1)) {
?>
[+] |
$i += 1;
}
?>
|
$sfd=mysql_query("select * from jos_content where id=5 and state<>0");
$gf=mysql_fetch_array($sfd);
echo $gf['introtext'];
?>
|
|
$search_section = mysql_query("select * from jos_sections where published<>0 order by ordering");
while($content_section = mysql_fetch_array($search_section)) {
$section_flag = $content_section['id'];
$search_category_flag = mysql_query("select * from jos_categories where section=$section_flag and published<>0");
$content_category_flag = mysql_fetch_array($search_category_flag);
if (mysql_num_rows($search_category_flag) > 1) {
?>
-
$section = $content_section['id'];
$search_category = mysql_query("select * from jos_categories where section=$section and published<>0 order by id asc");
while($content_category = mysql_fetch_array($search_category)) {
$content_flag2 = $content_category['id'];
$search_content_flag2 = mysql_query("select * from jos_content where catid=$content_flag2 and state<>0 ");
$content_content_flag2 = mysql_fetch_array($search_content_flag2);
if (mysql_num_rows($search_content_flag2) > 1) {
?>
-
$category = $content_category['id'];
$search_content = mysql_query("select * from jos_content where catid=$category and state<>0 ");
while($content_content = mysql_fetch_array($search_content)) {
?>
}
?>
} else {
?>
}
}
?>
} else {
$catid = $content_category_flag['id'];
if ($catid == 999)
$search_content_flag = mysql_query("select * from jos_content where catid=$catid order by ordering asc limit 1");
else
$search_content_flag = mysql_query("select * from jos_content where catid=$catid order by ordering asc limit 1");
$content_content_flag = mysql_fetch_array($search_content_flag);
?>
}
?>
}
?>
|
|
$s2 = mysql_query("select * from jos_content where catid=".$_GET['catid']." and state<>0 order by ordering asc");
while ($c2 = mysql_fetch_array($s2)) {
?>
}
?>
|
if ($_GET['option'] == "com_home")
include "com_home.php";
if ($_GET['option'] == "com_content")
include "com_content.php";
?>
|
|
|