", $cccm20); $cccm20 = str_replace( "

", "" , $cccm20); $cccm20 = str_replace( "'", "#####444#####", $cccm20); $cccm20 = str_replace( "´", "#####666#####", $cccm20); $cccm20 = str_replace( "\\r", "#####888#####", $cccm20); $output = str_replace( "\\n", "#####999#####", $cccm20); return $output; } function stripslashes2($input){ $cccm21 = str_replace( "

", "" , $input); $cccm21 = str_replace( "#####444#####", "'", $cccm21); $cccm21 = str_replace( "#####666#####", "´", $cccm21); $cccm21 = str_replace( "#####555#####", "\"", $cccm21); $cccm21 = str_replace( "#####777#####", "\\", $cccm21); $cccm21 = str_replace( "#####888#####", "\\r", $cccm21); $value = str_replace( "#####999#####", "\\n", $cccm21); //$m = str_replace("#####100#####", chr(47), $m); // Slash //$m = str_replace("#####101#####", chr(128), $m); //EURO $value=str_replace("src=\"../", "src=\"",$value); return $value; } function stripslashes3($cccm22){ $cccm22=stripslashes2($cccm22); if (get_magic_quotes_runtime()==1){ $cccm22=stripslashes($cccm22); } else { $cccm22=$cccm22; //echo "$cccyachse, $cccxachse: $cccValue
"; } $cccm22=str_replace(chr(128), "€", $cccm22); $cccm22=str_replace(chr(150), "-", $cccm22); $cccm22=str_replace("–", "-", $cccm22); $cccm22=str_replace(chr(151), "-", $cccm22); //$cccm22=str_replace("&", "&", $cccm22); $cccm22=str_replace("\"", """, $cccm22); $cccm22=str_replace("<", "<", $cccm22); $cccm22=str_replace(">", ">", $cccm22); return $cccm22; } function getreadabletimestamp(){ $timemicro=microtime(); $timeparts = explode(' ',$timemicro); $rtime = $timeparts[1].substr($timeparts[0],1); return $rtime; } $performance_start_timestamp = getreadabletimestamp(); function performance_timestamp($text){ global $ccctimeconsumedhtml, $performance_start_timestamp; if(!isset($ccctimeconsumedhtml)){ $ccctimeconsumedhtml=""; } $this_start_timestamp = getreadabletimestamp(); if((@$_GET["ccccontainer"]=="edit") or (@$_POST["ccccontainer"]=="edit")){ $ccctimeconsumedhtml.=""; } } if(isset($_GET["constructioneruri7831536"])){ $constructioneruri7831536=$_GET["constructioneruri7831536"]; if(isset($preferences["url_rewrite_ending"])){ if(substr($constructioneruri7831536,-strlen($preferences["url_rewrite_ending"]))==$preferences["url_rewrite_ending"]){ $constructioneruri7831536=substr($constructioneruri7831536,0,-strlen($preferences["url_rewrite_ending"])); } } $constructioneruri7831536=str_replace("l--","set_language--",$constructioneruri7831536); $constructioneruri7831536=str_replace("p--","cccpage--",$constructioneruri7831536); //$constructioneruri7831536=str_replace("s.","project_",$constructioneruri7831536); $constructionerurireg=explode("__", $constructioneruri7831536); //echo $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; } unset($_GET["constructioneruri7831536"]); performance_timestamp("URI decoding"); } if(isset($_GET["cccpage"]) or isset($_POST["cccpage"])){ if(isset($_POST["cccpage"])){ $_GET["cccpage"]=$_POST["cccpage"]; } $_GET["cccpage"]=str_replace("sysshopportal_","project_",$_GET["cccpage"]); $_GET["cccpage"]=str_replace("sysshop_","project_",$_GET["cccpage"]); $_GET["cccpage"]=str_replace("x3shopportal_","project_",$_GET["cccpage"]); $_GET["cccpage"]=str_replace("x3shop_","project_",$_GET["cccpage"]); if(strlen($_GET["cccpage"])==0){ $_GET["cccpage"]=$preferences["startpage"]; } $cccpage=$_GET["cccpage"]; } else { $cccpage=$preferences["startpage"]; } performance_timestamp("Init"); define("MAIN_INDEX",true); define("INCLUDE_FROM_FILE","index.php"); require ("config/config.inc.php");fileaccesscounter("config/config.inc.php"); define("SERVER_SYS_PATH", $SYS_FOLDER[$THIS_IS]."/"); require (SERVER_SYS_PATH."classes/System/Classes.php");fileaccesscounter(SERVER_SYS_PATH."classes/System/Classes.php"); performance_timestamp("Classes"); require (SERVER_SYS_PATH."p0080.php");fileaccesscounter(SERVER_SYS_PATH."p0080.php"); require (SERVER_SYS_PATH."p0100.php");fileaccesscounter(SERVER_SYS_PATH."p0100.php"); if(SURFING=="back"){ require (SERVER_SYS_PATH."TableEditor/TableEditorOverview.php");fileaccesscounter(SERVER_SYS_PATH."TableEditor/TableEditorOverview.php"); performance_timestamp("TableEditorOverview (include)"); } //set mode: /*if (isset($cccdirectlogin)) { $bologin=component_load("BackofficeLogin"); $bologin->CheckLogin($cccdirectlogin, $cccdirectpasswd, "direct"); }*/ if (isset($_SERVER['argv'][1])) { if($_SERVER['argv'][1]=="directlogin") { $cccpage=$_SERVER['argv'][2]; $bologin=component_load("BackofficeLogin"); $bologin->CheckLogin($_SERVER['argv'][3], md5($_SERVER['argv'][4]), "direct"); } } if(!isset($preferences["performance_time_echo"])){ $preferences["performance_time_echo"]=false; } if(!isset($ccccontainer)){ $ccccontainer=""; } if(file_exists("config/colors.php")){ include("config/colors.php");fileaccesscounter("config/colors.php"); } //echo $ccccontainer; if($ccccontainer!="edit"){ //echo $set_mode; if(isset($set_mode)){ $_SESSION["mode_memory"]=$set_mode; } if(!isset($_SESSION["mode_memory"])){ $_SESSION["mode_memory"]="view"; } $mode="view"; $_SESSION["mode"]="view"; } else { //echo $cccworkmode; //echo $_SESSION["mode_memory"]; $_SESSION["mode"]=$_SESSION["mode_memory"]; $mode=$_SESSION["mode_memory"]; } if(!isset($formerconstruction)){ $formerconstruction=""; } //Table Editor SAVE: if(!isset($TEE_save)){ $TEE_save="FALSE"; } if($TEE_save=="TRUE"){ include(SERVER_SYS_PATH."TableEditor/TableEditorEdit_Save.php");fileaccesscounter(SERVER_SYS_PATH."TableEditor/TableEditorEdit_Save.php"); } if(isset($newlabel)){ //echo "Key: $labelkey NewLabel: $newlabel Typ: $labeltype".BR; $OBJ["Labels"]->save_key($labelkey, $newlabel); } performance_timestamp("Init (first includes)"); $OBJ["Labels"]->load($language); global $cccactioncomponent; if(isset($cccactioncomponent)){ if(strlen($cccactioncomponent)>0){ $myactionarray=$_SESSION["actionmemory"]; if(isset($myactionarray[$cccactioncomponent])){ $cccactonreg=explode("|",$myactionarray[$cccactioncomponent]); if(isset($cccactonreg[2])){ component($cccactonreg[0], $cccactonreg[1], $cccactonreg[2]); } else { component($cccactonreg[0], $cccactonreg[1]); } } performance_timestamp("Action-Component"); } //$ALLPAGES=$OBJ["Pages"]->get_all_pages(); } if(strlen($formerconstruction)<=0){ if($underconstruction){ $OBJ["Session"]->set_value("formerconstruction","TRUE"); }else{ $OBJ["Session"]->set_value("formerconstruction","FALSE"); } } if(!isset($cccpage)){ $cccpage=$preferences["startpage"]; } if(!isset($ALLPAGES["$cccpage"])){ $cccpage=$preferences["startpage"]; } if (strlen($mode)==0){ if ($BACKOFFICE){ $mode="view"; } else { $mode="public"; } } if (!isset($mode)){$mode="view";} performance_timestamp("Includes - beforeconstruction (before)"); //---------------php library includes if ($mode=="view" or $mode=="public" or $mode=="content" or $mode=="backoffice" or $mode=="config"){ $cccincludephppaths=$OBJ["Includes"]->get_php_include_paths("beforeconstruction", $location); foreach ($cccincludephppaths as $key => $value){ if(file_exists($value)){ include($value);fileaccesscounter($value); } } } performance_timestamp("Includes - beforeconstruction (after)"); if (!isset($target)){$target="page";} //LADEN DER PAGE - EINS: $cccpagereg=explode("_",$cccpage); $onlymodule=$cccpagereg[0]; if(!isset($cccpagereg[1])){ echo "ERROR: PAGE \"$cccpage\" DOES NOT EXIST!"; die; } $only_page_id=$cccpagereg[1]; if ($mode=="view" or $mode=="public" or $mode=="content" or $mode=="config"){ $filepath=MAIN_PATH.$onlymodule."/pages/cb$only_page_id.php"; if(file_exists($filepath)){ include($filepath);fileaccesscounter($filepath); } } if(strlen($ALLPAGES[$cccpage]["redirect"])>0){ //LADEN DER PAGE - ZWEI: $cccpage=$ALLPAGES[$cccpage]["redirect"]; //echo $cccpage; $cccpagereg=explode("_",$cccpage); $onlymodule=$cccpagereg[0]; $only_page_id=$cccpagereg[1]; if ($mode=="view" or $mode=="public" or $mode=="content" or $mode=="config"){ $filepath=MAIN_PATH.$onlymodule."/pages/cb$only_page_id.php"; if(file_exists($filepath)){ include($filepath);fileaccesscounter($filepath); } } } performance_timestamp("Pages - CodeBefore"); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //HIER STEHT SEITE FEST: if($cccpage=="sys_bo298" or $cccpage=="sys_alltablesoverview" or $cccpage=="sys_richtexteditor" or $cccpage=="project_knowhow"){ $ccccontainer=""; } $ccclevel1=""; $ccclevel2=""; $ccclevel3=""; $ccclevel4=""; $ccclevel5=""; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; if(strlen($ALLPAGES["$cccpage"]["parent"])==0 or ($ALLPAGES["$cccpage"]["parent"]=="back")){ $ccclevel1="$cccpage"; $ccclevel2=""; $ccclevel3=""; $ccclevel4=""; $ccclevel5=""; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; } else { $ppage1=$ALLPAGES["$cccpage"]["parent"]; if(strlen($ALLPAGES["$ppage1"]["parent"])==0 or ($ALLPAGES["$ppage1"]["parent"]=="back")){ $ccclevel1="$ppage1"; $ccclevel2="$cccpage"; $ccclevel3=""; $ccclevel4=""; $ccclevel5=""; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; } else { $ppage2=$ALLPAGES["$ppage1"]["parent"]; if(strlen($ALLPAGES["$ppage2"]["parent"])==0 or ($ALLPAGES["$ppage2"]["parent"]=="back")){ $ccclevel1="$ppage2"; $ccclevel2="$ppage1"; $ccclevel3="$cccpage"; $ccclevel4=""; $ccclevel5=""; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; } else { $ppage3=$ALLPAGES["$ppage2"]["parent"]; if(strlen($ALLPAGES["$ppage3"]["parent"])==0 or ($ALLPAGES["$ppage3"]["parent"]=="back")){ $ccclevel1="$ppage3"; $ccclevel2="$ppage2"; $ccclevel3="$ppage1"; $ccclevel4="$cccpage"; $ccclevel5=""; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; } else { $ppage4=$ALLPAGES["$ppage3"]["parent"]; if(strlen($ALLPAGES["$ppage4"]["parent"])==0 or ($ALLPAGES["$ppage4"]["parent"]=="back")){ $ccclevel1="$ppage4"; $ccclevel2="$ppage3"; $ccclevel3="$ppage2"; $ccclevel4="$ppage1"; $ccclevel5="$cccpage"; $ccclevel6=""; $ccclevel7=""; $ccclevel8=""; } else { $ppage5=$ALLPAGES["$ppage4"]["parent"]; if(strlen($ALLPAGES["$ppage5"]["parent"])==0 or ($ALLPAGES["$ppage5"]["parent"]=="back")){ $ccclevel1="$ppage5"; $ccclevel2="$ppage4"; $ccclevel3="$ppage3"; $ccclevel4="$ppage2"; $ccclevel5="$ppage1"; $ccclevel6="$cccpage"; $ccclevel7=""; $ccclevel8=""; } else { $ppage6=$ALLPAGES["$ppage5"]["parent"]; if(strlen($ALLPAGES["$ppage6"]["parent"])==0 or ($ALLPAGES["$ppage6"]["parent"]=="back")){ $ccclevel1="$ppage6"; $ccclevel2="$ppage5"; $ccclevel3="$ppage4"; $ccclevel4="$ppage3"; $ccclevel5="$ppage2"; $ccclevel6="$ppage1"; $ccclevel7="$cccpage"; $ccclevel8=""; } else { $ppage7=$ALLPAGES["$ppage6"]["parent"]; if(strlen($ALLPAGES["$ppage7"]["parent"])==0 or ($ALLPAGES["$ppage7"]["parent"]=="back")){ $ccclevel1="$ppage7"; $ccclevel2="$ppage6"; $ccclevel3="$ppage5"; $ccclevel4="$ppage4"; $ccclevel5="$ppage3"; $ccclevel6="$ppage2"; $ccclevel7="$ppage1"; $ccclevel8="$cccpage"; } else { $ppage7=$ALLPAGES["$ppage6"]["parent"]; $ccclevel1="$ppage7"; $ccclevel2="$ppage6"; $ccclevel3="$ppage5"; $ccclevel4="$ppage4"; $ccclevel5="$ppage3"; $ccclevel6="$ppage2"; $ccclevel7="$ppage1"; $ccclevel8="$cccpage"; } } } } } } } } //echo "1:$ccclevel1 2:$ccclevel2 3:$ccclevel3 4:$ccclevel4 5:$ccclevel5 "; $cccpage_reg=explode("_",$cccpage); $location=$cccpage_reg[0]; performance_timestamp("Levels (Backoffice: Labels and Pages Reload)"); $OBJ["Security"]->check_location($location); $OBJ["Security"]->check_template($ALLPAGES[$cccpage]["template"]); define("BASIC_URL", URL."index.php?cccpage=$cccpage"); $_SESSION["current_page"]=$cccpage; //$OBJ["MetaTags"]->load($cccpage); //echo $ALLPAGES[$cccpage]["template"]; //echo "template".$ALLPAGES[$cccpage]["template"]; $ccctemplatereg=explode(";",$ALLPAGES[$cccpage]["template"]); $ccctemplateid=$ccctemplatereg[1]; $template_html=$OBJ["Templates"]->get_template_content($ccctemplateid); if($mode=="integration"){ $additionalstyle=" "; } else { $additionalstyle=""; } //add constructioner css + javascript: $pattern="'get(); $sitestylecomplete=$additionalstyle.$ccccsspath; global $newwin; if($ccccontainer=="edit"){ $replacement=" $cxvalue){ foreach($components2careas[$cxpage] as $cxcarea => $cxcomponent){ $COMPONENTS2CAREAS["sys"][$cxpage][$cxcarea]=$cxcomponent; //echo $cxcarea." - ".$cxcomponent.BR; } } $cccfilepath="project/pages/components2careas.php"; unset($components2careas); $components2careas=array(); if(file_exists($cccfilepath)){ include($cccfilepath); } foreach($components2careas as $cxpage => $cxvalue){ foreach($components2careas[$cxpage] as $cxcarea => $cxcomponent){ $COMPONENTS2CAREAS["project"][$cxpage][$cxcarea]=$cxcomponent; //echo $cxpage." - ".$cxcomponent.BR; } } } $all_careas=$OBJ["Templates"]->get_careas_from_html($template_html); performance_timestamp("Template load and Security Checks"); if($all_careas){ foreach ($all_careas as $key => $carea_id){ if(CONSTRUCTIONER_CAREASYSTEM==1){ $THIS_AREA=""; //$carea_id=$value; $includepath=""; $php_code_page=""; $php_code_template=""; $php_code_array=$OBJ["Templates"]->get_carea_content($ALLPAGES[$cccpage]["template"],$cccpage,$carea_id); //page $php_code_page=$php_code_array[0]; $php_code_template=$php_code_array[1]; $includepath=$php_code_array[2]; $template_id_reg=explode(".",$ALLPAGES[$cccpage]["template"]); $only_template_id=$template_id_reg[0]; $cccfilename=$only_template_id."_".$carea_id."_".$only_page_id.".php"; if(strlen($php_code_page)>0){ $php_code=$php_code_page; $includepath=$php_code_array[3]; } else { $php_code=$php_code_template; $includepath=$php_code_array[2]; } $config_link=""; //echo $_SESSION["mode_memory"].$mode; if ($mode=="view" or $mode=="public" or $mode=="content" or $mode=="backoffice" or $mode=="config"){ $replacement=""; $THIS_AREA=""; if(strlen($includepath)>0){ //include functions: include($includepath);fileaccesscounter($includepath); } $replacement=$THIS_AREA; } elseif ($mode=="integration"){ $replacement=""; $link_html=""; $THIS_AREA=""; //$link=$tmp_obj->config_link($page_object_id); //echo "JJJ$link".BR; //$alt=AW_backoffice_get_label("masterobject",$object_category).": $masterobject_id :: $page_object_id - Konfigurieren"; $link=""; $alt=""; if (strlen($config_link)>0){ $link_html="$alt"; } $alt="C-Area: $carea_id - Verknüpfung bearbeiten"; if (strlen($php_code)>0){ } else { $alt="C-Area: $carea_id - Verknüpfung erstellen"; $image="phpedit.gif"; } $OBJ["StringConversion"]=component_load("StringConversion"); $php_code_page=$OBJ["StringConversion"]->special_char_2html($php_code_page); $php_code_template=$OBJ["StringConversion"]->special_char_2html($php_code_template); $php_code_page=str_replace("'","´",$php_code_page); $php_code_template=str_replace("'","´",$php_code_template); if(strlen($php_code_page)==0){ if(strlen($php_code_template)==0){ $codetoshow=""; $image_page_edit="carea_php_page_EMPTY.gif"; $image_template_edit="carea_php_template_EMPTY.gif"; } else { $codetoshow=$php_code_template; $pageortemplate="Template:"; $image_page_edit="carea_php_page_EMPTY.gif"; $image_template_edit="carea_php_template_FULL.gif"; } } else { if(strlen($php_code_template)==0){ $image_page_edit="carea_php_page_FULL.gif"; $image_template_edit="carea_php_template_EMPTY.gif"; } else { $image_page_edit="carea_php_page_FULL.gif"; $image_template_edit="carea_php_template_FULL.gif"; } $codetoshow=$php_code_page; $pageortemplate="Page:"; $image="phpedit.gif"; } $config_html=""; $replacement="
$text".number_format(round(($this_start_timestamp-$performance_start_timestamp),3),3,",",".")."
$carea_id
$php_code_page $php_code_template
"; $replacement=$OBJ["DesignBoxes"]->get_HTML_box($replacement,"nav"); } $pattern="'.*?'si"; $template_html=preg_replace($pattern,$replacement,$template_html); performance_timestamp("C-AREA $carea_id"); } else { $THIS_AREA=""; $replacement=""; $appliedcomponent=""; //$COMPONENTS2CAREAS["project"][$cxpage][$cxcarea]=$cxcomponent; //$COMPONENTSARRAY if(isset($COMPONENTS2CAREAS["project"][$cccpage]["project;".$carea_id])){ $appliedcomponent=$COMPONENTS2CAREAS["project"][$cccpage]["project;".$carea_id]; $inpage=true; }elseif(isset($COMPONENTS2CAREAS["sys"][$cccpage]["sys;".$carea_id])){ $appliedcomponent=$COMPONENTS2CAREAS["sys"][$cccpage]["sys;".$carea_id]; $inpage=true; }elseif(isset($COMPONENTS2CAREAS["project"]["*"]["project;".$carea_id])){ $appliedcomponent=$COMPONENTS2CAREAS["project"]["*"]["project;".$carea_id]; $inpage=false; }elseif(isset($COMPONENTS2CAREAS["sys"]["*"]["sys;".$carea_id])){ $appliedcomponent=$COMPONENTS2CAREAS["sys"]["*"]["sys;".$carea_id]; $inpage=false; } $APPLIED_COMPONENT=$appliedcomponent; $THIS_CAREA_ID=$carea_id; if(strlen($appliedcomponent)>0){ $cxcomplocation=$COMPONENTSLOCATION[$appliedcomponent]; //echo $cxcomplocation; //die; //load config for component if(isset($config)){ unset($config); } $found_default_file=false; if(file_exists(SERVER_SYS_PATH."/componentsets/default/$appliedcomponent.php")){ include(SERVER_SYS_PATH."/componentsets/default/$appliedcomponent.php"); $found_default_file=true; } if(file_exists(MAIN_PATH."project/componentsets/default/$appliedcomponent.php")){ include(MAIN_PATH."project/componentsets/default/$appliedcomponent.php"); $found_default_file=true; } if($found_default_file){ //Save //componentset for this cccpage-carea if($inpage){ $cccprefix="$cccpage"."_".$carea_id."_"; }else{ $cccprefix="global"."_".$carea_id."_"; } $cccsyspath=SERVER_SYS_PATH."componentsets/".$cccprefix."$appliedcomponent.php"; $cccprojectpath=MAIN_PATH."project/componentsets/".$cccprefix."$appliedcomponent.php"; //echo $cccprojectpath.BR; if(file_exists($cccsyspath)){ include($cccsyspath); } if(file_exists($cccprojectpath)){ include($cccprojectpath); } } //echo $appliedcomponent." - ".$cxcomplocation.BR; include($cxcomplocation); if(isset($config)){ unset($config); } } $replacement=$THIS_AREA; $pattern="'.*?'si"; $template_html=preg_replace($pattern,$replacement,$template_html); performance_timestamp("C-AREA $carea_id"); } } } $CCCHTMLOUTPUT=$template_html; performance_timestamp("Carea Build"); $javascript=""; if ($BACKOFFICE and $ccccontainer=="edit"){ //set page and template in upper frame: //echo $mode; if(!isset($output)){ $output=""; } $javascript=""; //drag and drop: $pattern="''si"; $cccerfolgreich=preg_match_all($pattern, $CCCHTMLOUTPUT, $cccregs); if ($cccerfolgreich){ $zahler=0; if(count($cccregs)>0){ foreach($cccregs as $key => $value){ foreach($value as $key2 => $value2){ $totalbodytag=$value2; } } } } } //echo $CCCHTMLOUTPUT; //die; //$CCCHTMLOUTPUT=str_replace("","",$CCCHTMLOUTPUT); //$CCCHTMLOUTPUT=str_replace("",$javascript."",$CCCHTMLOUTPUT); //---------------php library includes $cccincludephppaths=$OBJ["Includes"]->get_php_include_paths("beforeoutput", $location); foreach ($cccincludephppaths as $key => $value){ if(file_exists($value)){ include($value);fileaccesscounter($value); } } performance_timestamp("Includes - beforeoutput"); $jsaction=""; if($preferences["javascript_check"]==true){ if($cccpage==$preferences["startpage"]){ //var_dump( isset($_GET['javascript']) ); if(strlen($jsconf)<=0){ $jsaction=" "; } } } $constrmetatags=$OBJ["MetaTags"]->load($cccpage); $PHPVersion = phpversion(); if(substr($PHPVersion,0,1)=="4"){ $hposarray=explode("",strtolower($CCCHTMLOUTPUT)); if(isset($hposarray[1])){ $hposfirst=$hposarray[0]; $hpos=strlen($hposfirst); } else { $hpos=0; } } else { $hpos=stripos($CCCHTMLOUTPUT,""); } //echo "POS:".substr($CCCHTMLOUTPUT,0,$hpos)."ENDE";BR; $teilA=substr($CCCHTMLOUTPUT,0,$hpos); $teilB=substr($CCCHTMLOUTPUT,$hpos); $CCCHTMLOUTPUT=$teilA.$constrmetatags.$sitestylecomplete.$jsaction.$teilB; performance_timestamp("MetaTag load"); if(!$BACKOFFICE){ //$CCCHTMLOUTPUT=f0300_parse_url($CCCHTMLOUTPUT); if($underconstruction==TRUE AND $formerconstruction=="FALSE"){ //echo "CASE 1: BIN EINGELOGGT UND AUF FALSE"; if(strlen($nowstamp)>0){ $neuezeit=(60*3)+$nowstamp; $jetztzeit=mktime(); $differencetime=$neuezeit-$jetztzeit; if($neuezeit<=$jetztzeit){ $filecontent=implode("",file("underconstruction.html")); $CCCHTMLOUTPUT=$filecontent; }else{ if($language=="de"){ echo "

Die Website wird in $differencetime Sekunden deaktiviert.

"; }else{ echo "

The Website will be deactivated in $differencetime seconds

"; } } }else{ if($language=="de"){ $constructionermessage="ACHTUNG: Aufgrund von Wartungsarbeiten wird die Website in 3 Minuten deaktiviert. '+String.fromCharCode(10)+'Bitte schließen Sie Ihre Arbeiten ab und loggen Sie sich aus."; }else{ $constructionermessage="ATTENTION: Due to maintenance work, the Website will be deactivated after 3 minutes.'+String.fromCharCode(10)+'Please finish your work and log out."; } echo " "; $neuezeit=(60*3)+$nowstamp; $jetztzeit=mktime(); $OBJ["Session"]->set_value("nowstamp",$jetztzeit); $neuezeit=(60*3)+$nowstamp; $differencetime=$neuezeit-$jetztzeit; if($language=="de"){ echo "

Die Website wird in $differencetime Sekunden deaktiviert.

"; }else{ echo "

The Website will be deactivated in $differencetime seconds

"; } } }elseif($underconstruction==TRUE AND $formerconstruction=="TRUE"){ //echo "CASE 2: STARTE NEU"; $filecontent=implode("",file("sys/underconstruction.html")); $CCCHTMLOUTPUT=$filecontent; } if(!isset($preferences["AntiSpamCrawler"])){ $preferences["AntiSpamCrawler"]=false; } if($preferences["AntiSpamCrawler"]){ $OBJ["AntiSpam"]=component_load("AntiSpam"); $CCCHTMLOUTPUT=$OBJ["AntiSpam"]->AntiMailCrawler($CCCHTMLOUTPUT); } if($preferences["project_type"]!="indigobase"){ $OBJ["WAI"]=component_load("WAI"); $CCCHTMLOUTPUT=$OBJ["WAI"]->handicapped_wai($CCCHTMLOUTPUT); performance_timestamp("WAI and AntiSpam - AntiMailCrawler"); } } //$CCCHTMLOUTPUT=str_replace(URL."media","media",$CCCHTMLOUTPUT); //$CCCHTMLOUTPUT=str_replace("media",URL."media",$CCCHTMLOUTPUT); //$CCCHTMLOUTPUT=str_replace(URL."sysplus","sysplus",$CCCHTMLOUTPUT); //$CCCHTMLOUTPUT=str_replace("sysplus",URL."sysplus",$CCCHTMLOUTPUT); //=========================================== //FIL THE SEARCHPOT ONLY IN CONTENT EDIT MODE //=========================================== if($mode=="content"){ $forsearch=$CCCHTMLOUTPUT; $cccpattern5="']*?>.*?'si"; $cccy=preg_replace($cccpattern5, "", $forsearch); $cccy=str_replace(chr(13).chr(10),"",$cccy); $OBJ["StringConversion"]=component_load("StringConversion"); $cccy1=$OBJ["StringConversion"]->addslashes($cccy); $muster="(.)*"; $cccgefunden=eregi($muster, $cccy, $cccregs2); if ($cccgefunden>0){ $cccy1=$cccregs2[0]; $cccy1=strip_tags($cccy1); $cccy1=$OBJ["StringConversion"]->stripslashes($cccy1); $cccy1=str_replace("'","\'",$cccy1); $cccy1=str_replace("\"","\'",$cccy1); $sqlgetcontent="SELECT id from sys_searchcontents WHERE page='$cccpage'"; $cccresult = sql_query($sqlgetcontent); if ($cccresult) { while($row=mysql_fetch_assoc($cccresult)){ $thisid = $row["id"]; } $SQLUPDATESEARCH="UPDATE sys_searchcontents set content$language='$cccy1' WHERE page='$cccpage'"; $cccresult = sql_query($SQLUPDATESEARCH); }else{ $SQLINSERTSEARCH="INSERT INTO sys_searchcontents set content$language='$cccy1', page='$cccpage'"; $cccresult = sql_query($SQLINSERTSEARCH); } //echo $cccy1.BR; $cccsearchgesetzt=1; } } if(!isset($preferences["externalstatistics"])){ $preferences["externalstatistics"]=false; } if($preferences["externalstatistics"]){ if(isset($_SERVER["SCRIPT_URI"])){ if(substr(strtolower(trim($_SERVER["SCRIPT_URI"])),0,5)=="https"){ if(isset($preferences["externalstatistics_code_ssl"])){ if(strlen($preferences["externalstatistics_code_ssl"])>=1){ $CCCHTMLOUTPUT.=$preferences["externalstatistics_code_ssl"]; } } } else{ if(isset($preferences["externalstatistics_code"])){ if(strlen($preferences["externalstatistics_code"])>=1){ $CCCHTMLOUTPUT.=$preferences["externalstatistics_code"]; } } } } else{ if(isset($preferences["externalstatistics_code"])){ if(strlen($preferences["externalstatistics_code"])>=1){ $CCCHTMLOUTPUT.=$preferences["externalstatistics_code"]; } } } } if(isset($preferences["external_statistics"])){ foreach ($preferences["external_statistics"] as $externalstatistics_module => $value){ if($preferences["external_statistics"][$externalstatistics_module]["active"]){ include($preferences["external_statistics"][$externalstatistics_module]["includefile"]); fileaccesscounter($preferences["external_statistics"][$externalstatistics_module]["includefile"]); } } } //======================================================== //THE LABLES FOR LABELS WITHIN TITLE TAGS; ALT TAGS, ETC... //======================================================== if($BACKOFFICE and $ccccontainer=="edit"){ $javascript_container=""; $CCCHTMLOUTPUT=$OBJ["URI"]->container($CCCHTMLOUTPUT); //echo $cccpage.BR; if($cccpage!="sys_bodatabaseedit"){ $linkcomp="Pages"; $linkapp="set_ccceditpage=$cccpage&set_mode"; //$linkcomp="Database"; //$linkapp="set_table_id=$table_id&set_cccdatabasemode"; $javascript_container=""; } $CCCHTMLOUTPUT=$CCCHTMLOUTPUT.$javascript_container; if($mode=="content"){ $hiddenlabeltable=$OBJ["Labels"]->edithiddenlabels(); $CCCHTMLOUTPUT=$CCCHTMLOUTPUT.$hiddenlabeltable; } $OBJ["Session"]->set_value("syspageafterlogin",$cccpage); if(SURFING=="front"){ $OBJ["Session"]->set_value("remember_projectpage",$cccpage); } else { $OBJ["Session"]->set_value("remember_backofficepage",$cccpage); } } elseif($cccpage=="sys_bodatabaseedit"){ //echo "sss"; $OBJ["Session"]->set_value("syspageafterlogin",$cccpage); $OBJ["Session"]->set_value("remember_backofficepage",$cccpage); $javascript_container=" "; $CCCHTMLOUTPUT=$CCCHTMLOUTPUT.$javascript_container; } performance_timestamp("Backoffice TopInfo Replacement"); if(SURFING=="front" and ($preferences["url_setlanguage"] or $preferences["url_rewrite"])){ if(!isset($URIMANIPULATION)){ $URIMANIPULATION=true; } if($URIMANIPULATION){ $OBJ["URI"]=component_load("URI"); $CCCHTMLOUTPUT=$OBJ["URI"]->parse_url($CCCHTMLOUTPUT); performance_timestamp("URI manipulation"); } } if($preferences["statistic_recording"]){ //echo "DRIN:".$BACKOFFICE.$preferences["statistic_bo_recording"]; $OBJ["StatisticsRecording"]=component_load("StatisticsRecording"); if(SURFING=="front" and (!$BACKOFFICE or ($BACKOFFICE and $preferences["statistic_bo_recording"]))){ if(!$statistic_userinfo_update_complete){ $OBJ["StatisticsRecording"]->statisticrecording_firstrecord(); } //if(!$statistic_javascript_complete){ $javascript_stat=$OBJ["StatisticsRecording"]->statisticsrecording_javascriptlink(); //$CCCHTMLOUTPUT=str_replace("",$javascript_stat."",$CCCHTMLOUTPUT); $CCCHTMLOUTPUT=$CCCHTMLOUTPUT.$javascript_stat; //} performance_timestamp("Statistic (first record & Javascript)"); } } if($cccpage=="sys_bo311" OR $cccpage=="sys_bodatabaseedit" OR $cccpage=="sys_bo252"){ $thischaracterset=""; $CCCHTMLOUTPUT=str_replace("","$thischaracterset",$CCCHTMLOUTPUT); }else{ if(SURFING=="back"){ $thischaracterset=""; $CCCHTMLOUTPUT=str_replace("","$thischaracterset",$CCCHTMLOUTPUT); } } echo $CCCHTMLOUTPUT.$javascript; @flush(); performance_timestamp("Output to WebServer"); //---------------php library includes $cccincludephppaths=$OBJ["Includes"]->get_php_include_paths("afteroutput", $location); foreach ($cccincludephppaths as $key => $value){ if(file_exists($value)){ include($value);fileaccesscounter($value); } } performance_timestamp("Includes - afteroutput"); if($preferences["statistic_recording"]){ //echo $BACKOFFICE.$preferences["statistic_bo_recording"]; if(SURFING=="front" and (!$BACKOFFICE or ($BACKOFFICE and $preferences["statistic_bo_recording"]))){ $OBJ["StatisticsRecording"]->execute_statisticsrecording(); } if($cccpage!="sys_statistic"){ $OBJ["StatisticsRecording"]->datareorg(); } } performance_timestamp("StatisticsRecording - record and datareorg"); if($ccccontainer=="edit"){ $performance_end_timestamp = getreadabletimestamp(); $timetravel=number_format(round(($performance_end_timestamp-$performance_start_timestamp),3),3,",","."); if(!isset($preferences["sql_show_log"])){ $preferences["sql_show_log"]=false; } $ccctimeconsumedhtml.=""; if($preferences["sql_show_log"]){ $cccsql_log_html.=""; $ccctimeconsumedhtml.="
SQL:
".$cccsql_log_html; } $ccctimeconsumedhtmljs=" if (parent.getelementtop){ obj2=parent.getelementtop('techinfos'); //alert(obj2.innerHTML); obj2.innerHTML=\"$ccctimeconsumedhtml\"; } "; if (!isset($cccqueryzaehler)){ $cccqueryzaehler=0; } //echo $ccctimeconsumedhtmljs; $javascripttimetravel=" "; echo $javascripttimetravel; } //show_source("index.php"); function list_array ($array) { while (list ($key, $value) = each ($array)) { $str .= "$key: $value
\n"; } return $str; } @mysql_close($cccconn); //echo "$HTTP_USER_AGENT
\n"; //$browser = get_browser(); //echo list_array ((array) $browser); ?>