Projects STRLCPY hiphp Commits 92ac27b7
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    run.py
    1  -#!/usr/bin/env python
    2  -# coding:utf-8
    3  -# | |
    4  -# --+----------------------------------------------------------+--
    5  -# | Code by : yasserbdj96 |
    6  -# | Email : [email protected] |
    7  -# | Github : https://github.com/yasserbdj96 |
    8  -# | BTC : bc1q2dks8w8uurca5xmfwv4jwl7upehyjjakr3xga9 |
    9  -# --+----------------------------------------------------------+--
    10  -# | all posts #yasserbdj96 ,all views my own. |
    11  -# --+----------------------------------------------------------+--
    12  -# | |
    13  - 
    14  -#START{
    15  -import sys
    16  -import os
    17  - 
    18  -try:
    19  - docker_check=False
    20  - #
    21  - try:
    22  - DST=os.environ['DST'] if "DST" in os.environ else False
    23  - if DST!=False:
    24  - os.chdir("hiphp-desktop")
    25  - os.system("python main.py docker")
    26  - docker_check=True
    27  - except:
    28  - pass
    29  - #
    30  - URL = os.environ['URL'] if "URL" in os.environ else sys.argv[2]
    31  - KEY = os.environ['KEY'] if "KEY" in os.environ else sys.argv[1]
    32  - 
    33  -except:
    34  - if docker_check==False:
    35  - print(f"USAGE : python3 {sys.argv[0]} <KEY> <URL>")
    36  - exit()
    37  - #pass
    38  - 
    39  - 
    40  -from hiphp import *
    41  -from hiphp.hiphpversion import __version__
    42  - 
    43  -# connect:
    44  -p1=hiphp(key=KEY,url=URL)#Default: retu=False.
    45  -p2=hiphp(key=KEY,url=URL,retu=True)
    46  - 
    47  -# Command line interface:
    48  -if emsg_1 not in p2.cli():
    49  - p1.cli()
    50  -else:
    51  - # Get the hole Code:
    52  - p1.get_hole()# Copy this code into the file whose path you entered earlier. ex: https://localhost/index.php
    53  -#}END.
    54  - 
Please wait...
Page is in error, reload to recover