Current Path : /proc/3/root/scripts/ |
|
Current File : //proc/3/root/scripts/cleanphpsessions.php |
<?php
# cpanel12 - cleanhordesessions.php Copyright(c) 1997-2008 cPanel, Inc.
# 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);
?>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez