//+++++++++++++++++++++Constructioner X6 ++++++++++++++++++++++++++++
// (c) by Artware Multimedia GmbH
//-------------------------------------------------------------------
$cccfileaccesscounter=0;
$cccsql_log_html="";
function fileaccesscounter($path){
global $cccfileaccesscounter;
$cccfileaccesscounter++;
}
//preferences:
$filepath="config/general_preferences.php";
if(file_exists($filepath)){
include($filepath);
fileaccesscounter($filepath);
}
$filepath="config/project_preferences.php";
if(file_exists($filepath)){
include($filepath);
fileaccesscounter($filepath);
}
function addslashes2($input){
$cccm20=stripslashes($input);
$cccm20=str_replace(""", "\"", $cccm20);
$cccm20 = str_replace( "\"", "#####555#####", $cccm20);
$cccm20 = str_replace( "\\", "#####777#####", $cccm20);
$cccm20=str_replace("&", "&", $cccm20);
$cccm20=str_replace("<", "<", $cccm20);
$cccm20=str_replace(">", ">", $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.="$text | ".number_format(round(($this_start_timestamp-$performance_start_timestamp),3),3,",",".")." |
";
}
}
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="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="
$carea_id |
|
";
$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("