hi
sobald ich die seite lade, kommt erstmal" Seite wird geladen",darunter dann contenido link. nach paar sekunden meine seite. wie kann ich das machen, dass diese "Seite wird geladen" nicht erscheint oder dieser contenido link weggeht. auf eine antwort würde ich mich freuen
Seite wird geladen, dann Contenido link warum?
Seite wird geladen, dann Contenido link warum?
Hilfe bekommt jeder der fragt.
klappt nicht
hi
habe durchgeguckt. index.htm von contenido verzeichnis ist es nicht. es ist index.htm von front_single. leider greift er auf eine php datei zu. da sind nur lauter sqlstatements . weiss nicht was ich da ändern soll. folgendes steht da drin:
<?
include("config.php");
include($ContenidoPath."inc/config.php");
include($ContenidoPath.$cfgPathInc."cfg_sql.inc.php");
include($ContenidoPath.$cfgPathInc."cfg_language_".$language.".inc.php");
include($ContenidoPath.$cfgPathInc."fnc_general.inc.php");
page_open(
array("sess" => "Contenido_Frontend_Session",
"auth" => "Contenido_Frontend_Challenge_Crypt_Auth",
"perm" => "Contenido_Perm"));
$db = new DB_Contenido;
if (!$client) die ("Es wurde kein client angegeben.");
if (!$lang) {$sql = "SELECT A.idlang FROM $cfgTab_clients_lang AS A, $cfgTab_lang AS B WHERE idclient='$client' AND A.idlang=B.idlang AND B.active='1' LIMIT 0,1";
$db->query($sql);
if ($db->next_record()) {$lang = $db->f("idlang");}
else die ("Es ist keine Sprache vorhanden oder aktiv.");}
$sql = "SELECT A.idcat, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND level='0' ORDER BY idtree";
$db->query($sql);
$i=1;
while ($db->next_record())
{$sql = "SELECT parentid, A.idcat, name, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND B.parentid='".$db->f("idcat")."' ORDER BY A.idtree";
$db2 = new DB_Contenido;
$db2->query($sql);
$j=1;
while ($db2->next_record())
{if ($db->f("visible") == "1" & $db2->f("visible") == "1")
{if ($db->f("public") == "1" & $db2->f("public") == "1" | $auth->auth["uid"] != "nobody")
{$tree["".$i.""]["".$j.""][link] = $sess->url("front_content.php?client=".$client."&lang=".$lang."&parent=".$db2->f("parentid")."&subid=".$db2->f("idcat")."&idcat=".$db2->f("idcat")."");
$tree["".$i.""]["".$j.""][idcat] = $db2->f("idcat");
$tree["".$i.""]["".$j.""][name] = $db2->f("name");
if ($tree[$i][$j][idcat] == $subid)
{$sql = "SELECT parentid, A.idcat, name, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND B.parentid='".$db2->f("idcat")."' ORDER BY A.idtree";
$db3 = new DB_Contenido;
$db3->query($sql);
$k=1;
while ($db3->next_record())
{if ($db3->f("visible") == "1")
{if ($db3->f("public") == "1" | $auth->auth["uid"] != "nobody")
{$tree["".$i.""]["".$j.""]["".$k.""][link] = $sess->url("front_content.php?client=".$client."&lang=".$lang."&parent=".$db3->f("parentid")."&subid=$subid&idcat=".$db3->f("idcat")."");
$tree["".$i.""]["".$j.""]["".$k.""][idcat] = $db3->f("idcat");
$tree["".$i.""]["".$j.""]["".$k.""][name] = $db3->f("name");
$k++;}}}}
$j++;}}}
$i++;}
if (!$idcatside) {
if (!$idside) {
if (!$idcat) {
$sql = "SELECT idside, B.idcat FROM $cfgTab_cat_side AS A, $cfgTab_cat_tree AS B, $cfgTab_cat AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND is_start='1' AND idclient='$client' ORDER BY idtree";
$db->query($sql);
if ($db->next_record()) {
$idside = $db->f("idside");
$idcat = $db->f("idcat");
} else {
die ("Keine Startseite in dieser Kategorie vorhanden.");
}
} else {
$sql = "SELECT idside FROM $cfgTab_cat_side WHERE idcat='$idcat' AND is_start='1'";
$db->query($sql);
if ($db->next_record()) {
$idside = $db->f("idside");
} else {
die ("Keine Startseite in dieser Kategorie vorhanden.");
}
}
}
} else {
$sql = "SELECT idcat, idside FROM $cfgTab_cat_side WHERE idcatside='$idcatside'";
$db->query($sql);
$db->next_record();
$idcat = $db->f("idcat");
$idside = $db->f("idside");
}
$sql = "SELECT * FROM $cfgTab_code AS A, $cfgTab_cat_side AS B WHERE A.idcatside=B.idcatside AND B.idcat='$idcat' AND B.idside='$idside' AND A.idlang='$lang'";
$db->query($sql);
if ($db->next_record()) {
$code = $db->f("code");
} else {
$code = "echo \"No code available.\";";
}
$idcatside = $db->f("idcatside");
//************ check for public ****************
$sql = "SELECT public FROM $cfgTab_cat_lang WHERE idcat='$idcat' AND idlang='$lang' ";
$db->query($sql);
$db->next_record();
$public = $db->f("public");
if ($public == 0) {
// echo "Diese Kategorie ist <b>geschützt</b> .....";
$auth->login_if($auth->auth["uid"] == "nobody");
} else {
// echo "Diese Kategorie ist <b>öffentlich</b>";
}
//************ update 'stat'-table ****************
$sql = "SELECT visited FROM $cfgTab_stat WHERE idcatside='$idcatside' AND idlang='$lang' ";
$db->query($sql);
$db->next_record();
$new_visited = $db->f("visited") + 1;
$sql = "UPDATE $cfgTab_stat SET visited='$new_visited' WHERE idcatside='$idcatside' AND idlang='$lang' ";
$db->query($sql);
$sql = "SELECT online, redirect, redirect_url FROM $cfgTab_side_lang WHERE idside='$idside' AND idlang=$lang";
$db->query($sql);
$db->next_record();
$online = $db->f("online");
$redirect = $db->f("redirect");
$redirect_url = $db->f("redirect_url");
if ($online) {
//Redirect, if User had chose this opinion in the sideproperties
if($redirect == '1' && $redirect_url != ''){
header ("Location: $redirect_url");
exit;
}
else{
eval($code);
}
} else {
echo "Seite ist nicht online.";
}
page_close();
?>
kann mir vielleicht jemand heflen, was muss ich da ändern?
habe durchgeguckt. index.htm von contenido verzeichnis ist es nicht. es ist index.htm von front_single. leider greift er auf eine php datei zu. da sind nur lauter sqlstatements . weiss nicht was ich da ändern soll. folgendes steht da drin:
<?
include("config.php");
include($ContenidoPath."inc/config.php");
include($ContenidoPath.$cfgPathInc."cfg_sql.inc.php");
include($ContenidoPath.$cfgPathInc."cfg_language_".$language.".inc.php");
include($ContenidoPath.$cfgPathInc."fnc_general.inc.php");
page_open(
array("sess" => "Contenido_Frontend_Session",
"auth" => "Contenido_Frontend_Challenge_Crypt_Auth",
"perm" => "Contenido_Perm"));
$db = new DB_Contenido;
if (!$client) die ("Es wurde kein client angegeben.");
if (!$lang) {$sql = "SELECT A.idlang FROM $cfgTab_clients_lang AS A, $cfgTab_lang AS B WHERE idclient='$client' AND A.idlang=B.idlang AND B.active='1' LIMIT 0,1";
$db->query($sql);
if ($db->next_record()) {$lang = $db->f("idlang");}
else die ("Es ist keine Sprache vorhanden oder aktiv.");}
$sql = "SELECT A.idcat, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND level='0' ORDER BY idtree";
$db->query($sql);
$i=1;
while ($db->next_record())
{$sql = "SELECT parentid, A.idcat, name, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND B.parentid='".$db->f("idcat")."' ORDER BY A.idtree";
$db2 = new DB_Contenido;
$db2->query($sql);
$j=1;
while ($db2->next_record())
{if ($db->f("visible") == "1" & $db2->f("visible") == "1")
{if ($db->f("public") == "1" & $db2->f("public") == "1" | $auth->auth["uid"] != "nobody")
{$tree["".$i.""]["".$j.""][link] = $sess->url("front_content.php?client=".$client."&lang=".$lang."&parent=".$db2->f("parentid")."&subid=".$db2->f("idcat")."&idcat=".$db2->f("idcat")."");
$tree["".$i.""]["".$j.""][idcat] = $db2->f("idcat");
$tree["".$i.""]["".$j.""][name] = $db2->f("name");
if ($tree[$i][$j][idcat] == $subid)
{$sql = "SELECT parentid, A.idcat, name, visible, public FROM $cfgTab_cat_tree AS A, $cfgTab_cat AS B, $cfgTab_cat_lang AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND B.idclient='$client' AND C.idlang='$lang' AND B.parentid='".$db2->f("idcat")."' ORDER BY A.idtree";
$db3 = new DB_Contenido;
$db3->query($sql);
$k=1;
while ($db3->next_record())
{if ($db3->f("visible") == "1")
{if ($db3->f("public") == "1" | $auth->auth["uid"] != "nobody")
{$tree["".$i.""]["".$j.""]["".$k.""][link] = $sess->url("front_content.php?client=".$client."&lang=".$lang."&parent=".$db3->f("parentid")."&subid=$subid&idcat=".$db3->f("idcat")."");
$tree["".$i.""]["".$j.""]["".$k.""][idcat] = $db3->f("idcat");
$tree["".$i.""]["".$j.""]["".$k.""][name] = $db3->f("name");
$k++;}}}}
$j++;}}}
$i++;}
if (!$idcatside) {
if (!$idside) {
if (!$idcat) {
$sql = "SELECT idside, B.idcat FROM $cfgTab_cat_side AS A, $cfgTab_cat_tree AS B, $cfgTab_cat AS C WHERE A.idcat=B.idcat AND B.idcat=C.idcat AND is_start='1' AND idclient='$client' ORDER BY idtree";
$db->query($sql);
if ($db->next_record()) {
$idside = $db->f("idside");
$idcat = $db->f("idcat");
} else {
die ("Keine Startseite in dieser Kategorie vorhanden.");
}
} else {
$sql = "SELECT idside FROM $cfgTab_cat_side WHERE idcat='$idcat' AND is_start='1'";
$db->query($sql);
if ($db->next_record()) {
$idside = $db->f("idside");
} else {
die ("Keine Startseite in dieser Kategorie vorhanden.");
}
}
}
} else {
$sql = "SELECT idcat, idside FROM $cfgTab_cat_side WHERE idcatside='$idcatside'";
$db->query($sql);
$db->next_record();
$idcat = $db->f("idcat");
$idside = $db->f("idside");
}
$sql = "SELECT * FROM $cfgTab_code AS A, $cfgTab_cat_side AS B WHERE A.idcatside=B.idcatside AND B.idcat='$idcat' AND B.idside='$idside' AND A.idlang='$lang'";
$db->query($sql);
if ($db->next_record()) {
$code = $db->f("code");
} else {
$code = "echo \"No code available.\";";
}
$idcatside = $db->f("idcatside");
//************ check for public ****************
$sql = "SELECT public FROM $cfgTab_cat_lang WHERE idcat='$idcat' AND idlang='$lang' ";
$db->query($sql);
$db->next_record();
$public = $db->f("public");
if ($public == 0) {
// echo "Diese Kategorie ist <b>geschützt</b> .....";
$auth->login_if($auth->auth["uid"] == "nobody");
} else {
// echo "Diese Kategorie ist <b>öffentlich</b>";
}
//************ update 'stat'-table ****************
$sql = "SELECT visited FROM $cfgTab_stat WHERE idcatside='$idcatside' AND idlang='$lang' ";
$db->query($sql);
$db->next_record();
$new_visited = $db->f("visited") + 1;
$sql = "UPDATE $cfgTab_stat SET visited='$new_visited' WHERE idcatside='$idcatside' AND idlang='$lang' ";
$db->query($sql);
$sql = "SELECT online, redirect, redirect_url FROM $cfgTab_side_lang WHERE idside='$idside' AND idlang=$lang";
$db->query($sql);
$db->next_record();
$online = $db->f("online");
$redirect = $db->f("redirect");
$redirect_url = $db->f("redirect_url");
if ($online) {
//Redirect, if User had chose this opinion in the sideproperties
if($redirect == '1' && $redirect_url != ''){
header ("Location: $redirect_url");
exit;
}
else{
eval($code);
}
} else {
echo "Seite ist nicht online.";
}
page_close();
?>
kann mir vielleicht jemand heflen, was muss ich da ändern?
Hilfe bekommt jeder der fragt.