Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

web: php is no longer needed!!

  • Loading branch information...
commit 330376629110fb5e2c285b43c2a06852b1694d45 1 parent 99ded01
@billiob billiob authored
Showing with 0 additions and 39 deletions.
  1. +0 −39 amsn2/ui/front_ends/web/static/amsn2.php
View
39 amsn2/ui/front_ends/web/static/amsn2.php
@@ -1,39 +0,0 @@
-<?php
-if(isset($_GET['close'])){
- @session_start();
- @session_destroy();
-}else if (1){
- if (isset($_POST['in']) && !empty($_POST['in'])){
- $in = fopen("/tmp/test.in","a");
- fwrite($in,$_POST['in']);
- fclose($in);
- echo "//ok".$_POST['in'];
- } else
- if (isset($_GET['out'])){
- @session_start();
- if (!isset($_SESSION['index']))
- $_SESSION['index']=0;
- $index=$_SESSION['index'];
- @session_commit();
- while (1){
- $out = fopen("/tmp/test.out","r");
- fseek($out,$index);
- $_ = fgets($out);
- fclose($out);
- if ($_!=""){
- $index+=strlen($_);
- echo $_;
- @session_start();
- $_SESSION['index']=$index;
- @session_commit();
- break;
- }else{
- sleep(1);
- }
- }
- }else
- echo "//wrong operation";
-}else{
- echo "//service not started";
-}
-?>
Please sign in to comment.
Something went wrong with that request. Please try again.