ikinci temizlik tamamlandı

This commit is contained in:
Ümit Tunç
2026-04-28 21:15:09 +03:00
parent f80443aec0
commit 37e7296527
8313 changed files with 2400677 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
$u = u();
$prefix = "tp-creator-queue";
$mainContractor = db("subcontractors")
->select("company_name_ru")
->where("operation_type", "MAIN CONTRACTOR")
->first()->company_name_ru;
Cache::put("rc_contractor", $mainContractor);
if(Cache::has($prefix)) {
$queue = Cache::get($prefix);
} else {
$queue = [];
}
$queueId = rand();
if(postisset("_token")) {
$queue[$queueId] = $_POST;
$queue[$queueId]['user'] = $u;
echo e2("The work with :id number has been added to the queue of the tp creator system and the work will continue in the background. When the process is completed, you will be notified to the :email e-mail address", [
'id' => $queueId,
'email' => $u->email
]);
Cache::put($prefix, $queue);
}
?>