mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-18 11:08:22 -05:00
Add server version to master api
Add IsEvadedOffense to EFPenalty Fix remote log reading in not Windows
This commit is contained in:
51
Master/env_master/Scripts/Activate.ps1
Normal file
51
Master/env_master/Scripts/Activate.ps1
Normal file
@ -0,0 +1,51 @@
|
||||
function global:deactivate ([switch]$NonDestructive) {
|
||||
# Revert to original values
|
||||
if (Test-Path function:_OLD_VIRTUAL_PROMPT) {
|
||||
copy-item function:_OLD_VIRTUAL_PROMPT function:prompt
|
||||
remove-item function:_OLD_VIRTUAL_PROMPT
|
||||
}
|
||||
|
||||
if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) {
|
||||
copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME
|
||||
remove-item env:_OLD_VIRTUAL_PYTHONHOME
|
||||
}
|
||||
|
||||
if (Test-Path env:_OLD_VIRTUAL_PATH) {
|
||||
copy-item env:_OLD_VIRTUAL_PATH env:PATH
|
||||
remove-item env:_OLD_VIRTUAL_PATH
|
||||
}
|
||||
|
||||
if (Test-Path env:VIRTUAL_ENV) {
|
||||
remove-item env:VIRTUAL_ENV
|
||||
}
|
||||
|
||||
if (!$NonDestructive) {
|
||||
# Self destruct!
|
||||
remove-item function:deactivate
|
||||
}
|
||||
}
|
||||
|
||||
deactivate -nondestructive
|
||||
|
||||
$env:VIRTUAL_ENV="X:\IW4MAdmin\Master\env_master"
|
||||
|
||||
if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
||||
# Set the prompt to include the env name
|
||||
# Make sure _OLD_VIRTUAL_PROMPT is global
|
||||
function global:_OLD_VIRTUAL_PROMPT {""}
|
||||
copy-item function:prompt function:_OLD_VIRTUAL_PROMPT
|
||||
function global:prompt {
|
||||
Write-Host -NoNewline -ForegroundColor Green '(env_master) '
|
||||
_OLD_VIRTUAL_PROMPT
|
||||
}
|
||||
}
|
||||
|
||||
# Clear PYTHONHOME
|
||||
if (Test-Path env:PYTHONHOME) {
|
||||
copy-item env:PYTHONHOME env:_OLD_VIRTUAL_PYTHONHOME
|
||||
remove-item env:PYTHONHOME
|
||||
}
|
||||
|
||||
# Add the venv to the PATH
|
||||
copy-item env:PATH env:_OLD_VIRTUAL_PATH
|
||||
$env:PATH = "$env:VIRTUAL_ENV\Scripts;$env:PATH"
|
BIN
Master/env_master/Scripts/_asyncio.pyd
Normal file
BIN
Master/env_master/Scripts/_asyncio.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_bz2.pyd
Normal file
BIN
Master/env_master/Scripts/_bz2.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_ctypes.pyd
Normal file
BIN
Master/env_master/Scripts/_ctypes.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_ctypes_test.pyd
Normal file
BIN
Master/env_master/Scripts/_ctypes_test.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_decimal.pyd
Normal file
BIN
Master/env_master/Scripts/_decimal.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_distutils_findvs.pyd
Normal file
BIN
Master/env_master/Scripts/_distutils_findvs.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_elementtree.pyd
Normal file
BIN
Master/env_master/Scripts/_elementtree.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_hashlib.pyd
Normal file
BIN
Master/env_master/Scripts/_hashlib.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_lzma.pyd
Normal file
BIN
Master/env_master/Scripts/_lzma.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_msi.pyd
Normal file
BIN
Master/env_master/Scripts/_msi.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_multiprocessing.pyd
Normal file
BIN
Master/env_master/Scripts/_multiprocessing.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_overlapped.pyd
Normal file
BIN
Master/env_master/Scripts/_overlapped.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_socket.pyd
Normal file
BIN
Master/env_master/Scripts/_socket.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_sqlite3.pyd
Normal file
BIN
Master/env_master/Scripts/_sqlite3.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_ssl.pyd
Normal file
BIN
Master/env_master/Scripts/_ssl.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_testbuffer.pyd
Normal file
BIN
Master/env_master/Scripts/_testbuffer.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_testcapi.pyd
Normal file
BIN
Master/env_master/Scripts/_testcapi.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_testconsole.pyd
Normal file
BIN
Master/env_master/Scripts/_testconsole.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_testimportmultiple.pyd
Normal file
BIN
Master/env_master/Scripts/_testimportmultiple.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_testmultiphase.pyd
Normal file
BIN
Master/env_master/Scripts/_testmultiphase.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/_tkinter.pyd
Normal file
BIN
Master/env_master/Scripts/_tkinter.pyd
Normal file
Binary file not shown.
76
Master/env_master/Scripts/activate
Normal file
76
Master/env_master/Scripts/activate
Normal file
@ -0,0 +1,76 @@
|
||||
# This file must be used with "source bin/activate" *from bash*
|
||||
# you cannot run it directly
|
||||
|
||||
deactivate () {
|
||||
# reset old environment variables
|
||||
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
|
||||
PATH="${_OLD_VIRTUAL_PATH:-}"
|
||||
export PATH
|
||||
unset _OLD_VIRTUAL_PATH
|
||||
fi
|
||||
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
|
||||
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
|
||||
export PYTHONHOME
|
||||
unset _OLD_VIRTUAL_PYTHONHOME
|
||||
fi
|
||||
|
||||
# This should detect bash and zsh, which have a hash command that must
|
||||
# be called to get it to forget past commands. Without forgetting
|
||||
# past commands the $PATH changes we made may not be respected
|
||||
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
||||
hash -r
|
||||
fi
|
||||
|
||||
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
|
||||
PS1="${_OLD_VIRTUAL_PS1:-}"
|
||||
export PS1
|
||||
unset _OLD_VIRTUAL_PS1
|
||||
fi
|
||||
|
||||
unset VIRTUAL_ENV
|
||||
if [ ! "$1" = "nondestructive" ] ; then
|
||||
# Self destruct!
|
||||
unset -f deactivate
|
||||
fi
|
||||
}
|
||||
|
||||
# unset irrelevant variables
|
||||
deactivate nondestructive
|
||||
|
||||
VIRTUAL_ENV="X:\IW4MAdmin\Master\env_master"
|
||||
export VIRTUAL_ENV
|
||||
|
||||
_OLD_VIRTUAL_PATH="$PATH"
|
||||
PATH="$VIRTUAL_ENV/Scripts:$PATH"
|
||||
export PATH
|
||||
|
||||
# unset PYTHONHOME if set
|
||||
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
||||
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
||||
if [ -n "${PYTHONHOME:-}" ] ; then
|
||||
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
|
||||
unset PYTHONHOME
|
||||
fi
|
||||
|
||||
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
|
||||
_OLD_VIRTUAL_PS1="${PS1:-}"
|
||||
if [ "x(env_master) " != x ] ; then
|
||||
PS1="(env_master) ${PS1:-}"
|
||||
else
|
||||
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
|
||||
# special case for Aspen magic directories
|
||||
# see http://www.zetadev.com/software/aspen/
|
||||
PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
|
||||
else
|
||||
PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
|
||||
fi
|
||||
fi
|
||||
export PS1
|
||||
fi
|
||||
|
||||
# This should detect bash and zsh, which have a hash command that must
|
||||
# be called to get it to forget past commands. Without forgetting
|
||||
# past commands the $PATH changes we made may not be respected
|
||||
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
||||
hash -r
|
||||
fi
|
45
Master/env_master/Scripts/activate.bat
Normal file
45
Master/env_master/Scripts/activate.bat
Normal file
@ -0,0 +1,45 @@
|
||||
@echo off
|
||||
|
||||
rem This file is UTF-8 encoded, so we need to update the current code page while executing it
|
||||
for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do (
|
||||
set "_OLD_CODEPAGE=%%a"
|
||||
)
|
||||
if defined _OLD_CODEPAGE (
|
||||
"%SystemRoot%\System32\chcp.com" 65001 > nul
|
||||
)
|
||||
|
||||
set "VIRTUAL_ENV=X:\IW4MAdmin\Master\env_master"
|
||||
|
||||
if not defined PROMPT (
|
||||
set "PROMPT=$P$G"
|
||||
)
|
||||
|
||||
if defined _OLD_VIRTUAL_PROMPT (
|
||||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
||||
)
|
||||
|
||||
if defined _OLD_VIRTUAL_PYTHONHOME (
|
||||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
||||
)
|
||||
|
||||
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
||||
set "PROMPT=(env_master) %PROMPT%"
|
||||
|
||||
if defined PYTHONHOME (
|
||||
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
|
||||
set PYTHONHOME=
|
||||
)
|
||||
|
||||
if defined _OLD_VIRTUAL_PATH (
|
||||
set "PATH=%_OLD_VIRTUAL_PATH%"
|
||||
) else (
|
||||
set "_OLD_VIRTUAL_PATH=%PATH%"
|
||||
)
|
||||
|
||||
set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%"
|
||||
|
||||
:END
|
||||
if defined _OLD_CODEPAGE (
|
||||
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
|
||||
set "_OLD_CODEPAGE="
|
||||
)
|
BIN
Master/env_master/Scripts/chardetect.exe
Normal file
BIN
Master/env_master/Scripts/chardetect.exe
Normal file
Binary file not shown.
21
Master/env_master/Scripts/deactivate.bat
Normal file
21
Master/env_master/Scripts/deactivate.bat
Normal file
@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
|
||||
if defined _OLD_VIRTUAL_PROMPT (
|
||||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
||||
)
|
||||
set _OLD_VIRTUAL_PROMPT=
|
||||
|
||||
if defined _OLD_VIRTUAL_PYTHONHOME (
|
||||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
||||
set _OLD_VIRTUAL_PYTHONHOME=
|
||||
)
|
||||
|
||||
if defined _OLD_VIRTUAL_PATH (
|
||||
set "PATH=%_OLD_VIRTUAL_PATH%"
|
||||
)
|
||||
|
||||
set _OLD_VIRTUAL_PATH=
|
||||
|
||||
set VIRTUAL_ENV=
|
||||
|
||||
:END
|
BIN
Master/env_master/Scripts/easy_install-3.6.exe
Normal file
BIN
Master/env_master/Scripts/easy_install-3.6.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/easy_install.exe
Normal file
BIN
Master/env_master/Scripts/easy_install.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/flask.exe
Normal file
BIN
Master/env_master/Scripts/flask.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/jwt.exe
Normal file
BIN
Master/env_master/Scripts/jwt.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/pip.exe
Normal file
BIN
Master/env_master/Scripts/pip.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/pip3.6.exe
Normal file
BIN
Master/env_master/Scripts/pip3.6.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/pip3.exe
Normal file
BIN
Master/env_master/Scripts/pip3.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/pyexpat.pyd
Normal file
BIN
Master/env_master/Scripts/pyexpat.pyd
Normal file
Binary file not shown.
68
Master/env_master/Scripts/pygal_gen.py
Normal file
68
Master/env_master/Scripts/pygal_gen.py
Normal file
@ -0,0 +1,68 @@
|
||||
#!X:\IW4MAdmin\Master\env_master\Scripts\python.exe
|
||||
# -*- coding: utf-8 -*-
|
||||
# This file is part of pygal
|
||||
#
|
||||
# A python svg graph plotting library
|
||||
# Copyright © 2012-2016 Kozea
|
||||
#
|
||||
# This library is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Lesser General Public License as published by the Free
|
||||
# Software Foundation, either version 3 of the License, or (at your option) any
|
||||
# later version.
|
||||
#
|
||||
# This library 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 Lesser General Public License for more
|
||||
# details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with pygal. If not, see <http://www.gnu.org/licenses/>.
|
||||
import argparse
|
||||
|
||||
import pygal
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Generate pygal chart in command line',
|
||||
prog='pygal_gen')
|
||||
|
||||
parser.add_argument('-t', '--type', dest='type', default='Line',
|
||||
choices=map(lambda x: x.__name__, pygal.CHARTS),
|
||||
help='Kind of chart to generate')
|
||||
|
||||
parser.add_argument('-o', '--output', dest='filename', default='pygal_out.svg',
|
||||
help='Filename to write the svg to')
|
||||
|
||||
parser.add_argument('-s', '--serie', dest='series', nargs='+', action='append',
|
||||
help='Add a serie in the form (title val1 val2...)')
|
||||
|
||||
parser.add_argument('--version', action='version',
|
||||
version='pygal %s' % pygal.__version__)
|
||||
|
||||
for key in pygal.config.CONFIG_ITEMS:
|
||||
opt_name = key.name
|
||||
val = key.value
|
||||
opts = {}
|
||||
if key.type == list:
|
||||
opts['type'] = key.subtype
|
||||
opts['nargs'] = '+'
|
||||
else:
|
||||
opts['type'] = key.type
|
||||
|
||||
if opts['type'] == bool:
|
||||
del opts['type']
|
||||
opts['action'] = 'store_true' if not val else 'store_false'
|
||||
if val:
|
||||
opt_name = 'no-' + opt_name
|
||||
if key.name == 'interpolate':
|
||||
opts['choices'] = list(pygal.interpolate.INTERPOLATIONS.keys())
|
||||
parser.add_argument(
|
||||
'--%s' % opt_name, dest=key.name, default=val, **opts)
|
||||
|
||||
config = parser.parse_args()
|
||||
|
||||
chart = getattr(pygal, config.type)(**vars(config))
|
||||
|
||||
for serie in config.series:
|
||||
chart.add(serie[0], map(float, serie[1:]))
|
||||
|
||||
chart.render_to_file(config.filename)
|
BIN
Master/env_master/Scripts/python.exe
Normal file
BIN
Master/env_master/Scripts/python.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/python3.dll
Normal file
BIN
Master/env_master/Scripts/python3.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/python36.dll
Normal file
BIN
Master/env_master/Scripts/python36.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/pythonw.exe
Normal file
BIN
Master/env_master/Scripts/pythonw.exe
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/select.pyd
Normal file
BIN
Master/env_master/Scripts/select.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/sqlite3.dll
Normal file
BIN
Master/env_master/Scripts/sqlite3.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/tcl86t.dll
Normal file
BIN
Master/env_master/Scripts/tcl86t.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/tk86t.dll
Normal file
BIN
Master/env_master/Scripts/tk86t.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/unicodedata.pyd
Normal file
BIN
Master/env_master/Scripts/unicodedata.pyd
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/vcruntime140.dll
Normal file
BIN
Master/env_master/Scripts/vcruntime140.dll
Normal file
Binary file not shown.
BIN
Master/env_master/Scripts/winsound.pyd
Normal file
BIN
Master/env_master/Scripts/winsound.pyd
Normal file
Binary file not shown.
Reference in New Issue
Block a user