File: check_progress.php

package info (click to toggle)
assemblytics 1.0+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 416 kB
  • sloc: python: 564; perl: 234; php: 124; sh: 94; makefile: 11
file content (14 lines) | stat: -rwxr-xr-x 351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
    $code=$_POST['code'];
    
    $filename="user_data/" . $code . "/progress.log";
    
    if (file_exists($filename)) {
        $progress_stats = file($filename);
        echo json_encode($progress_stats);
    }
    else {
        $progress_stats = "file " + $filename + " doesn't exist";
        echo json_encode($progress_stats);
    }
?>