HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / home / cuneytsener53 / kurumsal17.snrsoft.com.tr /

Server Ip : 172.67.216.244




Filename/home/cuneytsener53/kurumsal17.snrsoft.com.tr/postspage.php
Size5.01 kb
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified10-Oct-2022 13:59
Last accessed04-Apr-2025 15:35
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
$getPostAsk
->execute(array(
  
'seo_url'    => $_GET["seo_url"],
  
'post_type'  => 'post_post'
));
$postDataCheck $getPostAsk->fetch(PDO::FETCH_ASSOC);
?>
<!-- Page Title -->
<section class="page-title" style="background-image: url(<?php echo $pageDataCheck['banner']; ?>)">
  <div class="auto-container">
    <div class="clearfix">
      <div class="pull-left">
        <h3><?php echo $pageDataCheck['title']; ?></h3>
      </div>
      <div class="pull-right">
        <ul class="bread-crumb clearfix">
          <li><a href="<?= $generalSettingCheck['site_url'?>"><?= $langArray['LINK_HOME'?></a></li>
          <li><?php echo $pageDataCheck['title']; ?></li>
        </ul>
      </div>
    </div>
  </div>
</section>
 <div class="sidebar-page-container">
      <div class="auto-container">
          <div class="row clearfix">
        
      <div class="content-side right-sidebar col-lg-9 col-md-12 col-sm-12">
        <div class="blog-detail">
          <div class="inner-box">
            <div class="image">
              <img style="max-width: 100%; width: auto;" src="<?php echo $postDataCheck['banner']; ?>" alt="" />
              <div class="post-date">18<span>April</span></div>
            </div>
            <div class="lower-content">
              <!-- Social Box -->
              <span class="share--title"><?php echo $langArray['SHARE_TEXT']; ?></span>
              <div class="a2a_kit a2a_kit_size_32 a2a_default_style">
                <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
                <a class="a2a_button_facebook"></a>
                <a class="a2a_button_twitter"></a>
                <a class="a2a_button_email"></a>
                <a class="a2a_button_pinterest"></a>
                <a class="a2a_button_linkedin"></a>
                <a class="a2a_button_reddit"></a>
                <a class="a2a_button_whatsapp"></a>
              </div>
              <script>
                var a2a_config = a2a_config || {};
                a2a_config.locale = "tr";
              </script>
              <script async src="https://static.addtoany.com/menu/page.js"></script> 
              <h2><?php echo $postDataCheck['title']; ?></h2>
              <?php echo $postDataCheck['content']; ?> 
            </div>
          </div>
        </div>
      </div>

          <!-- Sidebar Side -->
                <div class="sidebar-side left-sidebar col-lg-3 col-md-12 col-sm-12">
                  <aside class="sidebar sticky-top">
            
            <!-- Services -->
                        <div class="sidebar-widget service-widget-two">
              <div class="sidebar-title-two">
                <h4><span>\<i>\</i></span> <?php echo $langArray['HEAD_CATEGORIES']; ?></h4>
              </div>
              <div class="widget-content">
                  <?php
             $allCategories 
= array();
             
$allCatCheck=$db->query("SELECT * FROM categories where language={$getLangCheck['language_id']} and categories_type='post_categories'"PDO::FETCH_ASSOC);
             if ( 
$allCatCheck->rowCount() ){
               foreach( 
$allCatCheck as $line ){
                  
$allCategories[$line['categories_id']]['categories_id'] = $line['categories_id'];
                  
$allCategories[$line['categories_id']]['title'] = $line['title'];
                  
$allCategories[$line['categories_id']]['categories_top_id'] = $line['categories_top_id'];
                  
$allCategories[$line['categories_id']]['seo_url'] = $line['seo_url'];
               }
             }
             function 
findCategories($categories){
                
$row = array();
                foreach(
$categories as $category){
                  if(
$category['categories_top_id'] == 0$row[] = $category;
                }
                return 
$row;
             }
             function 
findSubCategories($topCat,$categories,$again 2){
                
$row = array();
                foreach(
$categories as $category){
                  if(
$category['categories_top_id'] == $topCat){
                    
$row[] = $category;
                  }
                }
                if(
count($row) > 0){
                  foreach(
$row as $cat){
                    echo 
'<li><a href="'.$cat['seo_url'].'">'.str_repeat('- ',$again).' '.$cat['title'].'</a></li>';
                    
findSubCategories($cat['categories_id'],$categories,$again+1);
                  }
                }
             }
             
$mainCategories findCategories($allCategories);
             echo 
'
               <ul class="service-list-two">
             '
;
              foreach(
$mainCategories as $category){
                echo 
'
                 <li class="current"><a href="'
.$category['seo_url'].'">'.str_repeat('- ',0).' '.$category['title'].'</a></li>
                '
;
                
findSubCategories($category['categories_id'],$allCategories);
              }
             echo 
'</ul>';
            
?>
                
              </div>
                        </div>
            
          
            
          </aside>
        </div>
        
      </div>
    </div>
  </div>