Files
web-site/Projects/Frontend/Controllers/Download.php
T
2026-07-01 16:44:17 +03:00

27 lines
562 B
PHP

<?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,
]);
}
}