commit e58bd8628a43f36782f71e7442a5bdef7741e33e Author: Coding with Peter Date: Mon Dec 18 11:02:11 2023 -0800 Initial commit diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..ff0cd5a --- /dev/null +++ b/.htaccess @@ -0,0 +1,7 @@ +LimitRequestBody 20971520 + +RewriteEngine On +RewriteEngine on +RewriteRule ^calendar([0-9]+).ics$ calendar4.php?u=$1 [QSA] + +RewriteRule ^api/(.*)$ api2.php?query=$1 [L,QSA] \ No newline at end of file diff --git a/act.php b/act.php new file mode 100644 index 0000000..fd99cd3 --- /dev/null +++ b/act.php @@ -0,0 +1,67 @@ + + + + + + + + + + + Gavilan Intranet -> <?php echo $MY_TITLE; ?> + + +
+ +
+ + +
+

+
+ +
+
+
+
+
+
+
+
+
+
+   +
+
+
+
Alert message
+ + + + diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..b4d7526 --- /dev/null +++ b/admin.php @@ -0,0 +1,102 @@ + + + + + + + + + + + Gavilan Intranet -> <?php echo $MY_TITLE; ?> + + +
+ + +
+
+
+
+
+
+
+   +
+
+
+
+
+ +
+
+
Alert message
+ + + + diff --git a/api2.php b/api2.php new file mode 100644 index 0000000..eb7b669 --- /dev/null +++ b/api2.php @@ -0,0 +1,407 @@ +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, '