commit 85fdecf8f2782c8e4f514da3415f8aed3eebc8a6 Author: Peter Howell Date: Mon Jul 21 10:59:22 2025 -0700 Initial commit diff --git a/.vscode/sftp.json b/.vscode/sftp.json new file mode 100644 index 0000000..f23eaee --- /dev/null +++ b/.vscode/sftp.json @@ -0,0 +1,11 @@ +{ + "name": "6 - dir", + "host": "192.168.1.6", + "protocol": "sftp", + "port": 22, + "username": "phowell", + "remotePath": "/home/phowell/www/dir", + "uploadOnSave": true, + "useTempFile": false, + "openSsh": false +} diff --git a/allsessions.php b/allsessions.php new file mode 100644 index 0000000..01e64e7 --- /dev/null +++ b/allsessions.php @@ -0,0 +1,5 @@ +'; +include 'layout.php'; diff --git a/api2.php b/api2.php new file mode 100644 index 0000000..6df2b23 --- /dev/null +++ b/api2.php @@ -0,0 +1,323 @@ + getConnection(); + +// Establish database connection +//$c = new mysqli($DBServer, $DBUser, $DBPass, $DBName); + +//if ($c->connect_error) { die('Database connection failed: ' . $c->connect_error ); } +//if (!mysqli_select_db($c, $DBName)) { die("Uh oh, couldn't select database $DBName"); } +mysqli_set_charset($c, 'utf8'); + +$server = $_SERVER['SERVER_NAME']; +$DEBUG = 0; +function p($s) { echo "

{$s}

\n"; } +function p2($val){ echo '
'; print_r($val); echo "
\n"; } +function d_err($s) { global $DEBUG; if ($DEBUG) { p($s); } } +function ok($str) { global $c; return mysqli_real_escape_string($c, strip_tags($str, '