#!/bin/sh

# wolf
# Copyright (C) 2025 Joseph Rosevear, San Diego CA, USA.

# This file is part of a distribution SAM.

# SAM is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your
# option) any later version.

# SAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.



# Joseph Rosevear 220129 I made this script by extracting a small part
# of script dog, then modifying it.

# Joseph Rosevear 231230 I changed the code so $1 is now assumed to be
# in $level/data.

# Joseph Rosevear 240109 I removed the definition of DISPLAY which was
# prefixed before the invocation of begin.

# Joseph Rosevear 240702 I made changes to accomodate a change in $1. 
# It used to be the name of a file in $level/data, but now it can be
# anywhere, as it is the full path name.

# Joseph Rosevear 240724 I replaced "student" with "$i_user".

# Joseph Rosevear 241230 I simplified the invocation of net_or_rem by
# removing it from inside the su invocation.

# Joseph Rosevear 250108 I removed net_or_rem from inside the begin
# invocation.



# Definitions.
fullpage="$level/index.html"

if [ "$1" != "" ]; then

   fullpage="$1"
fi

# Display $fullpage
net_or_rem $fullpage
