Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sfcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush
sfcode
Commits
d46c684c
Commit
d46c684c
authored
Dec 07, 2020
by
Ayush
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix
parent
35ffb92d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
39 deletions
+7
-39
backend/compile.php
backend/compile.php
+1
-1
backend/execute.php
backend/execute.php
+3
-3
src/app/file/file.component.html
src/app/file/file.component.html
+3
-35
No files found.
backend/compile.php
View file @
d46c684c
...
@@ -27,7 +27,7 @@ if(strcmp($language, ".cpp") == 0)
...
@@ -27,7 +27,7 @@ if(strcmp($language, ".cpp") == 0)
else
if
(
strcmp
(
$language
,
".java"
)
==
0
)
else
if
(
strcmp
(
$language
,
".java"
)
==
0
)
{
{
system
(
"javac ../users/"
.
$uname
.
"/"
.
$filename
.
'.java'
,
$ret_stat
);
system
(
"javac ../users/"
.
$uname
.
"/"
.
$filename
.
'.java'
,
$ret_stat
);
if
(
$ret_stat
!=
0
)
if
(
$ret_stat
!=
0
)
{
{
...
...
backend/execute.php
View file @
d46c684c
...
@@ -27,10 +27,10 @@ $out_fname = "../users/" . $uname . "/" . "temp_out" . $template;
...
@@ -27,10 +27,10 @@ $out_fname = "../users/" . $uname . "/" . "temp_out" . $template;
if
(
strcmp
(
$language
,
".cpp"
)
==
0
)
{
if
(
strcmp
(
$language
,
".cpp"
)
==
0
)
{
system
(
"./../users/"
.
$uname
.
"/"
.
$filename
.
" < "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
system
(
"./../users/"
.
$uname
.
"/"
.
$filename
.
" < "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
}
else
if
(
strcmp
(
$language
,
"java"
)
==
0
)
{
}
else
if
(
strcmp
(
$language
,
"
.
java"
)
==
0
)
{
system
(
"java -cp ../users/"
.
$uname
.
"/ "
.
$filename
.
" < "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
system
(
"java -cp ../users/"
.
$uname
.
"/ "
.
$filename
.
" < "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
}
else
if
(
strcmp
(
$language
,
"
python
"
)
==
0
)
{
}
else
if
(
strcmp
(
$language
,
"
.py
"
)
==
0
)
{
system
(
"python3 ../users/"
.
$uname
.
"/"
.
$filename
.
" < "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
system
(
"python3 ../users/"
.
$uname
.
"/"
.
$filename
.
"
.py
< "
.
$in_fname
.
" > "
.
$out_fname
,
$ret_stat
);
}
}
if
(
$ret_stat
!=
0
)
{
if
(
$ret_stat
!=
0
)
{
...
...
src/app/file/file.component.html
View file @
d46c684c
...
@@ -10,44 +10,12 @@
...
@@ -10,44 +10,12 @@
<div
*ngFor=
"let file of files"
class=
"card"
>
<div
*ngFor=
"let file of files"
class=
"card"
>
<span
class=
"title"
>
{{file.filename}}{{file.language}}
</span>
<span
class=
"title"
>
{{file.filename}}{{file.language}}
</span>
<button>
Run Fil
e
</button>
<button>
Delet
e
</button>
<button>
Edit
File
</button>
<button>
Edit
</button>
<button>
R
emove From Database
</button>
<button>
R
un
</button>
</div>
</div>
<!--<div id="myModal" class="modal" [class.open]="uploadPopupActive">-->
<!-- <!– Modal content –>-->
<!-- <div class="modal-content">-->
<!-- <span (click)="onClick2()" class="close">×</span>-->
<!-- <div class="text-center">-->
<!-- <input class="form-control" type="file"-->
<!-- (change)="onChange($event)">-->
<!-- <button (click)="onUpload()"-->
<!-- class="btn btn-success">-->
<!-- Upload-->
<!-- </button>-->
<!-- </div>-->
<!-- <!– Shareable short link of uoloaded file –>-->
<!-- <div class="container text-center jumbotron"-->
<!-- *ngIf="shortLink">-->
<!-- <h2> Visit Here</h2>-->
<!-- <a href="{{shortLink}}">{{shortLink}}</a>-->
<!-- </div>-->
<!-- <!–Flag variable is used here–>-->
<!-- <div class="container" *ngIf="loading">-->
<!-- <h3>Loading ...</h3>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<div
[class.open]=
"uploadPopupActive"
id=
"file-upload-cover"
></div>
<div
[class.open]=
"uploadPopupActive"
id=
"file-upload-cover"
></div>
<div
[class.open]=
"uploadPopupActive"
id=
"file-upload-popup"
>
<div
[class.open]=
"uploadPopupActive"
id=
"file-upload-popup"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment