new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php return
|
||||
[
|
||||
'language' => 'tr',
|
||||
'timezone' => 'Europe/Istanbul',
|
||||
'locale' =>
|
||||
[
|
||||
'charset' => 'en_US.UTF-8',
|
||||
'language' => 'english',
|
||||
],
|
||||
'mode' => 'development',
|
||||
'key' => ZN\In::secretProjectKey('!E;gk86H(-J>F6mq3b_3=h*'),
|
||||
'benchmark' => false,
|
||||
'log' =>
|
||||
[
|
||||
'createFile' => false,
|
||||
'fileTime' => '30 day'
|
||||
],
|
||||
'headers' =>
|
||||
[
|
||||
'content-type: text/html; charset=utf-8'
|
||||
],
|
||||
'errorReporting' => E_ALL,
|
||||
'escapeErrors' => [],
|
||||
'exitErrors' => [0, 2],
|
||||
'restoration' =>
|
||||
[
|
||||
'machinesIP' => ['127.0.0.1'],
|
||||
'pages' => [],
|
||||
'routePage' => ''
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php return
|
||||
[
|
||||
'openController' => 'Download',
|
||||
'openFunction' => 'main',
|
||||
'show404' => 'show404',
|
||||
'requestMethods' =>
|
||||
[
|
||||
'page' => '',
|
||||
'disallowMethods' => [],
|
||||
'allowMethods' => []
|
||||
],
|
||||
'patternType' => 'classic',
|
||||
'changeUri' => [
|
||||
'counter' => 'Download/counter',
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php return
|
||||
[
|
||||
'constructors' => ['Initialize'],
|
||||
'destructors' => [],
|
||||
'extractViewData' => false,
|
||||
'ajaxCodeContinue' => false,
|
||||
'viewNameType' => 'directory',
|
||||
'autoload' =>
|
||||
[
|
||||
'status' => true,
|
||||
'recursive' => false
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php namespace Project\Controllers;
|
||||
use DB,Import,URL,Cookie,Session,ML,Method;
|
||||
|
||||
/*
|
||||
* Created By: Erkan IŞIK
|
||||
* Created Date: 2017-12-07
|
||||
* Update Date: 2017-12-07
|
||||
*/
|
||||
class Download extends Controller{
|
||||
|
||||
function main(){
|
||||
//$data = DB::orderBy('id','desc')->get('download')->result();
|
||||
//View::data($data)->get('main');
|
||||
define('TITLE', 'Download');
|
||||
}
|
||||
function counter(){
|
||||
$id = method::post('id');
|
||||
|
||||
$count = DB::whereId($id)->downlinkRowCount();
|
||||
|
||||
DB::where('id',$id)->update('downlink', [
|
||||
'count' => $count+1,
|
||||
]);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<div class="container main pt-5">
|
||||
@foreach (downloadLast() as $key )
|
||||
{[ $sum = explode(',',$key->sumx); ]}
|
||||
<div class="glass-card p-4 mb-5">
|
||||
<h5 class="download-title">{{$key->name}}</h5>
|
||||
|
||||
<div class="download-desc">{{$key->content}}</div>
|
||||
|
||||
<div class="hash-box">
|
||||
<div class="hash-row">
|
||||
<span class="hash-label">MD5SUM</span>
|
||||
<code class="hash-value">{{$sum['0']}}</code>
|
||||
</div>
|
||||
<div class="hash-row">
|
||||
<span class="hash-label">SHA1SUM</span>
|
||||
<code class="hash-value">{{$sum['1']}}</code>
|
||||
</div>
|
||||
<div class="hash-row">
|
||||
<span class="hash-label">SHA256</span>
|
||||
<code class="hash-value">{{$sum['2']}}</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="download-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{lang('download','country')}}</th>
|
||||
<th>{{lang('download','link')}}</th>
|
||||
<th class="text-end">{{lang('download','action')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach(downloadUrl($key->id) as $key1)
|
||||
<tr>
|
||||
<td class="country-cell">{{countriesName($key1->country)}}</td>
|
||||
<td class="link-cell">
|
||||
<span class="link-text">{{$key1->link}}</span>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<a href="{{$key1->link}}" data-id="{{$key1->id}}" class="btn-download" download>
|
||||
<i class="fas fa-download me-1"></i>{{lang('download','download')}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
Reference in New Issue
Block a user