Hello, It's carlos ...www.premium-sponsor.com (Sharing Knowdge!)
| From: | Carlos Anselmo Dias | Date: | Wed, 04 May 2011 14:08:14 +0000 |
| Subject: | Hello, It's carlos ...www.premium-sponsor.com (Sharing Knowdge!) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10949@lists.php.net to get a copy of this message | ||
The first version will be donne using php4 ... the next one probably with php6 ...i prefer to
wait...
You Know where to find me...
I'll start looking for one dedicated server in the nearly futur/next week(s)... it's being
prepared with the necessary flexibility to grown up... later add servers,etc,etc...
Kind regards,
Carlos
<?
//delete h:/programas/easyphp1-8/www/www.premium-sponsor.com ereg replace at the end
//WHEN TRACKING IS ACTIVATED->Prepare session of entrance ... with the necessary informations ...
referer-1,ip,etc(CONSIDER THE VARIABLE IN THE ACCEPTABLE ARRAY OF VARIABLES)... and associate the
session of entrance to the session out ...(log at txt files and db)
//lifetime of template@cache
$_configuration_variables_["_main_section_"]="adult";
$_configuration_variables_["_sub_sections_"]=array("videos"=>"Movies","websites"=>"WebSites","galleries"=>"Galleries","partner_links"=>"");
$_configuration_variables_["_tmp_path_to_update_"]=$_SERVER['DOCUMENT_ROOT']."/www.premium-sponsor.com";
$_configuration_variables_["_cache_validation_"]="no"; //when yes do not forget
to remove the space from _end_php_tag_
$_configuration_variables_["_cache_tracking_"]="";
$_configuration_variables_["_str_first_var_cache_tracking_"]="&";
//$_configuration_variables_["_str_first_var_cache_tracking_"]=(empty($_REQUEST["vte"])
? "?vte=0&" : "?vte=1&");
$_configuration_variables_["_character_url_enclosed_"]='"';
$_configuration_variables_["_start_php_tag_"]='<?php ';
$_configuration_variables_["_end_php_tag_"]=' ? >';
if($_REQUEST["vte"]==1){//engine for tracking activated
$_configuration_variables_["_cache_tracking_"]="/tracking";
$_configuration_variables_["_variables_tracking_engine_"]["_flag_"]="yes";
$_configuration_variables_["_variables_tracking_engine_"]["_acceptable_vars_"]=array("vte","srcid","cid","tck1","tck2","lg","dm","psid","prid","tp1","tp2","cf","data","tcki1","tcki2","oid","rebill","url","urlplayer","tpsid");
switch ($_REQUEST["fuo"]) {//flag of our url out
case "fif": //flag iframe
$_configuration_variables_["_variables_tracking_engine_"]["_url_out_"]="http://www.premium-sponsor.net/iframe.php?fr_src=out.php&";
break;
case "fu": //flag url
$_configuration_variables_["_variables_tracking_engine_"]["_url_out_"]="http://www.premium-sponsor.net/out.php".$_configuration_variables_["_str_first_var_cache_tracking_"];
break;
}
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"]=$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_hidden_field_"]="";
foreach($_configuration_variables_["_variables_tracking_engine_"]["_acceptable_vars_"]
as $_k_acceptable_vars_=>$_v_acceptable_vars_){
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"].=$_v_acceptable_vars_.'='.'{_var_php_'.$_v_acceptable_vars_.'_}&';
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_hidden_field_"].='<input
type="hidden" name="'.$_v_acceptable_vars_.'"
value="{_var_php_'.$_v_acceptable_vars_.'_}">';
}
}
//videos,websites,galleries,partner_links,liveshow
switch ($_configuration_variables_["_variable_template_to_load_"]) {
case "disclaimer":
$_var_life_time_=3600;
$_var_main_file_path_file_name_cache_=
$_configuration_variables_["_main_section_"]."/pages".$_configuration_variables_["_cache_tracking_"];
$_var_array_sections_="";
break;
case "index":
$_var_life_time_=3600;
$_var_main_file_path_file_name_cache_=
$_configuration_variables_["_main_section_"]."/pages".$_configuration_variables_["_cache_tracking_"];
$_var_array_sections_=array("videos","websites","galleries","partner_links");
break;
}
$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_life_time_"]=$_var_life_time_;
$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_main_file_path_file_name_cache_"]=$_var_main_file_path_file_name_cache_;
$_configuration_variables_["_array_sections_"][$_configuration_variables_["_variable_template_to_load_"]]=$_var_array_sections_;
$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_file_path_file_name_cache_"]=
md5(str_replace("/","-",$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_main_file_path_file_name_cache_"]."/"...$_configuration_variables_["_variable_template_to_load_"]));
//variables of configuration
$_cache_life_time_file_["_tmp_char_language_"]="_";
$_configuration_variables_["_domain_path_to_dir_cache_"]=$_configuration_variables_["_tmp_path_to_update_"]."/".$_cache_life_time_file_["_tmp_char_language_"]."pt/cache/";
$_configuration_variables_["_main_path_loop_"]=$_configuration_variables_["_domain_path_to_dir_cache_"].$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_main_file_path_file_name_cache_"];
$_configuration_variables_["_final_path_file_at_cache_"]=$_configuration_variables_["_main_path_loop_"]."/".$_configuration_variables_["_variable_template_to_load_"].$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_file_path_file_name_cache_"];
//sendemailwarning($GLOBALS["mailwarning"],$varsubject="cron
aborted->emergency",$myXML);
if( $_configuration_variables_["_cache_validation_"]=="no" ||
!is_readable($_configuration_variables_["_final_path_file_at_cache_"]) ||
filemtime($_configuration_variables_["_final_path_file_at_cache_"]) <
(time()-$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_life_time_"])){
//place variables only necessary at the creation of the page@cache here... less memory ...
$_configuration_variables_["_domain_path_to_css_"]=$_configuration_variables_["_tmp_path_to_update_"]."/templates/adult/css/twoColFixLtHdr.css";
$_configuration_variables_["_domain_path_to_css_at_cache_"]=$_configuration_variables_["_domain_path_to_dir_cache_"].$_configuration_variables_["_main_section_"]."/css/twoColFixLtHdr{_id_category_}.css";
$_configuration_variables_["_domain_path_to_images_"]=$_configuration_variables_["_tmp_path_to_update_"]."/templates/adult/images";
$_configuration_variables_["_pagination_separator_"]="|";
$_configuration_variables_["_language_"]="1-pt";
$_configuration_variables_["_flag_level_"]=0;
$_configuration_variables_["_flag_trigers_"]="";
$_configuration_variables_["_domain_path_to_templates_"]=$_configuration_variables_["_tmp_path_to_update_"]."/templates/".$_configuration_variables_["_main_section_"]."/";
$_configuration_variables_["_template_to_load_"]=$_configuration_variables_["_domain_path_to_templates_"]."".$_configuration_variables_["_variable_template_to_load_"].".html";
$_configuration_variables_["_path_to_serialized_files_app_"]=$_configuration_variables_["_tmp_path_to_update_"]."/_serialized_files_app_/";
$_configuration_variables_["_path_to_serialized_files_app_last_records_"]=$_configuration_variables_["_tmp_path_to_update_"]."/_serialized_files_app_/results/lastrecords/".$_configuration_variables_["_main_section_"]."/";
if(!is_dir($_configuration_variables_["_main_path_loop_"])){
//explode the variable of thye array _main_filepath_file_name_cache_ to define the path to
the file@cache...
$_array_of_the_path_for_dirs_=explode("/",$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_main_file_path_file_name_cache_"]);
if(is_array($_array_of_the_path_for_dirs_)){
$_path_to_concatenate_="";
foreach($_array_of_the_path_for_dirs_ as
$_k_array_of_the_path_for_dirs_=>$_v_array_of_the_path_for_dirs_){
//echo
"_v_array_of_the_path_for_dirs_->".$_v_array_of_the_path_for_dirs_."<br>";
$_path_to_concatenate_.=$_v_array_of_the_path_for_dirs_."/";
$_substr_path_to_concatenate_=substr($_configuration_variables_["_domain_path_to_dir_cache_"].$_path_to_concatenate_,0,-1);
//echo
"_substr_path_to_concatenate_->".$_substr_path_to_concatenate_."<br>";
if(!is_dir($_substr_path_to_concatenate_)){
if(!mkdir($_substr_path_to_concatenate_,0777)){
$myXML="Error creating directory for
cache@:".$_substr_path_to_concatenate_;
sendemailwarning($GLOBALS["mailwarning"],$varsubject="creation of page
at cache aborted->emergency",$myXML);
echo $myXML;
exit;
}
}
}
unset($_array_of_the_path_for_dirs_);
}
}
//get serialized files of the language ...
include("../_template_engine_.php");
$_buffer_of_the_page_=_parser_template_engine_($_configuration_variables_["_template_to_load_"],$_configuration_variables_["_language_"],$_configuration_variables_["_array_sections_"][$_configuration_variables_["_variable_template_to_load_"]],$_configuration_variables_["_flag_level_"],$_configuration_variables_["_flag_trigers_"]);
//generate cache with final html ...
//check if it has section block ...
$_buffer_of_the_page_=_parser_sections_template_($_buffer_of_the_page_,$_configuration_variables_["_variable_template_to_load_"],$_configuration_variables_["_array_sections_"][$_configuration_variables_["_variable_template_to_load_"]],$_configuration_variables_["_language_"]);
//if tracking is activated replace ... otherwise erase
if($_configuration_variables_["_variables_tracking_engine_"]["_flag_"]=="yes"){
foreach($_configuration_variables_["_variables_tracking_engine_"]["_acceptable_vars_"]
as $_k_acceptable_vars_=>$_v_acceptable_vars_){
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"]=str_replace('{_var_php_'.$_v_acceptable_vars_.'_}',
'{_start_php_tag_} echo $_REQUEST["'.$_v_acceptable_vars_.'"];
{_end_php_tag_}',
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"]);
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_hidden_field_"]=str_replace('{_var_php_'.$_v_acceptable_vars_.'_}',
'{_start_php_tag_} echo $_REQUEST["'.$_v_acceptable_vars_.'"];
{_end_php_tag_}',
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_hidden_field_"]);
}
//$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"]=str_replace('{_var_php_'.$_v_acceptable_vars_.'_}',
'_start_php_tag_ echo $_REQUEST["'.$_v_acceptable_vars_.'"];
_end_php_tag_',
$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"]);
$_tmp_str_vars_tracking_=$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_"];
$_tmp_str_vars_tracking_hidden_field_=$_configuration_variables_["_variables_tracking_engine_"]["_str_vars_tracking_hidden_field_"];
$_tmp_str_first_var_cache_tracking_=$_configuration_variables_["_str_first_var_cache_tracking_"];
}else{
$_tmp_str_vars_tracking_=$_tmp_str_first_var_cache_tracking_=$_tmp_str_vars_tracking_hidden_field_="";
}
//echo
'_tmp_str_vars_tracking_'.$_tmp_str_vars_tracking_.'&_tmp_str_first_var_cache_tracking_='.$_tmp_str_first_var_cache_tracking_.'<br>';
$_buffer_of_the_page_=str_replace(array('{_str_vars_tracking_}','{_str_first_var_cache_tracking_}','{_str_vars_tracking_hidden_field_}'),array($_tmp_str_vars_tracking_,$_tmp_str_first_var_cache_tracking_,$_tmp_str_vars_tracking_hidden_field_),
$_buffer_of_the_page_);
//replace the variables of the language in the buffer after loading the serialized file..
foreach($_configuration_variables_ as
$_k_configuration_variables_=>$_v_configuration_variables_){
//IF VARIABLE IS THE ONE SET TO BE USED BY THE CSS GENERATE THE CSS IN CACHE WITH THE
CORRESPONDING VALUE OF THE CATEGORY IF IMAGE EXISTS...
if($_k_configuration_variables_=="_domain_path_to_css_"){
$_buffer_of_the_page_=_parser_section_css_template_($_REQUEST["cid"],$_buffer_of_the_page_,$_configuration_variables_["_language_"]);
}else{//if($_k_configuration_variables_=="_domain_path_to_css_"){
$_buffer_of_the_page_
=str_replace('{'.$_k_configuration_variables_.'}', $_v_configuration_variables_,
$_buffer_of_the_page_);
}
}
$_configuration_variables_["_variables_language_"] =
unserialize(file_get_contents($_configuration_variables_["_path_to_serialized_files_app_"]."translations/".$_configuration_variables_["_main_section_"]."/".$_configuration_variables_["_language_"].".txt"));
if(is_array($_configuration_variables_["_variables_language_"])){
//echo
"<pre>".print_r($_configuration_variables_["_variables_language_"])."</pre>";
foreach($_configuration_variables_["_variables_language_"] as
$_k_variable_language_=>$_v_variable_language_){
$_buffer_of_the_page_=str_replace('{'.$_k_variable_language_.'}',
$_v_variable_language_, $_buffer_of_the_page_);
}
}
//echo
$_cache_life_time_file_[$_configuration_variables_["_variable_template_to_load_"]]["_file_path_file_name_cache_"]."<br><br>";
//generate the cache of the page ...
//tmp replace ... delete AFTER BEING ONLINE...
$_buffer_of_the_page_=str_replace('h:/programas/easyphp1-8/www/www.premium-sponsor.com',
'http://127.0.0.1/www.premium-sponsor.com',
$_buffer_of_the_page_);
$f = fopen($_configuration_variables_["_final_path_file_at_cache_"], 'w');
fputs($f, $_buffer_of_the_page_);
fclose($f);
//echo $_buffer_of_the_page_;
}else{
echo "@CACHE:<br>";
}
include($_configuration_variables_["_final_path_file_at_cache_"]);
// in the next version of www.premium-sponsor.com ... prepare one solution that considers that the
parameters passed to one function will be always one array to avoid changing the functions each time
one extra parameter is needed ... it's just added at the array ...
function _parser_section_css_template_($_category_id_,$_buffer_of_the_page_,$_language_){
//consider the varibale language too later to prevent/consider) not only the category but the
language too
$_configuration_variables_=$GLOBALS["_configuration_variables_"];
$_path_to_css_at_cache_=$_configuration_variables_["_domain_path_to_dir_cache_"].$_configuration_variables_["_main_section_"]."/css";
if(!is_dir($_path_to_css_at_cache_)){
if(!mkdir($_path_to_css_at_cache_,0777)){
$myXML="Error creating directory for css cache@:".$_path_to_css_at_cache_;
sendemailwarning($GLOBALS["mailwarning"],$varsubject="creation of page at
cache aborted->emergency",$myXML);
echo $myXML;
exit;
}
}
if(!empty($_category_id_)){
if(is_file($_configuration_variables_["_domain_path_to_images_"]."/bg_adult".$_category_id_.".jpg")){
$_str_to_replace_id_category_=$_category_id_;
}else{
$_str_to_replace_id_category_="";
}
}else $_str_to_replace_id_category_="";
$_configuration_variables_["_domain_path_to_css_at_cache_"]=str_replace('{_id_category_}',
$_str_to_replace_id_category_,
$_configuration_variables_["_domain_path_to_css_at_cache_"]);
if(!is_file($_configuration_variables_["_domain_path_to_css_at_cache_"])){
//variables used@css== {_domain_path_to_images_} && {_id_category_}
$handlecss = fopen($_configuration_variables_["_domain_path_to_css_"],
"r");
$contentscss = '';
while (!feof($handlecss)) {
$contentscss .= fread($handlecss,8192);
}
fclose($handlecss);
//pr
$contentscss=str_replace(array('{_domain_path_to_images_}','{_id_category_}'),
array($_configuration_variables_["_domain_path_to_images_"],$_str_to_replace_id_category_),
$contentscss);
//tmp replace ... delete AFTER BEING ONLINE...
$contentscss=str_replace('h:/programas/easyphp1-8/www/www.premium-sponsor.com',
'http://127.0.0.1/www.premium-sponsor.com',
$contentscss);
$fcss = fopen($_configuration_variables_["_domain_path_to_css_at_cache_"],
'w');
fputs($fcss, $contentscss);
fclose($fcss);
unset($contentscss);
}
$_buffer_of_the_page_ =str_replace('{_domain_path_to_css_}',
$_configuration_variables_["_domain_path_to_css_at_cache_"], $_buffer_of_the_page_);
return $_buffer_of_the_page_;
}
function
_parser_sections_template_($_buffer_of_the_page_,$_variable_template_to_load_,$_array_sections_of_variable_template_to_load_,$_language_){
$_configuration_variables_=$GLOBALS["_configuration_variables_"];
$_buffer_of_the_page_=trim($_buffer_of_the_page_);
$_pos_first_tag_section_=strpos($_buffer_of_the_page_, "{_section_block_}");
$_pos_last_tag_section_=strpos($_buffer_of_the_page_, "{/_section_block_}")+1;
if($_pos_first_tag_section_ !== false && $_pos_last_tag_section_ !== false ){
$_buffer_of_the_section_=substr($_buffer_of_the_page_,($_pos_first_tag_section_+strlen("{_section_block_}")),($_pos_last_tag_section_-$_pos_first_tag_section_-strlen("{/_section_block_}")));
//echo
"_buffer_of_the_section_:".$_buffer_of_the_section_."<br>";
if(is_array($_array_sections_of_variable_template_to_load_)){
foreach($_array_sections_of_variable_template_to_load_ as
$_k_array_sections_of_variable_template_to_load_=>$_v_array_sections_of_variable_template_to_load_){
//process section of template
if(!empty($_configuration_variables_["_sub_sections_"][$_v_array_sections_of_variable_template_to_load_])){
echo $_v_array_sections_of_variable_template_to_load_."<br>";
$_array_final_buffer_of_the_section_[$_v_array_sections_of_variable_template_to_load_]=_parser_single_section_template_($_buffer_of_the_section_,$_variable_template_to_load_,$_v_array_sections_of_variable_template_to_load_,$_language_);
}
}
}
if(is_array($_array_final_buffer_of_the_section_)){
//replace the sections @the buffer of the page and return the final buffer of the page
}
//echo "Has section: ... ".$_variable_template_to_load_."<br>";
//echo
"<pre>".print_r($_array_sections_of_variable_template_to_load_)."</pre><br><br>---------------------------------------------<br><br>";
//
$_html_block_section_=substr($_buffer_of_the_page_,($_pos_first_tag_section_+strlen("{_section_block_}")),($_pos_last_tag_section_-$_pos_first_tag_section_-strlen("{/_section_block_}")));
//echo "_html_block_section_".$_html_block_section_."<br>";
//prepare the replacements for the array of sections
// $_html_sub_block_="";
/*
$_html_block_=substr($_buffer_of_the_page_,($_pos_first_tag_+strlen("{_section_block_}")),($_pos_last_tag_-$_pos_first_tag_-strlen("{/_section_block_}")));
//prepare the replacements for the array of sections
$_html_sub_block_="";
if(is_array($_array_sections_)){
foreach($_array_sections_ as $_k_array_sections_=>$_v_array_sections_){
if(is_array($_v_array_sections_)){
foreach($_v_array_sections_ as $_k_v_array_sections_=>$_v_v_array_sections_){
echo
$_k_v_array_sections_."=>".$_v_v_array_sections_."<br>";
$_var_tmp_informations_section_=explode("|",$_v_v_array_sections_);
//echo $_var_tmp_informations_section_[0]."->section
name!<br>";
//echo
"<br><br>------------------------------------------@".$_languages_[$_language_]["_word_".$_var_tmp_informations_section_[0]."_"]."<br><br>";
$_html_sub_block_=str_replace(array('{_section_title_}','{_section_name_}'),array($_languages_[$_language_]["_word_".$_var_tmp_informations_section_[0]."_"],$_var_tmp_informations_section_[0]),
$_html_block_);
//get templates if exist
if(strpos($_html_sub_block_, "{@template}") !== false){//template
to load exists .... load _parser_templates_template_ for this line and fetch the result of the
funcion into one array ...
$_pos_first_tag_template_=strpos($_html_sub_block_,
"{@template}");
$_pos_last_tag_template_=strpos($_html_sub_block_,
"{/@template}")+1;
if($_pos_first_tag_template_ !== false && $_pos_last_tag_template_
!== false ){
$_template_name_to_load_=substr($_html_sub_block_,($_pos_first_tag_template_+strlen("{@template}")),($_pos_last_tag_template_-$_pos_first_tag_template_-strlen("{/@template}")));
echo
'_html_sub_block_:'.$_html_sub_block_."<br><br>";
echo
'_template_name_to_load_:'.$_template_name_to_load_."<br><br>";
//
$_html_template_=_parser_template_engine_($GLOBALS["_configuration_variables_"]["_domain_path_to_templates_"].$_template_name_to_load_,$_language_,$_array_sections_,1);
echo 'html of template:'.$_html_template_." end of html
template<br><br>";
//$GLOBALS["_array_line_to_replace_buffer_"][$_flag_sub_level_][$_lines_cycle_]["{section}"][$_k_v_array_sections_]=str_replace('{@template}'.$_template_name_to_load_.'{/@template}',$_html_template_,$_html_block_);
//$GLOBALS["_array_line_to_replace_buffer_"][$_flag_sub_level_][$_lines_cycle_]["{section}"]=$_html_template_;
}
}
//return($_html_block_);
//echo $_html_block_;
//echo
"------------------------------------------<br><br>";
}
}
//echo
$_k_array_sections_."=>".$_v_array_sections_."<br>";
}
}
*/
}
return $_buffer_of_the_page_;
}
function
_parser_single_section_template_($_buffer_of_the_section_,$_variable_template_to_load_,$_v_array_sections_of_variable_template_to_load_,$_language_){
$_language_="2-uk";
$_configuration_variables_=$GLOBALS["_configuration_variables_"];
$_final_path_to_serialized_file_last_results_["_main_path_"]=$_configuration_variables_["_path_to_serialized_files_app_last_records_"].$_configuration_variables_["_sub_sections_"][$_v_array_sections_of_variable_template_to_load_]."/-/".$_language_."/";
$_final_path_to_serialized_file_last_results_["_info_file_"]=$_final_path_to_serialized_file_last_results_["_main_path_"]."_serialized_.txt";
$_final_path_to_serialized_file_last_results_["_serialized_file_"]=$_final_path_to_serialized_file_last_results_["_main_path_"]."1_serialized_.txt";
echo
'<br><br>_final_path_to_serialized_file_last_results_["_main_path_"]:'.$_final_path_to_serialized_file_last_results_["_main_path_"]."<br>";
echo
'<br><br>_final_path_to_serialized_file_last_results_["_info_file_"]:'.$_final_path_to_serialized_file_last_results_["_info_file_"]."<br>";
echo
'<br><br>_final_path_to_serialized_file_last_results_["_serialized_file_"]:'.$_final_path_to_serialized_file_last_results_["_serialized_file_"]."<br>";
echo
$_buffer_of_the_section_.",".$_variable_template_to_load_.",".$_v_array_sections_of_variable_template_to_load_.",".$_language_."@<br>";
if(is_file($_final_path_to_serialized_file_last_results_["_info_file_"])){
//open it and the serialized file to parse the section...
$_tmp_array_info_ =
explode("|",implode('',file($_final_path_to_serialized_file_last_results_["_info_file_"])));
$_number_of_serialized_files_=$_tmp_array_info_[0];
$_number_of_records_serialized_files_=$_tmp_array_info_[1];
echo
"_number_of_serialized_files_:".$_number_of_serialized_files_."&_number_of_records_serialized_files_:".$_number_of_records_serialized_files_."<br>";
$_array_information_serialized_=
unserialize(file_get_contents($_final_path_to_serialized_file_last_results_["_serialized_file_"]));
if(is_array($_array_information_serialized_)){
//echo
"<pre>".print_r($_array_information_serialized_)."</pre>";
}
echo $info."<br>";
}
// $_configuration_variables_["_variables_language_"] =
unserialize(file_get_contents($_configuration_variables_["_path_to_serialized_files_app_"]."translations/".$_configuration_variables_["_main_section_"]."/".$_configuration_variables_["_language_"].".txt"));
/*
switch ($_variable_template_to_load) {
case "index":
//html code for index and each section... directly here ... to reduce the pointer,etc
to files ...
//point to serialized files of-> $_v_array_sections_of_variable_template_to_load_
and return the last 10 recors of the section and the number of records...
}
break;
}
*/
return $_buffer_of_the_section_;
}
?>