Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
gi@T dZddlZddlZddlZgdZdj Zdj Zdj ZGdde Z ejejzd zZ e d zZeed eeeez Dcic]}|d |z c}Zej)ed deddiej*dej,e zj.Zej*dZdZdZej*dj8ZdZdZgdZ gdZ!de e!fdZ"Gdde#Z$dZ%e%dzZ&ej*de%zd ze&zd!zejNejPzZ)Gd"d#e#Z*Gd$d%e*Z+ycc}w)&a% Here's a sample session to show how to use this module. At the moment, this is the only documentation. The Basics ---------- Importing is easy... >>> from http import cookies Most of the time you start by creating a cookie. >>> C = cookies.SimpleCookie() Once you've created your Cookie, you can add values just as if it were a dictionary. >>> C = cookies.SimpleCookie() >>> C["fig"] = "newton" >>> C["sugar"] = "wafer" >>> C.output() 'Set-Cookie: fig=newton\r\nSet-Cookie: sugar=wafer' Notice that the printable representation of a Cookie is the appropriate format for a Set-Cookie: header. This is the default behavior. You can change the header and printed attributes by using the .output() function >>> C = cookies.SimpleCookie() >>> C["rocky"] = "road" >>> C["rocky"]["path"] = "/cookie" >>> print(C.output(header="Cookie:")) Cookie: rocky=road; Path=/cookie >>> print(C.output(attrs=[], header="Cookie:")) Cookie: rocky=road The load() method of a Cookie extracts cookies from a string. In a CGI script, you would use this method to extract the cookies from the HTTP_COOKIE environment variable. >>> C = cookies.SimpleCookie() >>> C.load("chips=ahoy; vienna=finger") >>> C.output() 'Set-Cookie: chips=ahoy\r\nSet-Cookie: vienna=finger' The load() method is darn-tootin smart about identifying cookies within a string. Escaped quotation marks, nested semicolons, and other such trickeries do not confuse it. >>> C = cookies.SimpleCookie() >>> C.load('keebler="E=everybody; L=\\"Loves\\"; fudge=;";') >>> print(C) Set-Cookie: keebler="E=everybody; L=\"Loves\"; fudge=;" Each element of the Cookie also supports all of the RFC 2109 Cookie attributes. Here's an example which sets the Path attribute. >>> C = cookies.SimpleCookie() >>> C["oreo"] = "doublestuff" >>> C["oreo"]["path"] = "/" >>> print(C) Set-Cookie: oreo=doublestuff; Path=/ Each dictionary element has a 'value' attribute, which gives you back the value associated with the key. >>> C = cookies.SimpleCookie() >>> C["twix"] = "none for you" >>> C["twix"].value 'none for you' The SimpleCookie expects that all values should be standard strings. Just to be sure, SimpleCookie invokes the str() builtin to convert the value to a string, when the values are set dictionary-style. >>> C = cookies.SimpleCookie() >>> C["number"] = 7 >>> C["string"] = "seven" >>> C["number"].value '7' >>> C["string"].value 'seven' >>> C.output() 'Set-Cookie: number=7\r\nSet-Cookie: string=seven' Finis. N) CookieError BaseCookie SimpleCookiez;  c eZdZy)rN)__name__ __module__ __qualname__%/usr/lib64/python3.12/http/cookies.pyrrsr rz!#$%&'*+-.^_`|~:z ()/<=>?@[]{}z\%03o"\"\z\\z[%s]+z[\x00-\x1F\x7F]c&td|DS)zhDetects control characters within a value. Supports any type, as header values can be any type. c3XK|]"}tjt|$ywN)_control_character_researchstr).0vs r z)_has_control_character..s!AS$++CF3Ss(*)any)vals r_has_control_characterrs ASA AAr cV| t|r|Sd|jtzdzS)zQuote a string for use in a cookie header. If the string does not need to be double-quoted, then just return the string. Otherwise, surround the string in doublequotes and quote (with a \) special characters. r) _is_legal_key translate _Translatorrs r_quoter$s. {mC( S]];//#55r z\\(?:([0-3][0-7][0-7])|(.))cF|drtt|ddS|dS)N)chrint)ms r_unquote_replacer,s't3qtQ<  t r ct|t|dkr|S|ddk7s|ddk7r|S|dd}tt|S)Nr(rrr&)len _unquote_subr,r#s r_unquoter1sO {c#hl  1v}B3 a)C (# ..r )MonTueWedThuFriSatSun) NJanFebMarAprMayJunJulAugSepOctNovDecc nddlm}m}|}|||z\ }}}} } } } } }d|| ||||| | | fzS)Nr)gmtimetimez#%s, %02d %3s %4d %02d:%02d:%02d GMT)rGrF)future weekdayname monthnamerFrGnowyearmonthdayhhmmsswdyzs r_getdaterUsW! &C-3C&L-A*D%b"b"a 0 OS)E"2D"b" E FFr c eZdZdZdddddddd d d Zd d hZdZedZedZ edZ dZ d!dZ dZ ejZdZdZdZdZdZdZdZd"dZeZdZd!dZd!d Zeej<Zy)#MorselaCA class to hold ONE (key, value) pair. In a cookie, each such pair may have several attributes, so this class is used to keep the attributes associated with the appropriate key,value pair. This class also includes a coded_value attribute, which is used to hold the network representation of the value. expiresPathCommentDomainzMax-AgeSecureHttpOnlyVersionSameSite) rXpathcommentdomainmax-agesecurehttponlyversionsamesiterdrec~dx|_x|_|_|jD]}tj ||dy)Nr)_key_value _coded_value _reserveddict __setitem__)selfkeys r__init__zMorsel.__init__s:6:: :DK$"3>>C   T3 +"r c|jSr)riros rrpz Morsel.key s yyr c|jSr)rjrss rvaluez Morsel.value$s {{r c|jSr)rkrss r coded_valuezMorsel.coded_value(s   r c|j}||jvrtd|t||rtd|d|tj |||yNzInvalid attribute .Control characters are not allowed in cookies r)lowerrlrrrmrn)roKVs rrnzMorsel.__setitem__,s_ GGIDNN";< < !!Q ' NqeSTUVTYZ[ [ q!$r Nc|j}||jvrtd|t||rtd|d|tj |||Sry)r{rlrrrm setdefault)rorprs rrzMorsel.setdefault4sViik dnn $=> > !#s +WZ\_ab btS#..r ct|tstStj ||xrO|j |j k(xr4|j |j k(xr|j|jk(Sr) isinstancerWNotImplementedrm__eq__rjrirkromorsels rrz Morsel.__eq__<sj&&)! ! D&)9 v}},9 V[[(9!!V%8%88 :r ct}tj|||jj|j|Sr)rWrmupdate__dict__rs rcopyz Morsel.copyFs2 FD!t}}- r ci}t|jD]S\}}|j}||jvrt d|t ||rt d|d||||<Utj ||yry)rmitemsr{rlrrr)rovaluesdatarprs rrz Morsel.updateLsV **,HC))+C$..(!C"ABB%c3/!#--0G1SG#=>>DI- D$r c(|j||Sr)r)rors r__ior__zMorsel.__ior__Xs F r c:|j|jvSr)r{rl)ror|s r isReservedKeyzMorsel.isReservedKey\swwyDNN**r c|j|jvrtd|t|std|t |||rtd|d|d|||_||_||_y)NzAttempt to set a reserved key z Illegal key rzr)r{rlrr rrirjrk)rorpr coded_vals rsetz Morsel.set_sw 99;$.. (CIJ JS!#78 8 !#sI 6LOQTV_ac c  %r cJ|j|j|jdS)N)rprurw)rirjrkrss r __getstate__zMorsel.__getstate__ms#99[[,,  r c|d}|d}|d}t|||rtd|d|d|||_||_||_y)Nrprurwrzr)rrrirjrk)rostaterprurws r __setstate__zMorsel.__setstate__tsiElgM* !#uk :N!$q ;/CD D  'r c.|d|j|S)Nr) OutputString)roattrsheaders routputz Morsel.outputs $"3"3E":;;r cXd|jjd|jdS)N<: >) __class__r rrss r__repr__zMorsel.__repr__s !^^44d6G6G6IJJr cz|j|}t|r tdd|jddzS)N-Control characters are not allowed in cookiesz rr)rrrreplace)ror output_strings r js_outputzMorsel.js_outputsG))%0 !- 0MN N $$S%0 2 2r cg}|j}||jd|j| |j}t |j }|D]\}}|dk(r ||vr|dk(r4t |tr$||j|dt|J|dk(r+t |tr|d|j||fzz|dk(r4t |tr$||j|dt|||jvr"|s|t|j|||j|d|t|S)N=rrXrcz%s=%dra) appendrprwrlsortedrrr*rUrr$_flags_semispacejoin)rorresultrrrprus rrzMorsel.OutputStrings8 $((D$4$456 =NNEtzz|$JC{%iJuc$:$.."5xGH !j&<w$.."5u!==> !j&<$.."5ve}EF #3t~~c234$.."5u=> $f%%r r)N Set-Cookie:) r r r __doc__rlrrqpropertyrprurwrnrrobject__ne__rrrrrrrr__str__rrr classmethodtypes GenericAlias__class_getitem__r r rrWrWs* I #F,!!%/:]]F  + &  (<GK 2&B$E$6$67r rWz,\w\d!#%&'~_`><@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=z\[\]z \s* # Optional whitespace at start of cookie (?P # Start of group 'key' [ax]+? # Any word of at least one letter ) # End of group 'key' ( # Optional group: there may not be a value. \s*=\s* # Equal Sign (?P # Start of group 'val' "(?:[^\\"]|\\.)*" # Any double-quoted string | # or # Special case for "expires" attr (\w{3,6}day|\w{3}),\s # Day of the week or abbreviated day [\w\d\s-]{9,11}\s[\d:]{8}\sGMT # Date and time in specific format | # or [a-]* # Any word or empty string ) # End of group 'val' )? # End of optional value group \s* # Any number of spaces. (\s+|;|$) # Ending either at space, semicolon, or EOS. cZeZdZdZdZdZd dZdZdZddZ e Z d Z d d Z d Z efd Zy)rz'A container class for a set of Morsels.c ||fS)a real_value, coded_value = value_decode(STRING) Called prior to setting a cookie's value from the network representation. The VALUE is the value read from HTTP header. Override this function to modify the behavior of cookies. r rors r value_decodezBaseCookie.value_decodes Cxr c t|}||fS)zreal_value, coded_value = value_encode(VALUE) Called prior to setting a cookie's value from the dictionary representation. The VALUE is the value being assigned. Override this function to modify the behavior of cookies. r#rorstrvals r value_encodezBaseCookie.value_encodes Sv~r Nc,|r|j|yyr)load)roinputs rrqzBaseCookie.__init__s  IIe  r c|j|t}|j|||tj |||y)z+Private method for setting a cookie's valueN)getrWrrmrn)rorp real_valuerwMs r__setzBaseCookie.__sets6 HHS&( # c:{+ sA&r ct|trtj|||y|j |\}}|j |||y)zDictionary style assignment.N)rrWrmrnr_BaseCookie__set)rorprurvalcvals rrnzBaseCookie.__setitem__sB eV $   T3 .**51JD$ JJsD$ 'r cg}t|j}|D]>\}}|j||}t|r t d|j |@|j |S)z"Return a string suitable for HTTP.r)rrrrrrjoin) rorrseprrrpru value_outputs rrzBaseCookie.outputsftzz|$JC <<v6L%l3!"QRR MM, '  xxr cg}t|j}|D].\}}|j|dt|j0d|j j dt|dS)Nrrrr)rrrreprrurr _spacejoin)rolrrprus rrzBaseCookie.__repr__sX tzz|$JC HHT%++%67 8 !^^44jmDDr cg}t|j}|D]%\}}|j|j|'t |S)z(Return a string suitable for JavaScript.)rrrr _nulljoin)rorrrrprus rrzBaseCookie.js_outputsEtzz|$JC MM%//%0 1   r ct|tr|j|y|jD] \}}|||< y)zLoad cookies from a string (presumably HTTP_COOKIE) or from a dictionary. Loading cookies from a dictionary 'd' is equivalent to calling: map(Cookie.__setitem__, d.keys(), d.values()) N)rr_BaseCookie__parse_stringr)rorawdatarprus rrzBaseCookie.load sC gs #    ( &mmo U!S .r cd}t|}g}d}d}d}d|cxkr|kr!nn|j||} | sn| jd| jd} } | jd}| ddk(r|sd|j || dd| fn| j t jvrY|sy| 6| j t jvr|j || dfnHy|j || t| fn)| &|j || |j| fd}nyd|cxkr|krnd} |D].\} } } | |k(r| | | <| \}}|j| |||| } 0y) NrFr&r(rpr$T) r/matchgroupendrr{rWrlrr1rr)rorpattin parsed_items morsel_seenTYPE_ATTRIBUTE TYPE_KEYVALUErrprurtprrs r__parse_stringzBaseCookie.__parse_string.s  H   1jqjJJsA&EU+U[[-?C ! A1v}"##^SWe$DE 0 00"=yy{fmm3$++^S$,GH ''huo(NO"##]C9J9J59Q$RS" E1jqjJ *NBU^### d 3d+I+r r)Nrz )r r r rrrrqrrnrrrrr_CookiePatternrr r rrrsD1' (  GE! (6:r rceZdZdZdZdZy)rz SimpleCookie supports strings as cookie values. When setting the value using the dictionary assignment notation, SimpleCookie calls the builtin str() to convert the value to a string. Values received from HTTP are kept as strings. ct||fSr)r1rs rrzSimpleCookie.value_decoders}c!!r c2t|}|t|fSr)rr$rs rrzSimpleCookie.value_encodeusSvf~%%r N)r r r rrrr r rrrks "&r r),rrestringr__all__rrrr Exceptionr ascii_lettersdigits _LegalChars_UnescapedCharsrrangemapordr"rcompileescape fullmatchr rrr$subr0r,r1 _weekdayname _monthnamerUrmrW_LegalKeyChars_LegalValueCharsASCIIVERBOSErrr)rs0rrsNXz 7 GG  XX  ) """V]]25GG /E#J#c#.G*HHJH1(Q,HJ HeIv  7YRYY{%;;<FF " #56B 6rzz89==  /6A 8 <:F@8T@8XB!G+      & BJJ ' 2LL^ &: &MJs F