Projects STRLCPY hiphp Commits ed228ef9
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    CHANGELOG
    1 1  ## 0.2.29 [XX-10-2022][In Progress]
    2 2   - Add the ability to install hiphp on termux Android.
    3 3   - Add "--version" command.
     4 + - Add Dark Mode template to "php-desktop".
    4 5   - Bug fixes & performance improvements.
    5 6  
    6 7  ## 0.2.28 [27-09-2022][Last Version]
    skipped 151 lines
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 529 lines
    530 530   <a href="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot8.png">
    531 531   <img height="100" src="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot8.png" alt="hiphp by yasserbdj96">
    532 532   </a>
     533 + <a href="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot9.png">
     534 + <img height="100" src="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot9.png" alt="hiphp by yasserbdj96">
     535 + </a>
     536 + <a href="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot10.png">
     537 + <img height="100" src="https://raw.githubusercontent.com/yasserbdj96/hiphp/main/screenshot/screenshot10.png" alt="hiphp by yasserbdj96">
     538 + </a>
    533 539  </div>
    534 540   
    535 541  <br>
    skipped 6 lines
    542 548  ## 0.2.29 [XX-10-2022][In Progress]
    543 549   - Add the ability to install hiphp on termux Android.
    544 550   - Add "--version" command.
     551 + - Add Dark Mode template to "php-desktop".
    545 552   - Bug fixes & performance improvements.
    546 553   
    547 554  ## 0.2.28 [27-09-2022][Last Version]
    skipped 413 lines
  • ■ ■ ■ ■ ■ ■
    hiphp/__init__.py
    skipped 58 lines
    59 59   self.c_blue="#4285f4"#blue
    60 60   self.c_yellow="#fbbc05"#yellow
    61 61   self.c_green="#34a853"#green
     62 + self.c_white="#ffffff"
    62 63   #
    63 64   self.set=""
    64 65   self.cd=""
    skipped 21 lines
    86 87   xxr1=self.color.c('┌──(',self.c_blue)
    87 88   xxr2=self.color.c(')──[',self.c_blue)
    88 89   xxr3=self.color.c(']',self.c_blue)
    89  - xxr4=self.color.c('└─|>',self.c_blue)
     90 + xxr4=self.color.c('└─',self.c_blue)+" "
    90 91   #
    91 92   key_w_color=self.color.c(self.key,self.c_red)
    92 93   url_w_color=self.color.c(self.url_w,self.c_yellow)
    skipped 322 lines
    415 416   geth+=self.color.c(php_e,self.c_red)
    416 417   print(geth)
    417 418  #}END.
    418  - 
  • ■ ■ ■ ■ ■
    hiphp-desktop/src/config.json
    1  -
    2  - 
     1 +{
     2 + "Dark Mode":"False"
     3 +}
  • ■ ■ ■ ■ ■ ■
    hiphp-desktop/src/dark.css
     1 +body{
     2 + background-color: #0d1117;
     3 +}
     4 + 
     5 +input[type=button],.button{
     6 + background-color: #04AA6D;
     7 + color: white;
     8 +}
     9 + 
     10 +input[type=text]{
     11 + background-color: #30363d;
     12 + color: white;
     13 + border: 1px solid #30363d;
     14 +}
     15 + 
     16 +#connected{
     17 + background-color: #04AA6D;
     18 +}
     19 +.add_new{
     20 + background-color: #04aa6d;
     21 + color: #ffffff;
     22 +}
     23 + 
     24 +.reconnectx{
     25 + background-color: #04aa6d;
     26 + color: #ffffff;
     27 +}
     28 + 
     29 +spam{
     30 + color:#ffffff;
     31 +}
     32 +
     33 +spam:hover {
     34 + background-color: #035638;
     35 +}
     36 + 
     37 +.settings{
     38 + background-color: #0d1117;
     39 +}
     40 + 
     41 +.return{
     42 + color:#ffffff;
     43 +}
     44 + 
     45 +#ls tr:nth-child(even), #settings tr:nth-child(even){background-color: #16191e;}
     46 + 
     47 +#ls tr:hover, #settings tr:hover{background-color: #161b22;}
     48 + 
     49 +#ls th, #settings th {
     50 + background-color: #5e6060;
     51 + color: white;
     52 +}
     53 + 
     54 +table{
     55 + color: white;
     56 +}
     57 + 
     58 +/**/
     59 +.save{
     60 + color: #ffffff;
     61 +}
     62 + 
     63 +.select{
     64 + background-color: #04aa6d;
     65 +}
     66 + 
     67 +.c_red{
     68 + color:red;
     69 +}
     70 +.c_blue{
     71 + color:rgb(101 101 227);
     72 +}
     73 +.c_orange{
     74 + color: rgb(219, 126, 19);
     75 +}
     76 +.c_green{
     77 + color: #08a76d;
     78 +}
     79 + 
     80 +.holder{
     81 + background: #202730;
     82 + box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
     83 +}
     84 + 
     85 +input[type=checkbox] + span {
     86 + background: #e74c3c;
     87 + box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
     88 +}
     89 + 
     90 +input[type=checkbox] + span::before, input[type=checkbox] + span::after{
     91 + background:#fff;
     92 +}
     93 + 
     94 +input[type=checkbox]:checked + span {
     95 + background:#04aa6d;
     96 +}
     97 + 
     98 +#cat {
     99 + background-color:#272822;
     100 + border-color:#272822;
     101 + color:#ffffff;
     102 +}
     103 + 
     104 +#lineCounter {
     105 + color: #707070;
     106 + background-color: #d8d8d8;
     107 + background-color:#3E3D32;
     108 + border-color:#3E3D32;
     109 + color:#928869;
     110 +}
     111 + 
     112 +/* width */
     113 +::-webkit-scrollbar {
     114 + width: 10px;
     115 +}
     116 +
     117 +/* Track */
     118 +::-webkit-scrollbar-track {
     119 + box-shadow: inset 0 0 5px grey;
     120 + /*border-radius: 10px;*/
     121 +}
     122 +
     123 +/* Handle */
     124 +::-webkit-scrollbar-thumb {
     125 + background: #5e6060;
     126 + /*border-radius: 10px;*/
     127 +}
     128 +
     129 +/* Handle on hover */
     130 +::-webkit-scrollbar-thumb:hover {
     131 + background: #3c3d3d;
     132 +}
  • hiphp-desktop/src/font-awesome/fontawesome-webfont.svg
  • hiphp-desktop/src/hiphp_logo.png
  • ■ ■ ■ ■ ■ ■
    hiphp-desktop/src/include.js
     1 +// | |
     2 +// --+----------------------------------------------------------+--
     3 +// | Code by : yasserbdj96 |
     4 +// | Email : [email protected] |
     5 +// | Github : https://github.com/yasserbdj96 |
     6 +// | BTC : bc1q2dks8w8uurca5xmfwv4jwl7upehyjjakr3xga9 |
     7 +// --+----------------------------------------------------------+--
     8 +// | all posts #yasserbdj96 ,all views my own. |
     9 +// --+----------------------------------------------------------+--
     10 +// | |
     11 + 
     12 +//START{
     13 +function include(){
     14 + if(typeof arguments[0]==='undefined'||arguments[0]===null && typeof arguments[1]==='undefined'||arguments[1]===null){
     15 + /**/
     16 + var z,i,elmnt,file,xhttp;
     17 + z=document.getElementsByTagName("*");
     18 + for(i=0;i<z.length;i++){
     19 + elmnt=z[i];
     20 + file=elmnt.getAttribute("include");
     21 + if(file){
     22 + xhttp=new XMLHttpRequest();
     23 + xhttp.onreadystatechange=function(){
     24 + if (this.readyState==4){
     25 + if(this.status==200){elmnt.innerHTML=this.responseText;}
     26 + if(this.status==404){elmnt.innerHTML="Code not found.";}
     27 + elmnt.removeAttribute("include");
     28 + include();
     29 + }
     30 + }
     31 + xhttp.open("GET",file,true);
     32 + xhttp.send();
     33 + return;
     34 + }
     35 + }
     36 + }else{
     37 + if (typeof arguments[1]==='undefined' ||arguments[0]===null){
     38 + var arguments=atob(arguments[0]).split(':');
     39 + }
     40 + /**/
     41 + if(arguments[1]=="js"){
     42 + var fileref=document.createElement('script');
     43 + fileref.setAttribute("type","text/javascript");
     44 + fileref.setAttribute("src",arguments[0]);
     45 + document.getElementsByTagName("head")[0].appendChild(fileref);
     46 + }else if(arguments[1]=="css"){
     47 + var fileref=document.createElement("link");
     48 + var css=arguments[0].split(".css")[0];
     49 + css=css.split("/");
     50 + fileref.setAttribute("id",css[css.length-1]);
     51 + fileref.setAttribute("rel","stylesheet");
     52 + fileref.setAttribute("type","text/css");
     53 + fileref.setAttribute("href",arguments[0]);
     54 + document.getElementsByTagName("head")[0].appendChild(fileref);
     55 + }else if(arguments[1]=="ico"){
     56 + var link=document.querySelector("link[rel*='icon']")||document.createElement('link');
     57 + link.type='image/x-icon';
     58 + link.rel='shortcut icon';
     59 + link.href=arguments[0];
     60 + document.getElementsByTagName('head')[0].appendChild(link);
     61 + }else if(arguments[1]=="title"){
     62 + document.title=arguments[0];
     63 + }
     64 + }
     65 +}
     66 +//}END.
  • ■ ■ ■ ■
    hiphp-desktop/src/index.html
    skipped 5 lines
    6 6   <title>hiphp : login</title>
    7 7   <script type="text/javascript" src="./eel.js"></script>
    8 8   <script type="text/javascript" src="./script.js"></script>
     9 + <script type="text/javascript" src="./include.js"></script>
    9 10   <link rel="stylesheet" href="./style.css">
    10 11   <link rel="icon" href="./favicon.ico">
    11 12   <link rel="stylesheet" type="text/css" href="./font-awesome/font-awesome.min.css" />
    skipped 57 lines
    69 70   </div>
    70 71   </body>
    71 72  </html>
    72  - 
  • ■ ■ ■ ■ ■ ■
    hiphp-desktop/src/script.js
    skipped 12 lines
    13 13  var originalTitle=document.title;
    14 14  //
    15 15  function connect_with_cookie(){
     16 + settings_opt();
    16 17   if (getCookie("url")!="" && getCookie("key")!=""){
    17 18   connect(how="connect_with_cookie");
    18 19   }
    skipped 391 lines
    410 411   
    411 412   codeEditor.value = htmlTemplateStr;
    412 413   line_counter();
     414 +}
     415 + 
     416 +//
     417 +function readTextFile(file, callback) {
     418 + var rawFile = new XMLHttpRequest();
     419 + rawFile.overrideMimeType("application/json");
     420 + rawFile.open("GET", file, true);
     421 + rawFile.onreadystatechange = function() {
     422 + if (rawFile.readyState === 4 && rawFile.status == "200") {
     423 + callback(rawFile.responseText);
     424 + }
     425 + }
     426 + rawFile.send(null);
     427 +}
     428 + 
     429 +//
     430 +function settings_opt(){
     431 + readTextFile("config.json", function(text){
     432 + var data = JSON.parse(text);
     433 + 
     434 + if(data["Dark Mode"]=="False"){
     435 + include("white.css","css");
     436 + }else{
     437 + include("dark.css","css");
     438 + }
     439 +
     440 + 
     441 + //console.log(data["Dark Mode"]);
     442 + });
    413 443  }
    414 444  //}END.
  • ■ ■ ■ ■ ■
    hiphp-desktop/src/style.css
    skipped 17 lines
    18 18   font-family: "Lucida Console", "Courier New", monospace;
    19 19  }
    20 20   
    21  -body{
    22  - background-color: #ffffff;
    23  -}
    24  - 
    25 21  input[type=text] {
    26 22   padding: 5px 5px;
    27 23   margin: 4px 0;
    28 24   box-sizing: border-box;
    29 25  }
     26 + 
     27 + 
    30 28  input[type=button],.button{
    31  - background-color: #04AA6D;
    32 29   border: none;
    33  - color: white;
    34 30   text-decoration: none;
    35 31   margin: 4px 2px;
    36 32   cursor: pointer;
    skipped 3 lines
    40 36   
    41 37  #connected{
    42 38   display:none;
    43  - background-color: #04AA6D;
    44 39   height: 39px;
    45 40  }
    46 41  #codeEditor{
    skipped 23 lines
    70 65   position: fixed;
    71 66   bottom: 4px;
    72 67   right: 4px;
    73  - background-color: #04aa6d;
    74 68   padding: 15px;
    75 69   border-radius: 50%;
    76 70   width: 10px;
    77 71   height: 10px;
    78  - color: #ffffff;
    79 72   border: 2px solid;
    80 73  }
    81 74   
    skipped 4 lines
    86 79   position: fixed;
    87 80   bottom: 4px;
    88 81   left: 4px;
    89  - background-color: #04aa6d;
    90 82   padding: 15px;
    91 83   border-radius: 50%;
    92 84   width: 10px;
    93 85   height: 10px;
    94  - color: #ffffff;
    95 86   border: 2px solid;
    96  -}
    97  - 
    98  -spam{
    99  - color:#ffffff;
    100  -}
    101  - 
    102  -spam:hover {
    103  - background-color: #035638;
    104 87  }
    105 88   
    106 89  .padding_11{
    skipped 14 lines
    121 104   /*width: 100%;*/
    122 105   height: calc(100vh - 50px);
    123 106   padding: 5px;
    124  - background-color: #e7e7e7;
    125 107  }
     108 + 
    126 109  #login{
    127 110   width: 100%;
    128 111   height: 100px;
    skipped 9 lines
    138 121   position: absolute;
    139 122   /*margin-top: 8px;*/
    140 123   margin-left: 0px;
    141  - color:#ffffff;
    142 124  }
     125 + 
    143 126  .pointer{cursor: pointer;}
    144 127   
    145 128  .img_icon{
    skipped 27 lines
    173 156   padding: 8px;
    174 157  }
    175 158   
    176  -#ls tr:nth-child(even), #settings tr:nth-child(even){background-color: #f2f2f2;}
    177  - 
    178  -#ls tr:hover, #settings tr:hover{background-color: #ddd;}
    179  - 
    180 159  #ls th, #settings th {
    181 160   padding-top: 12px;
    182 161   padding-bottom: 12px;
    183 162   text-align: left;
    184  - background-color: #5e6060;
    185  - color: white;
    186 163  }
    187 164  /**/
    188 165  .save{
    skipped 1 lines
    190 167   position: absolute;
    191 168   /*margin-top: 8px;*/
    192 169   margin-left: 50%;
    193  - color: #ffffff;
    194 170  }
    195 171  /**/
    196 172  .select{
    197 173   position: fixed;
    198 174   bottom: 0;
    199  - background-color: #04aa6d;
    200 175   width: 100%;
    201 176   padding: 10px;
    202 177   text-align: center;
    skipped 7 lines
    210 185   font-size: 10px;
    211 186   display: none;
    212 187  }
    213  -.c_red{
    214  - color:red;
    215  -}
    216  -.c_blue{
    217  - color:rgb(101 101 227);
    218  -}
    219  -.c_orange{
    220  - color: rgb(219, 126, 19);
    221  -}
    222  -.c_green{
    223  - color: #08a76d;
    224  -}
     188 + 
    225 189   
    226 190  /**/
    227 191  .holder{
    228  - background: #fff;
    229 192   border-radius:5px;
    230  - box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
    231 193   margin:100px auto;
    232 194   padding:30px 20px 20px;
    233 195   width:80%;
    skipped 26 lines
    260 222  }
    261 223   
    262 224  input[type=checkbox] + span {
    263  - background: #e74c3c;
    264 225   border-radius: 50%;
    265  - box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
    266 226   display: inline-block;
    267 227   height: 30px;
    268 228   margin:4px 0 0;
    skipped 3 lines
    272 232  }
    273 233   
    274 234  input[type=checkbox] + span::before, input[type=checkbox] + span::after{
    275  - background:#fff;
    276 235   content:'';
    277 236   display:block;
    278 237   position:absolute;
    skipped 15 lines
    294 253   top:7px;
    295 254   -webkit-transform:rotate(45deg);
    296 255   transform:rotate(45deg);
    297  -}
    298  - 
    299  -input[type=checkbox]:checked + span {
    300  - background:#04aa6d;
    301 256  }
    302 257   
    303 258  input[type=checkbox]:checked + span::before{
    skipped 42 lines
    346 301   padding-left: calc(3.5rem + 5px);
    347 302   width:100%;
    348 303   /* Determine appearance of code editor */
    349  - background-color:#272822;
    350  - border-color:#272822;
    351  - color:#ffffff;
    352 304   height: calc(100vh - 38px);
    353 305   padding-top: calc(12px);
    354 306  }
    skipped 3 lines
    358 310   overflow-y: hidden;
    359 311   text-align: right;
    360 312   box-shadow: none;
    361  - color: #707070;
    362  - background-color: #d8d8d8;
    363 313   position: absolute;
    364 314   width: 3.5rem;
    365 315   /* Determine appearance of line counter */
    366  - background-color:#3E3D32;
    367  - border-color:#3E3D32;
    368  - color:#928869;
    369 316   margin-top: 38px;
    370 317   /*display:none;*/
    371 318   height: calc(100vh - 38px);
    skipped 1 lines
    373 320  #lineCounter:focus-visible,
    374 321  #cat:focus-visible {
    375 322   outline:none;
    376  -}
    377  - 
    378  - 
    379  - 
    380  -/* width */
    381  -::-webkit-scrollbar {
    382  - width: 10px;
    383  -}
    384  - 
    385  -/* Track */
    386  -::-webkit-scrollbar-track {
    387  - box-shadow: inset 0 0 5px grey;
    388  - /*border-radius: 10px;*/
    389  -}
    390  -
    391  -/* Handle */
    392  -::-webkit-scrollbar-thumb {
    393  - background: #5e6060;
    394  - /*border-radius: 10px;*/
    395  -}
    396  - 
    397  -/* Handle on hover */
    398  -::-webkit-scrollbar-thumb:hover {
    399  - background: #3c3d3d;
    400 323  }
    401 324  /*}END.*/
  • ■ ■ ■ ■ ■ ■
    hiphp-desktop/src/white.css
     1 +body{
     2 + background-color: #ffffff;
     3 +}
     4 + 
     5 +input[type=button],.button{
     6 + background-color: #04AA6D;
     7 + color: white;
     8 +}
     9 + 
     10 +input[type=text]{
     11 + background-color: #fff;
     12 + color: white;
     13 + border: 1px solid #30363d;
     14 +}
     15 + 
     16 +#connected{
     17 + background-color: #04AA6D;
     18 +}
     19 +.add_new{
     20 + background-color: #04aa6d;
     21 + color: #ffffff;
     22 +}
     23 + 
     24 +.reconnectx{
     25 + background-color: #04aa6d;
     26 + color: #ffffff;
     27 +}
     28 + 
     29 +spam{
     30 + color:#ffffff;
     31 +}
     32 +
     33 +spam:hover {
     34 + background-color: #035638;
     35 +}
     36 + 
     37 +.settings{
     38 + background-color: #e7e7e7;
     39 +}
     40 + 
     41 +.return{
     42 + color:#ffffff;
     43 +}
     44 + 
     45 +#ls tr:nth-child(even), #settings tr:nth-child(even){background-color: #f2f2f2;}
     46 + 
     47 +#ls tr:hover, #settings tr:hover{background-color: #ddd;}
     48 + 
     49 +#ls th, #settings th {
     50 + background-color: #5e6060;
     51 + color: white;
     52 +}
     53 + 
     54 +.table{
     55 + color: black;
     56 +}
     57 + 
     58 +/**/
     59 +.save{
     60 + color: #ffffff;
     61 +}
     62 + 
     63 +.select{
     64 + background-color: #04aa6d;
     65 +}
     66 + 
     67 +.c_red{
     68 + color:red;
     69 +}
     70 +.c_blue{
     71 + color:rgb(101 101 227);
     72 +}
     73 +.c_orange{
     74 + color: rgb(219, 126, 19);
     75 +}
     76 +.c_green{
     77 + color: #08a76d;
     78 +}
     79 + 
     80 +.holder{
     81 + background: #fff;
     82 + box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
     83 +}
     84 + 
     85 +input[type=checkbox] + span {
     86 + background: #e74c3c;
     87 + box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
     88 +}
     89 + 
     90 +input[type=checkbox] + span::before, input[type=checkbox] + span::after{
     91 + background:#fff;
     92 +}
     93 + 
     94 +input[type=checkbox]:checked + span {
     95 + background:#04aa6d;
     96 +}
     97 + 
     98 +#cat {
     99 + background-color:#272822;
     100 + border-color:#272822;
     101 + color:#ffffff;
     102 +}
     103 + 
     104 +#lineCounter {
     105 + color: #707070;
     106 + background-color: #d8d8d8;
     107 + background-color:#3E3D32;
     108 + border-color:#3E3D32;
     109 + color:#928869;
     110 +}
     111 + 
     112 +/* width */
     113 +::-webkit-scrollbar {
     114 + width: 10px;
     115 +}
     116 +
     117 +/* Track */
     118 +::-webkit-scrollbar-track {
     119 + box-shadow: inset 0 0 5px grey;
     120 + /*border-radius: 10px;*/
     121 +}
     122 +
     123 +/* Handle */
     124 +::-webkit-scrollbar-thumb {
     125 + background: #5e6060;
     126 + /*border-radius: 10px;*/
     127 +}
     128 +
     129 +/* Handle on hover */
     130 +::-webkit-scrollbar-thumb:hover {
     131 + background: #3c3d3d;
     132 +}
  • ■ ■ ■ ■ ■ ■
    install/hiphp.py
    skipped 42 lines
    43 43   # Get the hole Code:
    44 44   p1.get_hole()# Copy this code into the file whose path you entered earlier. ex: https://localhost/index.php
    45 45  #}END.
    46  -
    47  - 
  • screenshot/demo.png
  • screenshot/screenshot.png
  • screenshot/screenshot0.png
  • screenshot/screenshot10.png
  • screenshot/screenshot2.png
  • screenshot/screenshot3.png
  • screenshot/screenshot4.png
  • screenshot/screenshot5.png
  • screenshot/screenshot6.png
  • screenshot/screenshot7.png
  • screenshot/screenshot8.png
  • screenshot/screenshot9.png
Please wait...
Page is in error, reload to recover