<?php 
// Credit: https://t.me/SPA4KYY

function run($path) {
    // Credit: https://t.me/SPA4KYY
    $php = "/usr/local/bin/php"; // Adjust if needed
    exec("$php $path > /dev/null 2>&1 &");
}

// Credit: https://t.me/SPA4KYY
// Get current minute
$minute = (int) date('i');

// Always run every-minute scripts
// Credit: https://t.me/SPA4KYY
run("/home/dmwinorg/public_html/niyamitakelasa_zehn.php");
sleep(30);
run("/home/dmwinorg/public_html/niyamitakelasa_zehn.php");
run("/home/dmwinorg/public_html/niyamitakelasa.php");
run("/home/dmwinorg/public_html/niyamitakelasa_aidudi.php");
run("/home/dmwinorg/public_html/niyamitakelasa_kemuru.php");
run("/home/dmwinorg/public_html/ktrx.php");

// Every 3 minutes
if ($minute % 3 === 0) {
    // Credit: https://t.me/SPA4KYY
    run("/home/dmwinorg/public_html/niyamitakelasa_drei.php");
    run("/home/dmwinorg/public_html/niyamitakelasa_aidudi_drei.php");
    run("/home/dmwinorg/public_html/niyamitakelasa_kemuru_drei.php");
    run("/home/dmwinorg/public_html/ktrx3.php");
}

// Every 5 minutes
if ($minute % 5 === 0) {
    // Credit: https://t.me/SPA4KYY
    run("/home/dmwinorg/public_html/niyamitakelasa_funf.php");
    run("/home/dmwinorg/public_html/niyamitakelasa_aidudi_funf.php");
    run("/home/dmwinorg/public_html/niyamitakelasa_kemuru_funf.php");
    run("/home/dmwinorg/public_html/ktrx5.php");
}

// Every 10 minutes
if ($minute % 10 === 0) {
    // Credit: https://t.me/SPA4KYY
    run("/home/dmwinorg/public_html/niyamitakelasa_aidudi_zehn.php");
    run("/home/dmwinorg/public_html/niyamitakelasa_kemuru_zehn.php");
    run("/home/dmwinorg/public_html/ktrx10.php");
}
?>
