HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/clcommon/public_hooks/bundle/cpanel/bin/postkillacct
#!/opt/cloudlinux/venv/bin/python3 -bb
# -*- coding: utf-8 -*-
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
#
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import sys

from clcommon.public_hooks.bundle.cpanel.lib import (
    cpanel_postkillacct_main,
    print_response
)
from clcommon.public_hooks import setup_logger_and_sentry


def main():
    setup_logger_and_sentry()
    args = json.load(sys.stdin)
    exit_code = cpanel_postkillacct_main(args['data'])
    print_response(hook_name=__file__, success=exit_code == 0)
    exit(exit_code)


if __name__ == '__main__':
    main()