Warning: Undefined array key "HTTP_REFERER" in /home/shagirdinfo/public_html/articles/article_main_file.php on line 42
//ob_start();
//
//exit ();
//echo '.....'.$subject_type;
if (!empty($_GET["temp"])) {
if($_GET['temp'] == 'Yes'){
$temp_js = '_temp';
}
else{
$temp_js = '';
}
}
else{
$temp_js = '';
}
date_default_timezone_set('Asia/Baku');
session_start();
if (!empty($_GET["show_stat"]) || !empty($_GET["show_ram"]) ) {
$show_stat = $_GET["show_stat"];
$show_ram = $_GET["show_ram"];
}
else{
$temp_js = '';
}
$ram_mess = 'After 1st load';
$mem_data_array[] = get_memory_data($ram_mess);
//var_dump($_REQUEST);
//$referal_site = $_SERVER['HTTP_REFERER'];
//echo $referal_site;
$_SESSION['subject_type'] = $subject_type;
$session_id = $_SESSION['part_number'];
if(!isset($_SESSION['part_number'])){
$_SESSION['part_number'] = 1;
$session_id = 1;
//echo $session_id.'
';
}
$_SESSION['current_url'] = curPageURL6();
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Adding session datas';
$mem_data_array[] = get_memory_data($ram_mess);
}
function curPageURL6() {
$pageURL = "http" . (($_SERVER['SERVER_PORT'] == 443) ? "s" : "") . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if(isset($pageURL)){
return $pageURL;
}
}
//echo '...........'.$show_stat;
$part_number = $session_id;
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Adding smartbee session datas';
$mem_data_array[] = get_memory_data($ram_mess);
}
//echo '.............' . print_r($_SESSION, TRUE) . '
';
?>
error_reporting(0);
//echo SANITIZE_PHP_INCLUDED;
/*if (!defined( 'SANITIZE_PHP_INCLUDED') ) {
//---- SANITIZE FAIL ------
$sanitar_file = ROOT_FOR_INCLUDE.'php_sanitar/lib/inc.sanitize10.php';
if(file_exists($sanitar_file))
{
include($sanitar_file);
//echo "It is exist";
}
else{
//echo "It is not exist";
$subject ='Sanitize file file tapilmadi';
send_error($subject, $sanitar_file);
}
}*/
//$functions_file=ROOT_FOR_INCLUDE.'includes/functions'.$temp.'.php';
$functions_file=ROOT_FOR_INCLUDE.'includes/functions NEW'.$temp.'.php';
//echo $functions_file;
if(file_exists($functions_file))
{
//echo "$functions_file is exist";
include($functions_file);
}
else{
//echo $functions_file." It not is exist";
$subject ='Include data file tapilmadi';
//send_error_1($subject, $functions_file);
}
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Including functions'.$temp.'.php';
$mem_data_array[] = get_memory_data($ram_mess);
}
//echo $_SESSION['mobile_or_pc'];
// - - -ADDDING VIEWD DATA - - - -
$viewed_file=ROOT_FOR_INCLUDE.'includes/viewed_times_new'.$temp.'.php';
//echo '.....'.$viewed_file;
if(file_exists($viewed_file))
{
//echo "$viewed_file is exist";
//include($viewed_file);
}
else{
//echo $viewed_file." It not is exist";
$subject ='viewed file tapilmadi';
send_error_1($subject, $viewed_file);
}
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Including viewed_times_new'.$temp.'.php';
$mem_data_array[] = get_memory_data($ram_mess);
}
$inc_file=ROOT_FOR_INCLUDE.'menu/inc_'.$subject_type.'_data'.$temp.'.php';
if(file_exists($inc_file))
{
//echo "$inc_file is exist";
include($inc_file);
}
else{
echo $inc_file." It not is exist";
//$subject ='Include data file tapilmadi';
//send_error_1($subject, $inc_file);
}
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Including inc_'.$subject_type.'_data'.$temp.'.php';
$mem_data_array[] = get_memory_data($ram_mess);
}
if(isset($pageURL1)){
//$pageURL1 = curPageURL4();
}
else{
//$pageURL = curPageURL5();
//$pageURL1 = curPageURL4();
//$pageURL1 = '';
$pageURL1 = curPageURL4();
}
//echo $pageURL1;
//echo curPageURL4();
if(isset($pageURL)){
}
else{
$pageURL = curPageURL5();
}
//echo '777'. curPageURL5();
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Created $pageURL1';
$mem_data_array[] = get_memory_data($ram_mess);
}
//$facebook_meta = ''
if (isset($facebook_meta))
{
//echo 'hello';
//$pageURL = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$facebook_meta =
'
';
}
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Created FB meta data';
$mem_data_array[] = get_memory_data($ram_mess);
}
?>
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Created title and other meta and links on header';
$mem_data_array[] = get_memory_data($ram_mess);
}
// - -ADDING IF SPECIAL META TAGS EXIST LIKE NO CACHING - - -
//echo $additional_meta;
if(isset($index_or_not)){
if($index_or_not == 'No'){
echo
'
';
echo '';
}
}
if(isset($no_cashe)){
$no_cashe = $no_cashe;
}
else{
$no_cashe = '';
}
echo $facebook_meta.
$no_cashe.
'
'.$can_link;
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Adding FB data and desription and keywords data';
$mem_data_array[] = get_memory_data($ram_mess);
}
?>
// - - - -memory check - - - - - -
if ($show_ram=='Yes'){
$ram_mess = 'Inline CSS rules added';
$mem_data_array[] = get_memory_data($ram_mess);
}
?>