| 18 | |
| 19 | == Example: single-server portal == |
| 20 | |
| 21 | Users submit jobs using forms on the project web site: |
| 22 | |
| 23 | [[Image(submit2.png)]] |
| 24 | |
| 25 | These forms are application-specific; you must develop them yourself. |
| 26 | Two examples are included in the BOINC distribution: |
| 27 | * '''html/user/tree_threader.php''' |
| 28 | * '''html/user/lammps.php''' |
| 29 | |
| 30 | TODO: the above are full of application-specific complexity; |
| 31 | provide a minimal/generic example. |
| 32 | |
| 33 | The job-submission scripts use [RemoteOverview#LocalPHPinterfaces local PHP interfaces] to |
| 34 | authenticate users and to create jobs and batches. |
| 35 | |
| 36 | Input files can be handled in any of several ways: |
| 37 | |
| 38 | * Uploading them (from the submitter's computer) as part of the submission form. |
| 39 | The submission script would then [JobStage stage them]. |
| 40 | * Using the [RemoteInputFiles#Per-userfilesandbox user file sandbox] mechanism. |
| 41 | * Serving them from a remote server. |