new pisilinux web sites

This commit is contained in:
Erkan IŞIK
2026-07-01 16:44:17 +03:00
commit b58488b586
21740 changed files with 2066209 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php namespace Project\Controllers;
use URI,DB,Cookie,URL,Method;
class category extends Controller{
function main(){
$id = explode('-',URI::get('category'));
$id = $id['0'];
view::id($id);
}
}
+36
View File
@@ -0,0 +1,36 @@
<?php namespace Project\Controllers;
use URI,DB,Cookie,URL,Method;
class content extends Controller{
function main(){
$id = explode('-',URI::get('content'));
$id = $id['0'];
$row = contentRow($id);
if (!$row) {
return Masterpage::error404();
}
if (Cookie::select('contentid') != $id) {
$hits = $row->hits + 1;
DB::where('id', $id)->update('content',['hits' => $hits]);
Cookie::time(60 * 60 * 24)->insert('contentid',$id);
}
Masterpage::title($row->title);
Masterpage::meta
([
'name:description' => $row->keywords,
'name:keywords' => $row->label
]);
define('TITLE',$row->title);
define('LINK',URL::base("content/$id-".$row->title_seo));
define('DESC',$row->keywords);
define('IMG',content_image($row->content));
view::id($id);
}
}
+52
View File
@@ -0,0 +1,52 @@
<?php namespace Project\Controllers;
use URI,DB,Cookie,URL,Method;
class home extends Controller{
function main(){
Cookie::insert('returnlink', '');
if (Method::post('lang')) {
$bloglist = contentListAdmin(Method::post('lang'));
}else{
$bloglist = contentListAdmin('tr');
}
view::bloglist($bloglist);
}
function category(){
$id = explode('-',URI::get('category'));
$id = $id['0'];
view::id($id);
}
function content(){
$id = explode('-',URI::get('content'));
$id = $id['0'];
$row = contentRow($id);
if (!$row) {
return Masterpage::error404();
}
if (Cookie::select('contentid') != $id) {
$hits = $row->hits + 1;
DB::where('id', $id)->update('content',['hits' => $hits]);
Cookie::time(60 * 60 * 24)->insert('contentid',$id);
}
Masterpage::title($row->title);
Masterpage::meta
([
'name:description' => $row->keywords,
'name:keywords' => $row->label
]);
define('TITLE',$row->title);
define('LINK',URL::base("content/$id-".$row->title_seo));
define('DESC',$row->keywords);
define('IMG',content_image($row->content));
view::id($id);
}
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace Project\Controllers;
class Initialize extends Controller
{
public function main()
{
Theme::active('pisiV4/');
Masterpage::headPage('Assets/head')
->bodyPage('Assets/body')
->container(true);
}
}