gif89a Webshell
Current Path : /scripts/

Linux box5589.bluehost.com 4.19.150-76.ELK.el6.x86_64 #1 SMP Wed Oct 7 01:34:10 CDT 2020 x86_64

Upload File :
Current File : //scripts/cleanphpsessions.php
<?php

# cpanel - scripts/cleanphpsessions.php            Copyright 2020 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

    $user = $argv[1];
    $day  = time() - 86400;
    $dbh  = sqlite_open("/var/cpanel/userhomes/$user/sessions/phpsess.sdb" );

    sqlite_query($dbh, "DELETE FROM session_data WHERE updated < $day");
    sqlite_query($dbh, "VACUUM");
    sqlite_close($dbh);
?>