//Constructioner WebTechnlgy
//Copyright by Artware Multimedia GmbH
$cccunderconstruction="";
$ccctotalkey="";
$cccnosave=0;
$ccccomingfromfile="index.php";
if (isset($page)){$cccpage=$page;}
include ("config.inc.php");
if(substr($cccurl,0,5)=="https"){
define("TYPE_OF_CONNECTION","https");
}else{
define("TYPE_OF_CONNECTION","http");
}
include ("system/bin/includes/p0140.php"); //-----programmversionen laden
include ("system/bin/$cccp0134"); //functions.inc
include ("system/bin/$cccp0100"); //sessiondef
include ("system/bin/$cccp0101"); //konfiguration
include ("system/bin/includes/p0214.php"); //selectsystem
if(isset($_GET["constructioneruri7831536"])){
$constructioneruri7831536=$_GET["constructioneruri7831536"];
if(($preferences["url_rewrite_ending"]>0)){
if(substr($constructioneruri7831536,-strlen($preferences["url_rewrite_ending"]))==$preferences["url_rewrite_ending"]){
$constructioneruri7831536=substr($constructioneruri7831536,0,-strlen($preferences["url_rewrite_ending"]));
}
}
$constructioneruri7831536=str_replace("ll--","set_language--",$constructioneruri7831536);
$constructioneruri7831536=str_replace("pp--","cccpage--",$constructioneruri7831536);
//$constructioneruri7831536=str_replace("s.","project_",$constructioneruri7831536);
$constructionerurireg=explode("__", $constructioneruri7831536);
$zaehler=0;
foreach ($constructionerurireg as $key => $val){
$val_reg=explode("--",$val);
$variable=$val_reg[0];
$wert=$val_reg[1];
$$variable=$wert;
$_GET[$variable]=$wert;
//echo $variable. "- ".$wert."
";
}
unset($_GET["constructioneruri7831536"]);
}
define("CURRENTURL",$cccurl);
define("URL",$cccurl);
//---------------------------------------------------------------------------------
//----------------language für programmfiles---------------------------------------
include ("system/languages/en/tf_includes.php");
$ccclgfile="system/languages/$cccbolanguage/tf_includes.php";
if (file_exists($ccclgfile)){
include ("$ccclgfile");
}
$ccclgfilename="tf_main";
include ("system/languages/en/$ccclgfilename.php");
$ccclgfile="system/languages/$cccbolanguage/$ccclgfilename.php";
if (file_exists($ccclgfile)){
include ("$ccclgfile");
}
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
include ("system/bin/$cccp0102"); //session_db
include ("system/bin/$cccp0132"); //pluginsholen
$cccc_version="0";
//CHECK OB INSTALLIERT WURDE ODER NICHT:
$cccsql = "select c_version from psystem";
$cccresult = mysql_query($cccsql, $cccconn);
if ($cccresult){
if ($cccrow=mysql_fetch_row($cccresult)) {
$cccc_version = $cccrow[0];
}
}
//CHECK WELCHE SPRACHEN EXISTIEREN-->Überprüfung ob Felder angelegt werden sollen
if(!isset($_SESSION["ACTIVE_LANGUAGES"])){
$cccsql = "select language from planguages WHERE aktiv='1'";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$_SESSION["ACTIVE_LANGUAGES"][$cccrow[0]] = true;
}
}
}
if(isset($_SESSION["ACTIVE_LANGUAGES"][$language])){
$this_languageexists=true;
}else{
$this_languageexists=false;
$language=$cccmainlanguage;
$set_language=$cccmainlanguage;
setsessionwert("language",$cccmainlanguage);
}
if (!isset($ccckvb12999)){
setsessionwert("ccckvb12999", 2);
}
if (!isset($ccckvb129999)){
setsessionwert("ccckvb129999", 3);
}
$ccckn34nnm=$ccckvb12999*$ccckvb129999;
if ($ccckn34nnm==30){
$ccckvb12999="ja";
}
if($ccckvb12999!="ja"){
if($cccunderconstruction==1){
echo $cccunderconstructiontext;
die;
}
}
if($cccc_version=="0"){
//HIER WIRD ENTWEDER WEITERGELEITET ODER EIN LINK ZUM index.php IM BACKOFFICE ANGEZEIGT
echo "
Constructioner® WebTechnology - $cccmain_index_6
Constructioner Setup Process The Setup process will start immediately. If this process does not start automatically please click HERE
Der Setup Prozess startet in wenigen Augenblicken. Sollte dieser nicht automatisch beginnen, klicken Sie bitte HIER |
";
}else{
//################Seite erkennen################
if (isset($cccpage)){ //existiert diese variable schon???
} else {
if (!isset($cccstartseite)){
$cccstartseite="";
}
$cccpage=$cccstartseite;
}
writedebuginfo(chr(13).chr(10)."
####NEW PAGE ($cccpage)####################################################################
Language: Current Language (\$language = $language) Main Language (\$cccmainlanguage = $cccmainlanguage)Backoffice (\$cccbolanguage) = $cccbolanguage
$cccdebuginfo_variables");
$cccstyledefinition ="";
$cccsave_var="";
$cccc_javascript="";
$cccbrauchejavascript="";
$cccpreloadimg="";
$cccimagnumber=0;
$cccformnummer=0;
//---------------php library includes
//----folder einlesen----------------------------------------------------------
$cccfileanz=0;
$cccfolders=array();
$cccfiles=array();
//echo $cccuploadpfadimages_read;
$cccphplibrarypath=str_replace("../../../","",$cccphplibrarypath);
$cccfolder=dir("$cccphplibrarypath");
while($cccentry=$cccfolder->read()){
$cccext=substr($cccentry,strlen($cccentry)-3,3);
if (!is_dir($cccphplibrarypath."/".$cccentry)){
if ($cccext=="php"){
$cccfileanz++;
$cccfiles[$cccfileanz]=$cccentry;
}
}
}
writedebuginfo("ACTIVE INCLUDES - Before Page Construction:
");
//POTENZIAL
if (count($cccfiles)>0){
asort($cccfiles);
$cccphpinclzaehler=0;
$cccsql = "select whereincluded, active, phpfilename FROM pphpinclusion";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccphpinclzaehler++;
$cccwhereincludedarray[$cccphpinclzaehler] = $cccrow[0];
$cccactivearray[$cccphpinclzaehler] = $cccrow[1];
$cccphpfilenamearray[$cccphpinclzaehler] = $cccrow[2];
//echo $cccphpfilenamearray[$cccphpinclzaehler];
}
}
for ($cccxc34=1;$cccxc34<=$cccphpinclzaehler;$cccxc34++){
$cccfile_wert=$cccfiles[$cccxc34];
$cccfile_wert2=str_replace(".", "___", $cccfile_wert);
$cccwhereincluded=0;
$cccactive=0;
for ($cccinclz=1;$cccinclz<=count($cccphpfilenamearray);$cccinclz++){
if ($cccphpfilenamearray[$cccinclz]==$cccfile_wert2){
$cccwhereincluded = $cccwhereincludedarray[$cccinclz];
$cccactive = $cccactivearray[$cccinclz];
}
}
if ($cccwhereincluded==2){
} elseif ($cccwhereincluded==3) {
} elseif ($cccwhereincluded==4) {
} else {
if ($cccactive!=1){
$cccfiletobeincluded=$cccphplibrarypath.$cccfile_wert;
if (file_exists($cccfiletobeincluded)){
//echo $cccfunctionfilename, "
";
include ($cccfiletobeincluded);
writedebuginfo("Include = $cccfiletobeincluded
");
}
}
}
}
}
//------------functions-------------------------------
//-------------save-files functions einlesen-------------------------------
for ($ccctzu=1;$ccctzu<=count($cccfunctions_id);$ccctzu++){
if (getversionallowance($cccfunctions_id[$ccctzu])==1){
$cccfunctionfilename="functions/".$cccfunctions_id[$ccctzu]."/".$cccfunctions_id[$ccctzu]."_save.php";
if (file_exists("$cccfunctionfilename")){
//echo $cccfunctionfilename, "
";
include ($cccfunctionfilename);
}
}
}
//-----------------------------------
//----falls nicht eingeloggt---dahin kommt jeder-----
//echo "$ccccmode - $cccmode #
";
if (!isset($mode)){
setsessionwert("mode", "view");
}
if (!isset($user)) {
setsessionwert("profile", $cccanonymousprofile);
setsessionwert("user", "PUBLIC");
//echo $cccprofile;
}
//---------------Messages anzeigen----------------------
//echo $cccnewmessage;
$cccc_msgbox="";
if ($user!="PUBLIC"){
if (!isset($cccnewmessage)){$cccnewmessage=0;}
if ($cccnewmessage<2){
$cccnewmessage++;
setsessionwert("cccnewmessage", $cccnewmessage);
$cccmsgnr=0;
$cccsql = "select intmsg_id, message_short, datum FROM pinternal_messages where message_status=1 and user='$user' order by datum desc";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccmsgnr++;
$cccintmsg_id= $cccrow[0];
$cccmessage_short = $cccrow[1];
$cccdatum = $cccrow[2];
}
}
if ($cccmsgnr>0){
//$cccnewmessage=1;
if ($cccmsgnr>1){
$cccMessages_text="$cccmain_index_1";
} else {
$cccMessages_text="$cccmain_index_2";
}
$cccc_msgbox="alert(\"$cccmain_index_3 $cccmsgnr $cccmain_index_4 $cccMessages_text $cccmain_index_5\");";
$cccbrauchejavascript="ja";
}
}
}
//################grundeinstellungen############
$cccbar2="";
//################Seite erkennen################
if (!isset($cccpage)){
$cccpage="";
}
$cccispagecorrect=0;
$cccsql777 = "select layout FROM ppages where page='$cccpage'";
$cccresult777 = AW_sql_query($cccsql777);
if ($cccresult777) {
while ($cccrow777 = mysql_fetch_row($cccresult777)) {
$cccispagecorrect++;
$ccctestlayout = $cccrow777[0];
}
}
if ($cccispagecorrect==0){
//existiert diese seite???
if (!isset($cccstartseite)){
$cccstartseite="";
}
$cccstartseitecorrect=0;
if (strlen($cccstartseite)>0){
$cccsql777 = "select layout FROM ppages where page='$cccstartseite'";
$cccresult777 = AW_sql_query($cccsql777);
if ($cccresult777) {
while ($cccrow777 = mysql_fetch_row($cccresult777)) {
$cccstartseitecorrect++;
$ccctestlayout = $cccrow777[0];
}
}
}
if ($cccstartseitecorrect>0){
$cccpage=$cccstartseite;
} else {
$cccmerkdiepage="";
$cccsql777 = "select page,layout FROM ppages order by reihenfolge desc";
$cccresult777 = AW_sql_query($cccsql777);
if ($cccresult777) {
while ($cccrow777 = mysql_fetch_row($cccresult777)) {
$cccpage77 = $cccrow777[0];
$ccclayout77 = $cccrow777[1];
if (strlen($ccclayout77)>0){
$cccmerkdiepage=$cccpage77;
}
}
}
if (strlen($cccmerkdiepage)>0){
$cccpage=$cccmerkdiepage;
}
}
}
writedebuginfo("PHP-CODE (Page->Settings):
");
//################php-code dieser seite ausführen########
$cccsql777 = "select phpcode FROM ppages where page='$cccpage'";
$cccresult777 = AW_sql_query($cccsql777);
if ($cccresult777) {
while ($cccrow777 = mysql_fetch_row($cccresult777)) {
$ccckphpcode = $cccrow777[0];
$ccckphpcode=stripslashes2($ccckphpcode);
if (getversionallowance("xxxpagesettingsphpcode")==1){
if (strlen($ccckphpcode)>0){
writedebuginfo("PHP-Code ($cccpage) = $ccckphpcode
");
if ($cccconstructioneronlinedemo==1){
$ccckphpcode=AW_forbidden_php($ccckphpcode);
}
eval($ccckphpcode);
}
}
}
}
//################Seite erkennen################
if (isset($cccpage)){ //existiert diese variable schon???
} else {
$cccpage=$cccstartseite;
}
//###############level setzen#####################
setsessionwert("level1", "");
setsessionwert("level2", "");
setsessionwert("level3", "");
setsessionwert("level4", "");
setsessionwert("level5", "");
$cccpreihenfolge=0;
$cccsql777 = "select reihenfolge, level FROM ppages where page='$cccpage'";
$cccresult777 = AW_sql_query($cccsql777);
if ($cccresult777) {
while ($cccrow777 = mysql_fetch_row($cccresult777)) {
$cccpreihenfolge = $cccrow777[0];
$cccplevel = $cccrow777[1];
if ($cccplevel==4){setsessionwert("level5", $cccpage);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccplevel==3){setsessionwert("level4", $cccpage);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccplevel==2){setsessionwert("level3", $cccpage);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccplevel==1){setsessionwert("level2", $cccpage);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccplevel==0){setsessionwert("level1", $cccpage);$cccpreihenfolge=$cccpreihenfolge-1;}
}
}
if (!isset($cccplevel)){
$cccplevel=0;
}
if ($cccplevel>0){
for ($cccpz=$cccpreihenfolge;$cccpz>=0;$cccpz=$cccpz-1){
if ($cccplevel>0){
$cccsql666 = "select page, level FROM ppages where reihenfolge='$cccpz' and level<'$cccplevel'";
$cccresult666 = AW_sql_query($cccsql666);
if ($cccresult666) {
while ($cccrow666 = mysql_fetch_row($cccresult666)) {
$cccnseite = $cccrow666[0];
$cccnlevel = $cccrow666[1];
if ($cccnlevel==3){setsessionwert("level4", $cccnseite);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccnlevel==2){setsessionwert("level3", $cccnseite);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccnlevel==1){setsessionwert("level2", $cccnseite);$cccpreihenfolge=$cccpreihenfolge-1;}
if ($cccnlevel==0){setsessionwert("level1", $cccnseite);$cccpreihenfolge=$cccpreihenfolge-1;}
$cccplevel=$cccnlevel;
}
}
}
}
}
writedebuginfo("VARIABLES - SYSTEM - PAGE:
");
writedebuginfo("\$cccpage = $cccpage
");
writedebuginfo("\$level1 = $level1
");
writedebuginfo("\$level2 = $level2
");
writedebuginfo("\$level3 = $level3
");
writedebuginfo("\$level4 = $level4
");
writedebuginfo("\$level5 = $level5
");
//}
//----------------berechtigungen auf seite prüfen-------------------------------------------------
include ("system/bin/$cccp0120");
//-----------------Seite holen-------------------
$ccctitel="";
$cccpagedescription="";
$cccpagekeywords="";
$cccsql = "select layout from ppages where page='$cccpage'";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$ccclayout = $cccrow[0];
}
}
//----------------META TAGS PAGES -----------------
$ccctitel="";
$cccpagedescription="";
$cccpagekeywords ="";
$cccpagesearchengines ="";
$cccpageauthor="";
$cccpagedate ="";
$cccpageexpirydate ="";
$cccpagecharacterset="";
$cccpageadditionalmetatags="";
$cccsql_metapages = "select title, description, keywords, robots, author, dates, expirydates, additionalmetatags FROM pmetatagspages where page='$cccpage' AND language='$cccmainlanguage'";
$cccresult_metapages = AW_sql_query($cccsql_metapages);
if ($cccresult_metapages) {
while ($cccrow_metapages = mysql_fetch_row($cccresult_metapages)) {
$ccctitel = stripslashes2($cccrow_metapages[0]);
$cccpagedescription = stripslashes2($cccrow_metapages[1]);
$cccpagekeywords = stripslashes2($cccrow_metapages[2]);
$cccpagesearchengines = $cccrow_metapages[3];
$cccpageauthor = $cccrow_metapages[4];
$cccpagedate = $cccrow_metapages[5];
$cccpageexpirydate = $cccrow_metapages[6];
$cccpageadditionalmetatags = $cccrow_metapages[7];
}
}
if ($cccmainlanguage!=$language){
$cccsql_metapages22 = "select title, description, keywords, robots, author, dates, expirydates, additionalmetatags FROM pmetatagspages where page='$cccpage' AND language='$language'";
$cccresult_metapages22 = AW_sql_query($cccsql_metapages22);
if ($cccresult_metapages22) {
while ($cccrow_metapages22 = mysql_fetch_row($cccresult_metapages22)) {
$ccctitel22 = stripslashes2($cccrow_metapages22[0]);
if(strlen($ccctitel22)>0){
$ccctitel=$ccctitel22;
}
$cccpagedescription22 = stripslashes2($cccrow_metapages22[1]);
if(strlen($cccpagedescription22)>0){
$cccpagedescription=$cccpagedescription22;
}
$cccpagekeywords22 = stripslashes2($cccrow_metapages22[2]);
if(strlen($cccpagekeywords22)>0){
$cccpagekeywords=$cccpagekeywords22;
}
$cccpagesearchengines22 = $cccrow_metapages22[3];
if(strlen($cccpagesearchengines22)>0){
$cccpagesearchengines=$cccpagesearchengines22;
}
$cccpageauthor22 = $cccrow_metapages22[4];
if(strlen($cccpageauthor22)>0){
$cccpageauthor=$cccpageauthor22;
}
$cccpagedate22 = $cccrow_metapages22[5];
if(strlen($cccpagedate22)>0 AND $cccpagedate22!="0000-00-00"){
$cccpagedate=$cccpagedate22;
}
$cccpageexpirydate22 = $cccrow_metapages22[6];
if(strlen($cccpageexpirydate22)>0){
$cccpageexpirydate=$cccpageexpirydate22;
}
$cccpageadditionalmetatags22 = $cccrow_metapages22[7];
if(strlen($cccpageadditionalmetatags22)>0){
$cccpageadditionalmetatags=$cccpageadditionalmetatags22;
}
}
}
}
if (!isset($ccclayout)){
$ccclayout="";
}
if (strlen($ccclayout)==0){
$cccx="
Constructioner® WebTechnology - $cccmain_index_6
THIS PAGE CANNOT BE DISPLAYED - possible reasons ...
- there is no layout applied to this page
|
DIESE SEITE KANN NICHT ANGEZEIGT WERDEN - mögliche Ursachen ...
- dieser Seite ist kein Layout zugewiesen
|
";
echo $cccx;
die;
}
if (!isset($ccctitel)){
$ccctitel="";
}
if (strlen($ccctitel)<1){
$ccctitel=$cccstandardtitel;
}
//----------------Meta Tags-------------------------------
$cccvtitle_checkbox = "";
$cccvtitle = "";
$cccvdescription_checkbox = "";
$cccvdescription = "";
$cccvkeywords_checkbox = "";
$cccvkeywords = "";
$cccvauthor_checkbox = "";
$cccvauthor = "";
$cccvdate_checkbox = "";
$cccvdate = "";
$cccvrobots_checkbox = "";
$cccvrobots = "";
$cccvexpiry_checkbox = "";
$cccvexpiry = "";
$cccvcharacterset_checkbox = "";
$cccvadditionalmetatags = "";
$cccsql = "select title, description, keywords, author, date, robots , expiry , characterset_checkbox, additionalmetatags FROM pmetatags where language=\"$cccmainlanguage\"";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccvtitle = stripslashes3($cccrow[0]);
$cccvdescription = stripslashes3($cccrow[1]);
$cccvkeywords = stripslashes3($cccrow[2]);
$cccvauthor = stripslashes3($cccrow[3]);
$cccvdate = $cccrow[4];
$cccvrobots = $cccrow[5];
$cccvexpiry = stripslashes3($cccrow[6]);
$cccvcharacterset_checkbox = $cccrow[7];
$cccvadditionalmetatags = stripslashes2($cccrow[8]);
}
}
if ($cccmainlanguage!=$language){
$cccsql = "select title, description, keywords , author , date , robots , expiry , characterset_checkbox, additionalmetatags FROM pmetatags where language=\"$language\"";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccvtitle22 = stripslashes3($cccrow[0]);
if(strlen($cccvtitle22)>0){
$cccvtitle=$cccvtitle22;
}
$cccvdescription22 = stripslashes3($cccrow[1]);
if(strlen($cccvdescription22)>0){
$cccvdescription=$cccvdescription22;
}
$cccvkeywords22 = stripslashes3($cccrow[2]);
if(strlen($cccvkeywords22)>0){
$cccvkeywords=$cccvkeywords22;
}
$cccvauthor22 = stripslashes3($cccrow[3]);
if(strlen($cccvauthor22)>0){
$cccvauthor=$cccvauthor22;
}
$cccvdate22 = $cccrow[4];
if(strlen($cccvdate22)>0 AND $cccvdate22!="0000-00-00"){
$cccvdate=$cccvdate22;
}
$cccvrobots22 = $cccrow[5];
if(strlen($cccvrobots22)>0){
$cccvrobots=$cccvrobots22;
}
$cccvexpiry22 = stripslashes3($cccrow[6]);
if(strlen($cccvexpiry22)>0){
$cccvexpiry=$cccvexpiry22;
}
$cccvcharacterset_checkbox22 = $cccrow[7];
if(strlen($cccvcharacterset_checkbox22)>0){
$cccvcharacterset_checkbox=$cccvcharacterset_checkbox22;
}
$cccvadditionalmetatags22 = stripslashes2($cccrow[8]);
if(strlen($cccvadditionalmetatags22)>0){
$cccvadditionalmetatags=$cccvadditionalmetatags22;
}
}
}
}
$cccmetatagshtml="";
if ($cccvcharacterset_checkbox==1 and strlen($constructioner_charset)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
if (strlen($ccctitel)>0){
$cccmetatagshtml.=chr(13).chr(10)."$ccctitel";
} else {
$cccmetatagshtml.=chr(13).chr(10)."$cccvtitle";
}
if (isset($cccNCM226922082003)){
} else {
$cccmetatagshtml.=chr(13).chr(10)."";
}
if (strlen($cccpagedescription)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if (strlen($cccvdescription)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
if (strlen($cccpagekeywords)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if (strlen($cccvkeywords)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
if (strlen($cccpageauthor)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if (strlen($cccvauthor)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
if (strlen($cccpagedate)>0 AND $cccpagedate!="0000-00-00"){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if (strlen($cccvdate)>0){
if ($cccvdate!="0000-00-00"){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
}
if (!isset($cccpagesearchengines)){
$cccpagesearchengines="";
}
if (strlen($cccpagesearchengines)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if ($cccvrobots_checkbox==1 And strlen($cccvrobots)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
if (strlen($cccpageexpirydate)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
} else {
if (strlen($cccvexpiry)>0){
$cccmetatagshtml.=chr(13).chr(10)."";
}
}
if (strlen($cccpageadditionalmetatags)>0){
$cccpageadditionalmetatags=stripslashes2($cccpageadditionalmetatags);
$cccmetatagshtml.=$cccpageadditionalmetatags;
} else {
if (strlen($cccvadditionalmetatags)>0){
$cccvadditionalmetatags=stripslashes2($cccvadditionalmetatags);
$cccmetatagshtml.=$cccvadditionalmetatags;
}
}
$cccmetataghtmlneu=str_replace("\"","#####da#####", $cccmetatagshtml);
$cccmetataghtmlneu_exec="\$cccmetataghtml=\"".$cccmetataghtmlneu."\";";
if ($cccconstructioneronlinedemo==1){
$cccmetataghtmlneu_exec=AW_forbidden_php($cccmetataghtmlneu_exec);
}
eval($cccmetataghtmlneu_exec);
$cccmetatagshtml=str_replace("#####da#####", "\"", $cccmetataghtml);
//----berechtigung für seite prüfen-------------------------
$cccx="";
//----------------Template holen----------------------------
$cccsql = "select templatehtml from playout where layout='$ccclayout' and language='$cccmainlanguage'";
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
$cccnumber = mysql_num_rows($cccresult);
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccx = stripslashes2($cccrow[0]);
}
}
//-----------var für dieses template holen----------------
$cccsql = "select var_name from pvarprotemplate where templateid='$ccclayout' order by var_name";
$cccresult1 = AW_sql_query($cccsql);
if ($cccresult1) {
$cccvpt=0;
while ($cccrow1 = mysql_fetch_row($cccresult1)) {
$cccvpt++;
$cccvptvar_name[$cccvpt]= $cccrow1[0];
}
}
setsessionwert("current_page", $cccpage);
setsessionwert("current_layout", $ccclayout);
setsessionwert("cccaktbackofficeseite", "index.php?cccpage=$cccpage");
writedebuginfo("\$current_layout = $current_layout
");
//echo $current_page;
$cccimagnumber=0;
//------------functions einlesen------------------------
$cccfile_wert="";
$cccfunctions_javascript="";
$cccfunctions_javascriptfiles="";
for ($ccctzu=1;$ccctzu<=count($cccfunctions_id);$ccctzu++){
if (getversionallowance($cccfunctions_id[$ccctzu])==1){
$cccfunctionfilename="functions/".$cccfunctions_id[$ccctzu]."/".$cccfunctions_id[$ccctzu]."_function.php";
if (file_exists("$cccfunctionfilename")){
$cccfunctionszaehler=0;
$cccsql="select function_php from pvariablen where (page='$cccpage' or (page='*' and layout='$ccclayout')) and function_php like '%$cccfunctions_id[$ccctzu]%'";
$cccresult = AW_sql_query($cccsql, $cccconn);
$cccfunctionszaehler=mysql_num_rows($cccresult);
if ($cccfunctionszaehler>0){
include ($cccfunctionfilename);
}
}
if ($mode=="cms"){
$cccjavascriptname="functions/".$cccfunctions_id[$ccctzu]."/".$cccfunctions_id[$ccctzu].".js";
if (file_exists("$cccjavascriptname")){
$cccfunctions_javascriptfiles.=chr(13).chr(10)."
";
}
}
}
}
//#########################################################################################
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$cccsql = "select function_php, var_name, page, layout from pvariablen";
$cccresult_var = AW_sql_query($cccsql);
if ($cccresult_var) {
while ($cccrow_var = mysql_fetch_row($cccresult_var)) {
$ccckeyname=$cccrow_var[1].$cccrow_var[2].$cccrow_var[3];
$cccfunction_phparray[$ccckeyname]=stripslashes2($cccrow_var[0]);
}
}
if ($profile!="PUBLIC"){
$cccsql = "select wert, var_name, seite FROM pprofiledetail where profile='$profile'";
$cccresult = AW_sql_query($cccsql, $cccconn);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccwertkey=$profile.$cccrow[1].$cccrow[2];
$ccckwert_array[$cccwertkey]=$cccrow[0];
}
}
}
//----------seitenteile für jede variable holen--------
for ($cccn=1; $cccn<=$cccvpt;$cccn++){
$cccfunction_php="";
$THIS_AREA="";
$cccpage=$current_page;
//---funktion für page
$cccarea=$cccvptvar_name[$cccn];
$cccfunction_im_layout="";
//include ("system/bin/$cccp0122");
$ccceditable="TRUE";
if ($profile!="PUBLIC"){
$cccwertkey=$profile.$cccvptvar_name[$cccn].$cccpage;
if (isset($ccckwert_array[$cccwertkey])){
$ccckwert=$ccckwert_array[$cccwertkey];
} else {
$ccckwert="";
}
if ($ccckwert==1){
$ccceditable="invisible";
}
if ($ccckwert==2){
$ccceditable="FALSE";
}
} else {
$ccceditable="FALSE";
}
$ccckeyname=$cccvptvar_name[$cccn].$cccpage.$ccclayout;
if (isset($cccfunction_phparray[$ccckeyname])){
$cccfunction_php=$cccfunction_phparray[$ccckeyname];
} else {
$cccfunction_php="";
}
$cccfunction_php =str_replace("##1##","\"",$cccfunction_php);
writedebuginfo("C-Area ($cccvptvar_name[$cccn]/$cccpage/$ccclayout) PHP-Code:
");
writedebuginfo("
");
//echo $cccfunction_php;
//$cccfunction_php =str_replace("\"\"","",$cccfunction_php);
//----------------berechtigungen auf variable prüfen----------------
if (strlen($cccfunction_php)<1){ //---funktion für layout
$cccfunction_im_layout="*";
$ccckeyname=$cccvptvar_name[$cccn]."*".$ccclayout;
if (isset($cccfunction_phparray[$ccckeyname])){
$cccfunction_php=$cccfunction_phparray[$ccckeyname];
} else {
$cccfunction_php="";
}
$cccfunction_php =str_replace("##1##","\"",$cccfunction_php);
writedebuginfo("C-Area ($cccvptvar_name[$cccn]/ALL PAGES WITH THIS LAYOUT/$ccclayout) PHP-Code:
");
writedebuginfo("
");
}
//---------php-code ausführen----------------
//echo $cccfunction_php;
if ($ccceditable!="invisible"){
if ($cccconstructioneronlinedemo==1){
$cccfunction_php=AW_forbidden_php($cccfunction_php);
}
eval($cccfunction_php);
$cccx = str_replace( "###$cccvptvar_name[$cccn]###", $THIS_AREA , $cccx);
}
if ($ccceditable!="invisible"){
$cccx = str_replace( "###$cccvptvar_name[$cccn]###", "" , $cccx);
}
}
//-------nicht gesetzte variablen rauslöschen-----------
for ($ccctt=1;$ccctt<=$cccvpt;$ccctt++){
$cccx = str_replace( "###".$cccvptvar_name[$ccctt] ."###", "" , $cccx);
}
//----------------hole styles --------------
$cccstyledefinition=getstyles(1);
$ccccssstyle=chr(13).chr(10)."$cccstyledefinition".chr(13).chr(10);
//----------------Backoffice holen----------------------------
$cccbackoffice1="";
if ($mode=="view" or $mode=="cms"){
if ($ccckvb12999=="ja"){
$cccbackoffice1=$cccjavas."
if (parent.top1){
if (parent.top1.document){
if (parent.top1.document.form1.goseite){
parent.top1.document.form1.goseite.value=\"$current_page\";
}
if (parent.top1.document.form1.golayout){
parent.top1.document.form1.golayout.value=\"$ccclayout\";
}
}
}
if (parent.mitte_links){
var a=parent.mitte_links.document.links.length;
for (i=0;i");
fclose($cccjshandle);
$cccjsinclude=chr(13).chr(10)."";
//styles
$cccstylestimestamp=mktime();
$cccstylesfile="upload/styles/st".$cccstylestimestamp.".css";
$cccstyleshandle=fopen($cccstylesfile, "a+");
fputs($cccstyleshandle, $ccccssstyle);
fclose($cccstyleshandle);
$cccstylesinclude=chr(13).chr(10)."".chr(13).chr(10)."".chr(13).chr(10)."".chr(13).chr(10)."";
$jsaction="";
if(isset($cccactivate_javascript_check)){
if($cccactivate_javascript_check=="TRUE"){
if($cccpage==$cccstartseite){
//var_dump( isset($_GET['javascript']) );
if(strlen($jsconf)<=0){
$jsaction="
";
}
}
}
}
$cccx = str_replace( "", "".$jsaction.$cccmetatagshtml.$cccstylesinclude.$cccfunctions_javascriptfiles.$cccjsinclude, $cccx);
$cccx = str_replace( "", "".$jsaction.$cccmetatagshtml.$cccstylesinclude.$cccfunctions_javascriptfiles.$cccjsinclude , $cccx);
$cccx = str_replace( "", "".$jsaction.$cccmetatagshtml.$cccstylesinclude.$cccfunctions_javascriptfiles.$cccjsinclude , $cccx);
$cccx = str_replace( "../../../", "" , $cccx);
$cccx = str_replace( "$"."constructioner_charset", $constructioner_charset , $cccx);
$cccx = str_replace( "#"."constructioner_charset", "\$constructioner_charset" , $cccx);
//----------------phplibrary includes pares before output-----------
if (count($cccfiles)>0){
asort($cccfiles);
//for (reset($cccfiles);$ccckey=key($cccfiles);next($cccfiles)){
for ($cccxc34=1;$cccxc34<=$cccphpinclzaehler;$cccxc34++){
$cccfile_wert=$cccfiles[$cccxc34];
$cccfile_wert2=str_replace(".", "___", $cccfile_wert);
$cccwhereincluded=0;
//echo "###".count($cccphpfilenamearray)."äää";
for ($cccinclz=1;$cccinclz<=count($cccphpfilenamearray);$cccinclz++){
//echo $cccinclz."!!!!!
";
if ($cccphpfilenamearray[$cccinclz]==$cccfile_wert2){
$cccwhereincluded = $cccwhereincludedarray[$cccinclz];
$cccactive = $cccactivearray[$cccinclz];
}
}
if ($cccwhereincluded==2){
if ($cccactive!=1){
$cccfiletobeincluded=$cccphplibrarypath.$cccfile_wert;
if (file_exists($cccfiletobeincluded)){
//echo $cccfunctionfilename, "
";
include ($cccfiletobeincluded);
writedebuginfo("ACTIVE INCLUDES - Before Output to Browser:
");
writedebuginfo("Include = $cccfiletobeincluded
");
}
}
}
}
}
if ($ccckvb12999=="ja"){
} else {
$cccx=aw_parse_url($cccx);
}
if (strlen($cccbackoffice1)>0){
$cccbojs12345=chr(13).chr(10)."";
} else {
$cccbojs12345="";
}
$theoutput=$cccx.$cccbojs12345;
echo $theoutput; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUSGABE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//----------------phplibrary includes parse after output-----------
if ($ccckvb12999=="ja"){
$ccccomingtroughbackoffice=1;
} else {
$ccccomingtroughbackoffice=0;
}
if ($cccstatistikaufzeichnung=="ja"){
$cccstatisticrecording=1;
} else {
$cccstatisticrecording=0;
}
if (count($cccfiles)>0){
asort($cccfiles);
//for (reset($cccfiles);$ccckey=key($cccfiles);next($cccfiles)){
for ($cccxc34=1;$cccxc34<=$cccphpinclzaehler;$cccxc34++){
$cccfile_wert=$cccfiles[$cccxc34];
$cccfile_wert2=str_replace(".", "___", $cccfile_wert);
$cccwhereincluded=0;
for ($cccinclz=1;$cccinclz<=count($cccphpfilenamearray);$cccinclz++){
if ($cccphpfilenamearray[$cccinclz]==$cccfile_wert2){
$cccwhereincluded = $cccwhereincludedarray[$cccinclz];
$cccactive = $cccactivearray[$cccinclz];
}
}
if ($cccwhereincluded==3){
if ($cccactive!=1){
$cccfiletobeincluded=$cccphplibrarypath.$cccfile_wert;
if (file_exists($cccfiletobeincluded)){
//echo $cccfunctionfilename, "
";
include ($cccfiletobeincluded);
writedebuginfo("ACTIVE INCLUDES - After Output to Browser:
");
writedebuginfo("Include = $cccfiletobeincluded
");
}
}
}
}
}
//------------------------SUCHE-INDIZIERUNG-----------------------------
//--------------search holen-----------------------
$cccsql = "select search from search where searchtype='_INPUT'";
//echo $cccsql;
$cccresult = AW_sql_query($cccsql);
if ($cccresult) {
while ($cccrow = mysql_fetch_row($cccresult)) {
$cccmsearch = str_replace("_INPUT", "",$cccrow[0]);
$cccsql2 = "select pott, cond1, cond2, cond3 from searchpots WHERE search='$cccmsearch"."_INPUT'";
//echo $cccsql2;
$cccresult2 = AW_sql_query($cccsql2);
if ($cccresult2) {
while ($cccrow2 = mysql_fetch_row($cccresult2)) {
$cccppott = $cccrow2[0];
$cccpcond1 = $cccrow2[1];
$cccpcond2 = $cccrow2[2];
$cccpcond3 = $cccrow2[3];
$cccsql3 = "select page, allsubs from searchpotpages WHERE pott='$cccppott' and search='$cccmsearch"."_INPUT'";
//echo $cccsql3;
$cccresult3 = AW_sql_query($cccsql3);
if ($cccresult3) {
while ($cccrow3 = mysql_fetch_row($cccresult3)) {
$cccppage = $cccrow3[0];
$cccpallsubs = $cccrow3[1];
$cccaktseiteistsubseite=0;
if ($cccpallsubs==1){
if ($level1==$cccppage){
$cccaktseiteistsubseite=1;
}
if ($level2==$cccppage){
$cccaktseiteistsubseite=1;
}
if ($level3==$cccppage){
$cccaktseiteistsubseite=1;
}
if ($level4==$cccppage){
$cccaktseiteistsubseite=1;
}
if ($level5==$cccppage){
$cccaktseiteistsubseite=1;
}
}
if ($cccaktseiteistsubseite==1 or $cccppage==$current_page){
//$cccy=strip_script($cccy);
$cccy1="";
$cccy2="";
$cccy3="";
//---BODY---
$cccpattern="]*?>.*?'si";
$cccy=preg_replace($cccpattern5, "", $cccy);
//---NUR DEFINIERTE SUCHBEREICHE---
$cccsearchgesetzt=0;
$cccgefunden=0;
$cccy_temp=$cccy;
$cccpattern="(.)*";
$cccgefunden=eregi($cccpattern, $cccy_temp, $cccregs2);
if ($cccgefunden>0){
$cccy1=$cccregs2[0];
$cccsearchgesetzt=1;
}
$cccgefunden=0;
$cccpattern="(.)*";
$cccgefunden=eregi($cccpattern, $cccy_temp, $cccregs3);
if ($cccgefunden>0){
$cccy2=$cccregs3[0];
//echo $cccy2;
$cccsearchgesetzt=1;
}
$cccgefunden=0;
$cccpattern="(.)*";
$cccgefunden=eregi($cccpattern, $cccy_temp, $cccregs4);
if ($cccgefunden>0){
$cccy3=$cccregs4[0];
$cccsearchgesetzt=1;
}
if ($cccsearchgesetzt==1){
$cccy=$cccy1.$cccy2.$cccy3;
//echo $cccy;
}
$ccccontent_x=strip_tags($cccy);
$ccccontent_x=addslashes2($ccccontent_x);
$cccmsearch2=strtolower($cccmsearch);
$cccsql4="INSERT INTO search_$cccmsearch2"."_input_$cccppott (page, content";
$cccsql5="DELETE FROM search_$cccmsearch2"."_input_$cccppott WHERE page='$current_page'";
if (strlen($cccpcond1)>0){
$cccsql4=$cccsql4.", $cccpcond1";
}
if (strlen($cccpcond2)>0){
$cccsql4=$cccsql4.", $cccpcond2";
}
if (strlen($cccpcond3)>0){
$cccsql4=$cccsql4.", $cccpcond3";
}
$cccsql4=$cccsql4.") VALUES (\"$current_page\", \"$ccccontent_x\"";
if (strlen($cccpcond1)>0){
$cccpcond1_wert=$$cccpcond1;
$cccsql4=$cccsql4.", \"$cccpcond1_wert\"";
$cccsql5=$cccsql5." AND $cccpcond1=\"$cccpcond1_wert\"";
}
if (strlen($cccpcond2)>0){
$cccpcond2_wert=$$cccpcond2;
$cccsql4=$cccsql4.", \"$cccpcond2_wert\"";
$cccsql5=$cccsql5." AND $cccpcond2=\"$cccpcond2_wert\"";
}
if (strlen($cccpcond3)>0){
$cccpcond3_wert=$$cccpcond3;
$cccsql4=$cccsql4.", \"$cccpcond3_wert\"";
$cccsql5=$cccsql5." AND $cccpcond3=\"$cccpcond3_wert\"";
}
$cccsql4=$cccsql4.")";
//echo $cccsql5."
";
$cccresult5 = AW_sql_query($cccsql5);
if ($cccresult5) {
} else {
echo "".mysql_error($cccconn);
}
$cccresult4 = AW_sql_query($cccsql4);
if ($cccresult4) {
} else {
echo "
".mysql_error($cccconn);
}
}
}
}
}
}
}
}
//---------------user loggen----------------------
if (strlen($user)>0){
if ($user!="PUBLIC"){
$cccsql= "UPDATE puser SET online=NOW() WHERE user='$user'";
sqltodatabase($cccsql);
}
}
mysql_close($cccconn);
writedebuginfo("##############################################END OF PAGE ($cccpage)#######################
");
//unlink("$cccjsfile");
//unlink("$cccstylesfile");
$cccfolder=dir("upload/javascript/");
while($cccentry=$cccfolder->read()){
$cccfilename_total="upload/javascript/".$cccentry;
if (is_file($cccfilename_total)){
if ($cccentry!="." and $cccentry!=".." and $cccentry!="_notes"){
//echo substr($cccentry,7,4)."-". substr($cccjstimestamp,5,4)."
";
$cccvergleichswert=doubleval(substr($cccjstimestamp,5,4))-doubleval(substr($cccentry,7,4));
if ($cccvergleichswert<0){
$cccvergleichswert=$cccvergleichswert*-1;
}
if ($cccvergleichswert>5){
unlink("$cccfilename_total");
}
//echo $cccvergleichswert."
";
}
}
}
$cccfolder->close();
$cccfolder=dir("upload/styles/");
while($cccentry=$cccfolder->read()){
$cccfilename_total="upload/styles/".$cccentry;
if (is_file($cccfilename_total)){
if ($cccentry!="." and $cccentry!=".." and $cccentry!="_notes"){
//echo substr($cccentry,7,4)."-". substr($cccstylestimestamp,5,4)."
";
$cccvergleichswert1=doubleval(substr($cccstylestimestamp,5,4))-doubleval(substr($cccentry,7,4));
//echo $cccvergleichswert1;
if ($cccvergleichswert1<0){
$cccvergleichswert1=$cccvergleichswert1*-1;
}
//echo $cccvergleichswert1;
if ($cccvergleichswert1>5){
unlink("$cccfilename_total");
}
//echo $cccvergleichswert."
";
}
}
}
$cccfolder->close();
}
?>