021-311.60.27"; $msgmail="comenzionline@tritonic.ro"; $formmail="comenzionline@tritonic.ro"; //$formmail="contact@sphera-grup.ro"; //$adminmails=array('editura@tritonic.ro','promovare@tritonic.ro','distributie@tritonic.ro','sorin@tritonic.ro'); //$adminmails=array('editura@tritonic.ro','editura@tritonic.ro','so_cojo@yahoo.ro','so_cojo@yahoo.ro'); $adminmails=array('editura@tritonic.ro','comenzionline@tritonic.ro','hbogdaneditor@gmail.com','cojocarurebeca7@gmail.com'); $contactmail="editura@tritonic.ro"; //$msgmail="contact@sphera-grup.ro"; $dom="www.tritonic.ro"; $path="/home/tritonic/public_html/"; $picpath="poze/"; $autpath="autori/"; $upload="manuscrise/"; $mypasscrypt="14071969"; $sendadmin_flag=true; // 1=se trimite copia comenzii la admin $evshowno=2; //evenimente afisate detaliat //numar produse afisate $prod_per_page=24;//9 $prod_per_line=3; //tva produse $tvaprod=9; $ebk=0; // dimensiuni poze $wmin=100; $wmax=200; $hmin=120; $hmax=250; //culori browse $cb='#FFFFFF'; //culoare border $ccell='#F9F9F9'; // culoare interior $ccol='#FFFFFF'; //culoare celula $cbtm='#FFFFFF';//ciloare celula buton cumparare $chead='#FFE8E8';// culoare head $cbtxt='#930000';//text head //culori cos $coshead='#D7D7D7'; $costext='#930000'; $coscell='#FFFFFF'; $cossel='#FFE8E8'; $cosbrd='#D7D7D7'; // alte culori $tdelcos=7200; //timpul dupa care se sterg produsele ramase in cos $status=array('in curs de procesare','in lucru','expediata','anulata','returnata','indisponibila momentan','plata cu card OK','plata cu card in asteptare...'); $plati=array('Ramburs','Plata cu card OK','Plata cu card nefinalizata','TEST'); $picerr=""; $toplinks=array('BESTSELLER'=>'categorie-BESTSELLER-0-0.htm','NOUTATI'=>'categorie-NOUTATI-1-0.htm','IN CURAND'=>'categorie-IN_CURAND-2-0.htm','PROMOTII'=>'promotii.htm','BLOG'=>'http://tritonicnews.blogspot.com','EVENIMENTE'=>'evenimente.htm'); $luni=array('Ianuarie'=>'1','Februarie'=>'2','Martie'=>'3','Aprilie'=>'4','Mai'=>'5','Iunie'=>'6','Iulie'=>'7','August'=>'8','Septembrie'=>'9','Octombrie'=>'10','Noiembrie'=>'11','Decembrie'=>'12'); //oferta $multibuc=true; //---------------------------------------------- ?>send_page; while (list($key,$val) = each($tpl_array) ) { $template = ereg_replace("\{$key\}",$val,$template); //$template = str_replace("{$key}","$val","$template"); } if(e_logat()){ $template = ereg_replace("\{UCONT\}","contul meu",$template); } else{ $template = ereg_replace("\{UCONT\}","creeaza cont",$template); } $tablecateg=make_categ(); $template = ereg_replace("\{DOMENII\}",$tablecateg,$template); $tablecateg=get_colectie(); $template = ereg_replace("\{COLECTII\}",$tablecateg,$template); $tablecateg=make_top5(); $template = ereg_replace("\{T5\}",$tablecateg,$template); $tablecateg = make_top5_crime(); $template = ereg_replace("\{T5CRIME\}",$tablecateg,$template); $tablecateg = make_top5_academic(); $template = ereg_replace("\{T5ACADEMIC\}",$tablecateg,$template); $tablecateg=make_promo_menu(); $template = ereg_replace("\{MENU\}",$tablecateg,$template); $tablecateg=topbanner(); $template = ereg_replace("\{BANNER\}",$tablecateg,$template); $this->send_page=$template; //return $template; } // end parse_template(); function utime () { $time = explode( " ", microtime()); $usec = (double)$time[0]; $sec = (double)$time[1]; return $sec + $usec; } function page_location ($fpath) { if(empty($fpath)) { $this->error("Cannot open template. Root not valid.",1); return false; } $pointeur=fopen($fpath, "rb"); $contents=fread($pointeur, filesize($fpath)); fclose($pointeur); if( (!$contents) or (empty($contents)) ) { $this->error("set_template() failure: [$filename] $php_errormsg",1); } //echo "$filename"; //return $contents; $this->send_page=$contents; } // end get_template function error ($errorMsg, $die = 0) { $this->ERROR = $errorMsg; echo "ERROR: $this->ERROR
\n"; if ($die == 1) { exit; } return; } // end error() } ?>