Files
CyberPanel/plogical/phpUtilities.pyc

43 lines
6.0 KiB
Plaintext
Raw Normal View History

2017-12-14 06:56:27 -05:00
<03>
<EFBFBD>T2Zc@s<>ddlZddlZddlZddlZddlZddlZddlZddd<00><00>YZd<00>Z e
dkr<>e <00>ndS(i<><69><EFBFBD><EFBFBD>Nt phpUtilitiescBsheZdZed<00><00>Zed<00><00>Zed<00><00>Zed<00><00>Zed<00><00>Zed<00><00>Z RS(s'/home/cyberpanel/phpExtensionRequestLogcCs<>y<>d|d}tj|<00>}ttjd<00><00>}tj|d|<00>}WdQX|dkr<>ttjd<00>}|jd<00>|j<00>t j
j d<00>d Sttjd<00>}|jd
<00>|j<00>dSWn-t k
r<>}t j
j t |<00>d <17>nXdS( Nssudo yum install s -ytwtstdoutitasCan not be installed.
s[Could not Install]isPHP Extension Installed.
s[installPHPExtension](tshlextsplittopenRtinstallLogPatht
subprocesstcallt
writelinestclosetloggingtCyberCPLogFileWritert writeToFilet BaseExceptiontstr(t extensiont
extensionstcommandtcmdtftresRtmsg((s+/usr/local/CyberCP/plogical/phpUtilities.pytinstallPHPExtension s"  
 
cCs<>y<>d|d}tj|<00>}ttjd<00><00>}tj|d|<00>}WdQX|dkr<>ttjd<00>}|jd<00>|j<00>t j
j d<00>d Sttjd<00>}|jd
<00>|j<00>dSWn-t k
r<>}t j
j t |<00>d <17>nXdS( Nssudo rpm --nodeps -e s -vRRiRsCan not un-install Extension.
s[Could not Install]isPHP Extension Removed.
s[unInstallPHPExtension](RRRRRRR R
R R R RRR(RRRRRRRR((s+/usr/local/CyberCP/plogical/phpUtilities.pytunInstallPHPExtension's"  
 
cCsQytjtj||f<00>Wn-tk
rL}tjjt|<00>d<17>nXdS(Ns [initiateInstall]( tthreadtstart_new_threadRRRR R RR(RR((s+/usr/local/CyberCP/plogical/phpUtilities.pytinitiateInstallAscCsQytjtj||f<00>Wn-tk
rL}tjjt|<00>d<17>nXdS(Ns [initiateRestore]( RRRRRR R RR(RR((s+/usr/local/CyberCP/plogical/phpUtilities.pytinitiateRemovalIsc  Cs<>y<>d|d} t| d<00>j<00>}
t| d<00>} x1|
D])} | jd<00>dkr<>| jd<00>dkr<>| j|d<17>q<| jd <00>dkr<>| jd<00>dkr<>| j|d<17>q<| jd
<00>dkr| jd<00>dkr| jd <00>dk r| j|d<17>q<| jd <00>dkrP| jd<00>dkrP| j|d<17>q<| jd <00>dkr<>| jd<00>dkr<>| jd|d<17>q<| jd<00>dkr<>| jd<00>dkr<>| jd|d<17>q<| jd<00>dkr| jd<00>dkr| jd|d<17>q<| jd<00>dkrX| jd<00>dkrX| jd|d<17>q<| j| <00>q<W| j<00>tjj<00>dGHWn<tk
r<>} tj j
t | <00>d<17>dt | <00>GHnXdS(Ns/usr/local/lsws/lss /etc/php.initrRtallow_url_fopeni<6E><69><EFBFBD><EFBFBD>t=s
tdisplay_errorst file_uploadstmax_file_uploadstallow_url_includet memory_limitsmemory_limit = tmax_execution_timesmax_execution_time = tupload_max_filesizesupload_max_filesize = tmax_input_timesmax_input_time = s1,Nones [savePHPConfigBasic]s0,( Rt readlinestfindR
R tinstallUtilitiestreStartLiteSpeedRR R RR(tphpVersRR!R"R$R%R&R'R(tpathtdataRtitemsR((s+/usr/local/CyberCP/plogical/phpUtilities.pytsavePHPConfigBasicPs< **0*****
   cCs<>ymt|d<00>}|jt|d<00>j<00><00>|j<00>tjj<00>tjj|<00>rgtj |<00>ndGHWn<t
k
r<>}t j j t|<00>d<17>dt|<00>GHnXdS(NRRs1,Nones [savePHPConfigAdvance]s0,(RtwritetreadR R+R,tosR.texiststremoveRR R RR(R-ttempPathtphpINIR((s+/usr/local/CyberCP/plogical/phpUtilities.pytsavePHPConfigAdvance~s
   (
t__name__t
__module__Rt staticmethodRRRRR1R9(((s+/usr/local/CyberCP/plogical/phpUtilities.pyR s.c
Csmtjdd<00>}|jddd<00>|jddd<00>|jddd <00>|jd
dd <00>|jd dd <00>|jddd<00>|jddd<00>|jddd<00>|jddd<00>|jddd<00>|jddd<00>|j<00>}|jdkrAtj|j|j|j |j
|j |j |j |j|j<00> n(|jdkritj|j|j<00>ndS(Nt descriptionsCyberPanel InstallertfunctionthelpsSpecific a function to call!s --phpVerss Domain name!s--allow_url_fopensMax Connections for PHP!s--display_errorss'Initial Request Timeout (secs) for PHP!s--file_uploadssPersistent Connection for PHP!s--allow_url_includes"Memory Soft Limit (bytes) for PHP!s--memory_limitsProcess Hard Limit for PHP!s--max_execution_times"Memory Hard Limit (bytes) for PHP!s--upload_max_filesizesProcess Soft Limit for PHP!s--max_input_times
--tempPaths1Temporary path to file where PHP is storing data!R1R9(targparsetArgumentParsert add_argumentt
parse_argsR>RR1R-RR!R"R$R%R&R'R(R9R7(tparsertargs((s+/usr/local/CyberCP/plogical/phpUtilities.pytmain<69>s$ *t__main__(( R R RRRR+R@R4RRFR:(((s+/usr/local/CyberCP/plogical/phpUtilities.pyt<module>s       <13>