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 / kurumsal37.snrsoft.com.tr / classes / | Server Ip : 172.67.216.244 |
Filename | |
Size | 2.91 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 01-Dec-2022 12:25 |
Last accessed | 04-Apr-2025 23:28 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
class nav_cek
{
public function page($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pages Where header=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="kurumsal/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function page_footer($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pages Where footer=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="kurumsal/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function service($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM service Where header=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="hizmet/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function service_footer($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM service Where footer=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="hizmet/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function project($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pr_cat Where active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="proje/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function product($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM p_cat Where popular=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="urunler/kategori/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
}
class nav_cek
{
public function page($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pages Where header=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="kurumsal/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function page_footer($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pages Where footer=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="kurumsal/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function service($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM service Where header=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="hizmet/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function service_footer($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM service Where footer=1 AND active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="hizmet/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function project($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM pr_cat Where active=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="proje/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
public function product($liclass,$aclass)
{
include("database.php");
$echo = "";
$pages = $db->prepare("SELECT * FROM p_cat Where popular=1 ORDER BY id DESC");
$pages->execute();
while ($pages_head = $pages->fetch(PDO::FETCH_ASSOC)) {
$echo.= '<li class="'.$liclass.'"><a class="'.$aclass.'" href="urunler/kategori/'. $pages_head["perma"] .'">'. $pages_head["name"] .'</a></li>';
}
return $echo;
}
}